Little tricks

We all have tips and tricks that makes the difference on day to day use. These are ours.

Generate a self-signed certificate

openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout self.key -out self.crt

Side note: -days 3650 keeps your certificate valid for 10 years.

Generate an ssh key, the right way

This key format is just far more efficient than the default one (currently RSA).

ssh-keygen -t ed25519

Side note: default file will be ~/.ssh/id_ed25519 instead of ~/.ssh/id_rsa.

Validate OpenAPI file easily

  1. Install redocly
  2. Run redocly lint

Find big files and folders with ease

The command ncdu is not often installed by default, but it is a real game-changer when you try to remove big files or folders.

$ ncdu /

You can navigate easily into big folders. Use ? to learn how it works!