This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xterm args: | |
# xterm -fg white -bg black -en utf8 -tn xterm-256color -fa inputmono:size=14 -fn inputmono:size=14 -geometry 90x30 | |
# see also: | |
# https://web.archive.org/web/20100616023737/http://yarger.asu.edu/NMR/Xdefaults.html | |
# https://gist.github.com/tshanks/1145068/e04565f405098193f3fe79b123fa805d0102a5ab | |
# https://unix.stackexchange.com/questions/332316/configure-unreadable-tiny-small-huge-xterm-fonts | |
# man xterm | |
xterm*faceName:inputmono:style=Regular:size=14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dtoverlay=rpi-poe | |
dtparam=poe_fan_temp0=62000 | |
dtparam=poe_fan_temp1=64000 | |
dtparam=poe_fan_temp2=66000 | |
dtparam=poe_fan_temp3=68000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key_name="${USER}_$(hostname -s)_$(date +%F)"; echo "creating $HOME/.ssh/${key_name}.pem..."; ssh-keygen -t ed25519 -f "$HOME/.ssh/${key_name}.pem" -C "$key_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function edit-path-interactively() { | |
eval "$( printf 'export PATH="%s"' "$PATH" | vipe )" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
/usr/bin/time -l find $HOME 2>&1 1>/dev/null | grep -i real | |
/usr/bin/time -l find $HOME 2>&1 1>/dev/null | grep -i real | |
/usr/bin/time -l find $HOME 2>&1 1>/dev/null | grep -i real | |
/usr/bin/time -l find $HOME 2>&1 1>/dev/null | grep -i real | |
/usr/bin/time -l find $HOME 2>&1 1>/dev/null | grep -i real |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rp1-cluster1 ~ % for zone in /sys/class/thermal/thermal_zone*; do echo -n "$(basename $zone)="; cat $zone/temp | perl -nE 'printf(qq{%.02fC\n}, ($_/1000))'; done | |
thermal_zone0=42.35C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lepton ~ % sudo apt install -y libnss-mdns avahi-utils | |
lepton ~ % avahi-resolve-host-name -4 rp1-cluster1.local | |
rp1-cluster1.local 10.0.0.167 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
muon ~ % dscacheutil -q host -a name rp1-cluster1.local | |
name: rp1-cluster1.local | |
ipv6_address: fe80:b::dea6:32ff:feba:101f | |
ipv6_address: fe80:e::dea6:32ff:feba:101f | |
name: rp1-cluster1.local | |
ip_address: 10.0.0.167 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --base=https://github.com/raspberrypi/firmware/raw/master/ -i <( wget -qO - https://github.com/raspberrypi/firmware/tree/master/boot | jq -r '.payload.tree.items[].path | select(test("(elf|dat)$"))' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# system-wide environment settings for zsh(1) | |
# unfucks PATH breakage inside tmux | |
# https://superuser.com/questions/544989/does-tmux-sort-the-path-variable | |
# https://apple.stackexchange.com/questions/248813/tmux-always-modify-my-zsh-path | |
if [[ -x /usr/libexec/path_helper && -z "$TMUX" ]]; then | |
eval `/usr/libexec/path_helper -s` | |
fi |