This file contains hidden or 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
"test": "nyc ava --verbose", | |
"test:suite": "nyc ava --tap | tap-spec", | |
"test:watch": "ava --verbose --watch", | |
"report": "nyc report --reporter=html", | |
"test-report": "nyc ava && nyc report --reporter=html", |
This file contains hidden or 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
# SINCRONIZA AS BRANCHES REMOTAS PARA LOCAL | |
for remote in `git branch -r `; do git branch --track $remote; done | |
git remote update | |
git pull --all |
This file contains hidden or 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
cp /etc/skel/.bashrc ~/ |
This file contains hidden or 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
// Método Ajax | |
function getData(){ | |
$promise = $.Deferred(); | |
setTimeout(function(){ | |
$promise.resolve(); | |
}, 3000); | |
return $promise.promise; | |
} |
This file contains hidden or 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
sudo netstat -nlp|grep 4000 |
This file contains hidden or 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
wget http://someaddress.com/logs/dbsclog01s{001..050}.log |
This file contains hidden or 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(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' |
This file contains hidden or 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
killall -9 node | |
require('child_process').exec(`kill -9 ${pid}`) | |
// Base: https://gist.github.com/dominhhai/aa7f3314ad27e2c50fd5 |
This file contains hidden or 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
//https://webapps.stackexchange.com/questions/100820/how-do-i-invite-all-team-members-to-a-new-slack-channel | |
var foundAny=false; | |
function selectAllByLetter(remainingLetters) { | |
console.log(remainingLetters) | |
var letter = remainingLetters.pop(); | |
$("#channel_invite_filter").val(letter).trigger("input"); | |
setTimeout(function() { | |
$(".channel_invite_member:not(hidden)").each(function(i, obj) { | |
foundAny=true; |