This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-03-19T14:30:56.963Z","extensionVersion":"v2.9.0"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extract { | |
if [ -z "$1" ]; then | |
# display usage if no parameters given | |
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>" | |
echo " extract <path/file_name_1.ext> [path/file_name_2.ext] [path/file_name_3.ext]" | |
return 1 | |
else | |
for n in $@ | |
do | |
if [ -f "$n" ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": ["airbnb", "prettier"], | |
"env": { | |
"browser": true, | |
"node": true, | |
"mocha": true | |
}, | |
"globals": { | |
"describe": false, | |
"it": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Baixe este arquivo em https://gist.github.com/FerreiraRaphael/541090faceef655e9d949f5ce926f855 | |
//Execute: | |
//node <nome-do-arquivo>.js | |
let resultadoEsperado, resultado; | |
//Composição funcional | |
const usuarios = [ | |
{ | |
id: 1, | |
nome: "Raphael" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-08-23T19:05:46.953Z","extensionVersion":"v2.8.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bash/bin | |
#enable sudo to current user | |
apt-get install sudo | |
adduser whoami sudo | |
reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#atom sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Login as root | |
su - | |
#Switch to postgres user | |
su postgres | |
#Connect to the DB | |
psql | |
#Create user | |
CREATE USER username SUPERUSER INHERIT CREATEDB CREATEROLE; | |
#Alter it`s password | |
ALTER USER username PASSWORD 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
{ "keys": ["shift+ctrl+i"], "command": "reindent", "args": {"single_line": false}}, | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
{ "keys": ["ctrl+v"], "command": "paste_and_indent" }, | |
{ "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, | |
{ "keys": ["ctrl+shift+v"], "command": "paste" }, | |
{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+;"], "command": "toggle_comment", "args": { "block": true } }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#update fedora | |
sudo dnf upgrade | |
#dmenu | |
sudo dnf install dmenu | |
#Gnome Tweak Tools | |
sudo dnf install gnome-tweak-tool |