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 raw audio file

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