This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| red=$(tput setaf 1) | |
| reset=$(tput sgr0) | |
| if [[ -n "${SSH_TTY}" || -n "${TTY}" ]]; then | |
| if [[ $UID == 0 ]]; then | |
| return | |
| fi | |
| if [[ -z "$SSH_AUTH_SOCK" || ! -S "$SSH_AUTH_SOCK" ]]; then | |
| echo -e "${red}no ssh-agent found :(${reset}" | |
| elif ssh-add -l | grep -q "no identities"; then |
This file contains hidden or 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/cat $HOME/.zsh_history | /usr/local/bin/xz > $HOME/.zsh_history.d/zsh_history.$(/usr/local/bin/gdate +%F-%T).xz |
This file contains hidden or 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
| ls | egrep --line-buffered 'zsh_history.*xz$' | xargs sha256sum | pv -l -s $( ls | egrep --line-buffered 'zsh_history.*xz$' | wc -l | xargs ) | /usr/local/bin/sponge | perl -naE '$seen{$F[0]}++ or next; unlink $F[1] and say qq{unlinked $F[1]}' |
This file contains hidden or 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
| export PS1='%F{226}%m%f %F{33}%d%f %F{160}%#%f ' |
This file contains hidden or 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
| Match host $HOSTNAME exec "echo 'hello world' 1>&2" | |
| User $USERNAME |
This file contains hidden or 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 | |
| git for-each-ref --format="%(refname)" | while read ref; do | |
| git show-ref --quiet --verify $ref 2>/dev/null || git update-ref -d $ref | |
| done |