Skip to content

Instantly share code, notes, and snippets.

View ekas's full-sized avatar

Ekas Preet Singh ekas

  • Lufthansa Technik
  • Hamburg, Germany
  • 20:52 (UTC +02:00)
  • X @ekaspreet93
View GitHub Profile
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active May 16, 2025 13:07
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@wojteklu
wojteklu / clean_code.md
Last active May 19, 2025 15:26
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules