Skip to content

Instantly share code, notes, and snippets.

View ismailalabou's full-sized avatar
🎯
Focusing

Ismail ALABOU ismailalabou

🎯
Focusing
View GitHub Profile
@ismailalabou
ismailalabou / node_nginx_ssl.md
Created December 28, 2020 12:52 — forked from bradtraversy/node_nginx_ssl.md
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

@ismailalabou
ismailalabou / vsc_js_snippets.json
Created December 28, 2020 12:51 — forked from bradtraversy/vsc_js_snippets.json
VSCode JavaScript Snippets
{
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
},
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"
@ismailalabou
ismailalabou / gist:09ef3765bad62f57be3b74634245e34d
Last active December 16, 2020 10:16 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@ismailalabou
ismailalabou / README-badges.md
Created December 13, 2020 08:55 — forked from tterb/README-badges.md
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@ismailalabou
ismailalabou / .gitignore
Created December 10, 2020 22:40 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@ismailalabou
ismailalabou / gitloghelp.txt
Created December 5, 2020 10:54 — forked from sudojunior/gitloghelp.txt
The summary of less commands for git (direct copy from cmd-line).
SUMMARY OF LESS COMMANDS
Commands marked with * may be preceded by a number, N.
Notes in parentheses indicate the behavior if N is given.
A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.
h H Display this help.
q :q Q :Q ZZ Exit.
---------------------------------------------------------------------------