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
find $PWD -type d | ( while read d; do pushd $d; for mp3_filename in *.mp3(N); do lame --quiet --decode "$mp3_filename" && echo $PWD/$(basename "$PWD/$ | |
mp3_filename" .mp3).wav | tee -a converted.txt; done; popd; done ) | ts '[%F %T]' |
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
javascript console: | |
to_fetch = []; $('.machine_names').each(function(i, item) { var u = $(item).attr('href'); if (u.match('rar$')) { to_fetch.push(window.location.origin + "/" + u) } }); console.log(JSON.stringify(to_fetch)) | |
shell: | |
jq -r '.[]' < 'kb6.json' | vipe | ( while read u; do wget --continue --no-glob "$u"; sleep 60; 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
% sudo cp -v $HOME/git_tree/zsh/Completion/Unix/Command/_tmux /opt/homebrew/Cellar/zsh/5.8_1/share/zsh/functions/_tmux |
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
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
/bin/cat $HOME/.zsh_history | /usr/local/bin/xz > $HOME/.zsh_history.d/zsh_history.$(/usr/local/bin/gdate +%F-%T).xz |