Skip to content

Instantly share code, notes, and snippets.

View daviddias's full-sized avatar

David Dias daviddias

View GitHub Profile
function renameKeys (dict, keyMap) {
return _.reduce(dict, function (newDict, val, oldKey) {
var newKey
if (keyMap[oldKey]) {
newKey = keyMap[oldKey]
} else {
newKey = oldKey
}
newDict[newKey] = val
return newDict
Verifying I am +daviddias on my passcard. https://onename.com/daviddias

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

$scope.$watch("waiting", function(upd, out){
console.log(upd, out);
});
{
"scripts": {
"lint": "jshint .",
"requiresafe": "./node_modules/.bin/requiresafe check"
},
"pre-commit": ["requiresafe"]
}
diasdavid 2 hours ago
Yo @alanshaw !
around?
you did something well (again :grinning:) that we are missing in our nsp tool
https://david-dm.org/nodesecurity/nodesecurity-blog you identify and very well vulnerabilities on our blog app
but the nsp tool is skipping that
alanshaw 2 hours ago
ha!
diasdavid 2 hours ago
This file has been truncated, but you can view the full file.
[ { begin_x: 0,
end_x: 20,
begin_y: 0,
end_y: 20,
animation: undefined,

#If you're on Ubuntu or working with a Linux VM...

Step 1: Install the Ubuntu dependencies needed:

SSH into your server as a root or do sudo -i.

Then install necessary software:

apt-get update
@daviddias
daviddias / example.js
Created July 20, 2014 00:35
hapi js and socker io
// server is a hapi server
var io = require(socket.io)(server.listener);