The Arcology Garden

Shell Grymoire


I should be collecting these in the grand tradition of "shell history isn't good enough". Neither, probably, is Atuin… So I take inspiration from Maya Kate and make my own grymoire of shell spells.

Count 502s from each URL from web access logs

sudo tail -n 10000 /var/log/nginx/access.log | awk '$10 == "502" {print $10 " " $1 " " $8}' | sort | uniq -c | sort -n

Copy letsencrypt certs from fontkeming to Wobserver Nginx Frontends

ssh sudo cat /etc/ssl/certs/fontkeming.fail_cert.pem | ssh last-bank tee /home/rrix/fontkeming.fail_cert.pem
ssh -t last-bank sudo cp /home/rrix/fontkeming.fail_cert.pem /var/lib/nginx/certs/fontkeming.fail_cert.pem
ssh -t last-bank sudo systemctl reload nginx