I hereby claim:
- I am danmactough on github.
- I am danmactough (https://keybase.io/danmactough) on keybase.
- I have a public key whose fingerprint is 30E1 D7AF E3AE E6FF BDD3 FAC5 EC34 D42B 9B94 EEF8
To claim this, I am signing this object:
alias psm='ps axo pid,pcpu,pmem,rss,vsz,command' | |
# ^^ Not git, but awesome | |
alias ga="git add" | |
alias gb="git branch" | |
alias gba="git branch -a" | |
alias gbd="git branch -D" | |
alias gca="git commit -a -m" |
I hereby claim:
To claim this, I am signing this object:
var vm = require('vm'); | |
var boss = 'Mr. Trump' | |
, condition = 'bald'; | |
var script = [ | |
'boss = name;', | |
'condition = type;', | |
'result = boss + " is " + condition;' | |
].join('\n'); |
#!/bin/bash | |
if [[ $OSTYPE == darwin* ]]; then | |
sudo killall -HUP mDNSResponder | |
fi |
Gmail has a setting to enable multiple types of stars. Not "give this email 2 stars and this other email 1 star," but "give this email a gold star and this other email a blue star." YMMV as to whether this is helpful.
#!/bin/bash | |
LINE=$1 | |
KNOWN_HOSTS=~/.ssh/known_hosts | |
usage() { | |
cat <<-EOM | |
Usage: ssh-purge-host <line no> |
Welcome and thank you for signing up for NodeSchool at NationJS 2014. To make this NodeSchool the best NodeSchool, there are a few things that you can do before you arrive to be ready to excel at this NodeSchool!
if { | |
something(); | |
// } else { | |
// somethingElse(); | |
} |
node_modules/aws-sdk/lib/metadata_service.js | |
node_modules/aws-sdk/lib/request.js | |
node_modules/aws-sdk/node_modules/sax/examples/example.js | |
node_modules/aws-sdk/node_modules/xml2js/lib/xml2js.js | |
node_modules/feedparser/History.md | |
node_modules/feedparser/node_modules/readable-stream/lib/_stream_duplex.js | |
node_modules/feedparser/node_modules/readable-stream/lib/_stream_readable.js | |
node_modules/feedparser/node_modules/readable-stream/lib/_stream_writable.js | |
node_modules/feedparser/node_modules/sax/examples/example.js | |
node_modules/opmlparser/node_modules/readable-stream/lib/_stream_duplex.js |
function () { | |
actions.zoomForPrint(); | |
window.requestAnimationFrame(function () { | |
const imgData = getImageFromCanvas(); | |
// atob to base64_decode the data-URI | |
const imgSrc = atob(imgData.split(",")[1]); | |
// Use typed arrays to convert the binary data to a Blob | |
const buffer = new ArrayBuffer(imgSrc.length); | |
var view = new Uint8Array(buffer); | |
for (var i = 0; i < imgSrc.length; i++) { |