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
# ~/.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
const obj = {}
Object.keys(obj).length === 0 && obj.constructor === Object
@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

@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 / 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 / app.js
Created July 21, 2020 23:23 — forked from stongo/app.js
Joi validation in a Mongoose model
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var db = mongoose.connection;
db.on('error', function() {
return console.error.bind(console, 'connection error: ');
});
/* Estructura y Datos de las Regiones, Provincias */
/* y Comunas de Chile. */
/* */
/* Fecha: Julio 2010 */
/* Autor: Juan Pablo Aqueveque - juque.cl */
--
-- Comunas
--
DROP TABLE IF EXISTS `comunas`;
@EntwistleOx
EntwistleOx / add_two_times.js
Created May 14, 2020 19:27 — forked from joseluisq/add_two_times.js
Add two string time values (HH:mm:ss) with javascript
/**
* Add two string time values (HH:mm:ss) with javascript
*
* Usage:
* > addTimes('04:20:10', '21:15:10');
* > "25:35:20"
* > addTimes('04:35:10', '21:35:10');
* > "26:10:20"
* > addTimes('30:59', '17:10');
* > "48:09:00"
@EntwistleOx
EntwistleOx / .md
Last active January 30, 2023 12:25
Heroku and Github via SSH

Guide to connect Heroku and Github via SSH

Working on Ubuntu 18.04 LTS and Win 10

Create SSH key in your machine:

$ ssh-keygen -t rsa -b 4096 -C "my@email.com" 
@EntwistleOx
EntwistleOx / .md
Created May 8, 2020 20:51
QUIZ - PROFESSIONAL SCRUM MASTER CERTIFICATE

Scrum Master Professional Certificate (SMPC®)

Preguntas de Apoyo V022020

1. Si la reunión diaria de Scrum tiene un tiempo de 15 minutos, entonces...

  1. El Sprint Review es de 4 horas.
  2. El Sprint Review es de 1 hora.
  3. No lo sabemos, es necesario conocer la duración del Sprint.
  4. El Sprint Review es de 2 horas.