Skip to content

Instantly share code, notes, and snippets.

View slavaaaaaaaaaa's full-sized avatar
💭
i hereby identify as your excellency

Slava Maslennikov slavaaaaaaaaaa

💭
i hereby identify as your excellency
View GitHub Profile

Board

Two pieces, hindged together by the long axis. Each:

Axis Measurement
Length 30cm
Width 16.5cm
Height 1cm
# /etc/skel/.bashrc
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
function _foreground_calc {
# reject these colors for being too dark
local reject=([0]=a [16]=a [17]=a [18]=a [19]=a [232]=a [233]=a [234]=a [235]=a [236]=a [237]=a [238]=a)
#!/bin/bash
function dagd {
if [ $1 -eq '-6' ]; then
curl -m 2 -s "http://da.gd/$2"
else
curl -m 2 -s -4 "http://da.gd/$2?strip"
fi
}
function remote_network {
# set some magical temporary stuff
#!/bin/bash
echo "----------------------"
date
temp=$(/opt/vc/bin/vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}')
echo "temp.value $temp"
for volt in core sdram_c sdram_i sdram_p
do
voltage=$(/opt/vc/bin/vcgencmd measure_volts $volt | awk -F"=" '{print $2}' | tr -d "V")
echo "volt$volt.value $voltage"
done