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 | |
for f in /usr/share/figlet/*; do | |
font_name=$(basename "$f" | awk -F '.' '{print $1}') | |
message=" $font_name " | |
banner=$(toilet --filter border --font $font_name --termwidth "$message" 2>/dev/null) | |
[[ -z "$banner" ]] && continue | |
echo -e "$font_name:\n$banner\n" | |
done |
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 ~/bash_perl zmodload zsh/sched | |
lepton ~/bash_perl sched --help | |
lepton ~/bash_perl sched | |
lepton ~/bash_perl echo $zsh_scheduled_events | |
lepton ~/bash_perl sched -o +10 echo hello world | |
lepton ~/bash_perl echo $zsh_scheduled_events | |
1640831449:-o:echo hello world | |
lepton ~/bash_perl | |
lepton ~/bash_perl echo $zsh_scheduled_events |
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
https://github.com/atomicstack/setup-scripts/blob/main/rebuild-tmux.sh |
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
set volume output volume ((get output volume in (get volume settings)) + 10) |
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 | |
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 |
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
Match host $HOSTNAME exec "echo 'hello world' 1>&2" | |
User $USERNAME |
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
export PS1='%F{226}%m%f %F{33}%d%f %F{160}%#%f ' |
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
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 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 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 |