Skip to content

Tips

Handy tips always at your fingertips

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.

Find Out Why Your Site Isn't Fully Secure

πŸ’‘ Are you trying to find out why your secure page is not fully secure?

πŸ‘‰πŸΌ This website will tell you about any insecure items on your SSL page so you can finally get that sweet padlock πŸ”’ next to your URL.

https://www.whynopadlock.com/

Read tip

What Makes a Website Dynamic

πŸ’‘ What makes a website dynamic?

πŸ‘‰πŸΌ A dynamic website uses a server-side programming language to deliver content at runtime. Content can be different for each user, but doesn't need to be. If there is a database involved, the website is dynamic.

Read tip

What Makes a Website Static

πŸ’‘ What makes a website static?

πŸ‘‰πŸΌ A static website does *not* use a programming language on the server to render different content. It *always* returns the same HTML, JS and CSS. Static websites don't have a database and are "done" at build time.

Read tip

Next.js or Gatsby? A Dynamic vs Static Choice

πŸ’‘ Can't decide between Next.js or Gatsby? Consider static vs dynamic content.

Does your site have dynamic content, or it might have in the future? Then go with Next.js since Gatsby works for static websites only.

Read tip

Tell Heroku How to Start Your App With Procfile

πŸ’‘ If Heroku can't detect your app language you have to add a `Procfile` at the root of your project. The format is:

πŸ‘‰πŸΌ <process type>: <command>

A Node.js web server with index.js as entrypoint would have a Procfile with:

πŸ‘‰πŸΌ web: node index.js

Read tip

Fix R10 Error From Heroku

πŸ’‘ Is your Node app crashing with a R10 error when deploying to Heroku?

πŸ‘‰πŸΌ Make sure your application listens to the correct port assigned by Heroku with the `PORT` env variable.

`const PORT = process.env.PORT;
app.listen(PORT, () => { ... });`

Read tip

DevOps Roadmap

πŸ’‘DevOps can be intimidating. It's easy to get lost with all the jargon being thrown around.

πŸ‘‰πŸΌDevOps Roadmap by @kamranahmedse is a great overview of the landscape. Use it to find gaps in your knowledge and interesting areas to further explore.

https://roadmap.sh/devops

Read tip

Add Public Key to Server With ssh-copy-id

πŸ’‘ To SSH into a server using a key pair you need to add your public key to the server's "authorized_keys" file.

Besides old-school copy-pasting your public key into the file, you can also use ssh-copy-id:

πŸ‘‰πŸΌ `ssh-copy-id -i ~/.ssh/mykey.pub user@host`

Read tip