Skip to content

Instantly share code, notes, and snippets.

Open-Source Collaborations

Amine Hammou Zed-M

Open-Source Collaborations
View GitHub Profile
Zed-M /
Created Sep 23, 2019 — forked from bradtraversy/
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean 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)

2. Create a droplet and log in via ssh

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

Zed-M /
Created Jul 19, 2019 — forked from bradtraversy/
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
Zed-M / async-await.js
Created May 1, 2019 — forked from wesbos/async-await.js
Simple Async/Await Example
View async-await.js
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
Zed-M / vsc_js_snippets.json
Created Mar 2, 2019 — forked from bradtraversy/vsc_js_snippets.json
VSCode JavaScript Snippets
View vsc_js_snippets.json
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"
Zed-M / the best
Last active May 15, 2022
education purpose only
View the best
Zed-M /
Created Jul 17, 2018 — forked from bradtraversy/
Online Resources For Web Developers (No Downloading)