Skip to content

Instantly share code, notes, and snippets.

View mykolaharmash's full-sized avatar

Mykola Harmash mykolaharmash

View GitHub Profile
fucntion fn () {
setImmediate(function () {
console.log('setImmediate');
});
process.nextTick(function () {
console.log('nextTick');
});
}
Check which process on which port
lsof -i -n -P
alias served="ruby -r webrick -e \"s = WEBrick::HTTPServer.new(:Port => 9090, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\""