Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Open-Source Collaborations

Amine Hammou Zed-M

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

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) 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

@Zed-M
Zed-M / eslint_prettier_airbnb.md
Created Jul 19, 2019 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup
View eslint_prettier_airbnb.md

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
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
});
}
View offline_mdn_docs.md
@Zed-M
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
Zed-M / the best sources.md
Last active May 15, 2022
education purpose only
View the best sources.md
@Zed-M
Zed-M / webdev_online_resources.md
Created Jul 17, 2018 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md