rsync -avni --delete site/ backup/One useful line
every morning
A single bash one-liner published every weekday, explained flag by flag. The kind of thing you would have worked out eventually, but faster. No accounts, no tracking, no cookies, nothing for sale.
this week / 007 entriesall 017 →
awk '{n[$7]++; bytes[$7]+=$10} END {for (u in n) printf "%12.0f %6d %s\n", bytes[u], n[u], u}' access.log | sort -rn | headTotal a column grouped by another one in a single pass
ps -eo pid,ppid,rss,etimes,pcpu,comm --sort=-rss | head -11Find the process that is quietly eating your memory
find . \( -name node_modules -o -name .git \) -prune -o -type f -name '*.ts' -printSearch a project without walking into node_modules
curl -sS -o /dev/null -w "dns %{time_namelookup}\ntcp %{time_connect}\ntls %{time_appconnect}\nttfb %{time_starttransfer}\ntotal %{time_total}\n" https://www.debian.orgFind out which part of an HTTP request is actually slow
git reflog show --date=relative HEADBring back the commits you lost to a bad reset
diff <(sort packages-web01.txt) <(sort packages-web02.txt)