start new:
tmux
start new with session name:
tmux new -s myname
module Rack | |
class ZombieShotgun | |
ZOMBIE_AGENTS = [ | |
/FrontPage/, | |
/Microsoft Office Protocol Discovery/, | |
/Microsoft Data Access Internet Publishing Provider/ | |
].freeze | |
ZOMBIE_DIRS = ['_vti_bin','MSOffice','verify-VCNstrict','notified-VCNstrict'].to_set.freeze |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |