sed

Search and replace in-place

sed -i 's/search/replace/g' *.py

git

Delete all git branches locally

git branch | grep -v \* | xargs git branch -D

postscript

Convert a plain-text file into a PDF

a2ps file.txt -1 -B --borders no | ps2pdf - - > test.pdf

mpv

Play a YouTube music playlist

mpv 'PLAYLIST_URL' --no-video --shuffle --loop-playlist

Play raw audio file

mpv --demuxer-rawaudio-format=u8 --demuxer-rawaudio-channels=1 --demuxer-rawaudio-rate=8000 --demuxer=rawaudio

rsync

rsync -avP --delete -e 'ssh -p 23' root@whatever:/path/to/folder target/path