Skip to content

Welcome to Tech Notes - My external memory

I store here commands, how-to guides or code/script snippets. It should be working on Linux or macOS.

! WARNING ! Do not copy & execute snippets blindly. You can damage your system.

Show my public IP

curl checkip.amazonaws.com

Generate random password

openssl rand -base64 6

Show top with processes filtered with pattern

Pattern is matched against full command line.

top -d 1 -c -p $(pgrep -d',' -f postgres)