Skip to content

Instantly share code, notes, and snippets.

View vinicius-sabadim's full-sized avatar

Vinicius Sabadim Fernandes vinicius-sabadim

  • Amsterdam, Netherlands
View GitHub Profile
@vinicius-sabadim
vinicius-sabadim / node_nginx_ssl.md
Created September 23, 2019 12:56 — forked from bradtraversy/node_nginx_ssl.md
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) 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

@vinicius-sabadim
vinicius-sabadim / roux.txt
Last active July 22, 2019 21:22
Rubik Roux method
- Put the 4 yellow corners on top
R U R' U R U2 R'
- Orienting the yellow corners
R U R' U' R' F R2 U' R' U' R U R' F'
- Last six edges
M' U' M'
@vinicius-sabadim
vinicius-sabadim / readme.md
Created June 25, 2019 12:44
How to redirect to index.html on the readme.md

permalink: /index.html

@vinicius-sabadim
vinicius-sabadim / gist:389c69875469d739650701cfab1bc619
Created March 12, 2019 16:47
Install modules on jupyter notebook
import sys
!{sys.executable} -m pip install pandas --user
@vinicius-sabadim
vinicius-sabadim / code.txt
Created October 16, 2018 21:38
Find js files with most lines of code
find . -name "*.js" -type f | xargs wc -l | sort -rn | grep -v ' total$' | head -1
@vinicius-sabadim
vinicius-sabadim / docker_commands.md
Last active February 28, 2018 14:39
Docker commands

Docker machine

List available machines

docker-machine ls

Start a machine

docker-machine start <machine_name>

Stop a machine

docker-machine stop

@vinicius-sabadim
vinicius-sabadim / random-number.js
Created February 8, 2017 22:07
Generate random number between 2 values
Math.floor(Math.random() * 6) + 1
@vinicius-sabadim
vinicius-sabadim / gist:3f4313ab6e6e2eac4eea
Created September 22, 2015 18:53
Comando para resolver o problema do skype mutando o áudio
pactl unload-module module-role-cork
@vinicius-sabadim
vinicius-sabadim / gist:a29e452fce5d56006a72
Created August 19, 2014 17:04
Show current branch on terminal (Fedora 20)
export PS1='\[\033[36m\]\u@\h \[\033[32m\]\W$(declare -F __git_ps1 &>/dev/null && __git_ps1 "\[\033[33m\] (%s)")]\[\033[37m\]$ '
source /usr/share/git-core/contrib/completion/git-prompt.sh