Skip to content

Instantly share code, notes, and snippets.

View Tosinfamzy's full-sized avatar
🏠
Senior Software Engineer

Tosin Tosinfamzy

🏠
Senior Software Engineer
View GitHub Profile
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active February 24, 2026 02:10
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

@bradtraversy
bradtraversy / docker-help.md
Last active March 7, 2026 21:11
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active August 3, 2024 16:45
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@dsposito
dsposito / Cards.php
Last active April 23, 2021 14:44
A simple class for interacting with a deck of cards.
<?php
/**
* Contains methods for interacting with a deck of cards.
*
* @author Daniel Sposito <daniel.g.sposito@gmail.com>
*/
class Deck
{
/**