Skip to content

Other useful stuff

Brew

  ~ brew upgrade gh
Error: Another `brew update` process is already running.
Please wait for it to finish or terminate it to continue.

brew cleanup
rm -rf "$(brew --prefix)/var/homebrew/locks"

One-liners

Coommand to kill all processes listening on port 5432.

sudo lsof -i :5432 | awk 'NR!=1 {print $2}' | xargs sudo kill