Skip to content

Instantly share code, notes, and snippets.

View EntwistleOx's full-sized avatar
👽

Juan Díaz Ortega EntwistleOx

👽
  • https://www.zentagroup.com/
  • Santiago, Chile
View GitHub Profile
@EntwistleOx
EntwistleOx / vscode_shortcuts.md
Created August 27, 2020 18:05 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@EntwistleOx
EntwistleOx / sass-7-1-pattern.scss
Created February 7, 2021 23:48 — forked from rveitch/sass-7-1-pattern.scss
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@EntwistleOx
EntwistleOx / node_nginx_ssl.md
Created April 19, 2021 14:25 — 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

const obj = {}
Object.keys(obj).length === 0 && obj.constructor === Object
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
HOST_NAME=TrustNo1
# Use node stable
source ~/.nvm/nvm.sh
nvm use stable