Skip to content

Instantly share code, notes, and snippets.

View pauloharaujos's full-sized avatar

Paulo Henrique Silva pauloharaujos

View GitHub Profile
@pauloharaujos
pauloharaujos / valet-plus-destroy
Created February 13, 2019 19:01 — forked from dannygsmith/valet-plus-destroy
Remove valet-plus - reboot required
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil. To add this option, just run the code below in your console:

var brazil = document.createElement('option');
brazil.value = '+55';
brazil.appendChild(document.createTextNode('Brazil +55'));
document.querySelectorAll('#countrycode').forEach((select) => select.appendChild(brazil));