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.
A Better Minimum Compression Size in Nginx
💡 Compressing anything that's small is unlikely to shrink much. In some cases, it even make it bigger!
👉🏼 That's why I always make sure to set "gzip_min_length" in Nginx to something higher than the default.
👉🏼 Webhook allows you to easily create HTTP endpoints (hooks), which you can use to execute commands. Useful if you're configuring auto-deployments from a repository.
💡 How do you conveniently assign an available port to an app?
👉🏼 Use PORT=0! The kernel will pick a random unused port number and bind it to your app. This is useful when you're deploying multiple apps on a single server.