A collection of 123 tips that come in real handy when you need them. Originally posted as tweets on
my Twitter account,
and now gathered here so you can browse them easily.
Restrict SSH Key to Specific Commands
💡 You can restrict/force an SSH key to one command and prevent granting full access to a server.
👉🏼 Prepend the key in `authorized_keys` file with `command=""` (e.g.: `command="pm2 restart" ssh-rsa AAAAB3N...`).
💡 wait-for-it is a zero dependency bash script that waits until a service (eg. DB) is ready. It's better than depends_on in Compose because it actually waits for the process to be up, not just container.