Skip to content

Instantly share code, notes, and snippets.

David Dias daviddias

Block or report user

Report or block daviddias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
daviddias / json.json
Created Jan 31, 2014
example api-map.json
View json.json
"title": "my API docs",
"api-calls": [
"id": "route-weapons",
"method": "GET",
"data-route": "/api/weapons",
"data-target": "route-weapons",
"data-truncate": "20"
daviddias /
Created Feb 23, 2014
npm is throwing things at me
6583 verbose url raw optimist/0.6.0
6584 verbose url resolving [ '', './optimist/0.6.0' ]
6585 verbose url resolved
6586 info trying registry request attempt 1 at 21:42:32
6587 http GET
6588 verbose url raw prompt/0.2.11
6589 verbose url resolving [ '', './prompt/0.2.11' ]
6590 verbose url resolved
6591 info trying registry request attempt 1 at 21:42:32
6592 http GET

Keybase proof

I hereby claim:

  • I am diasdavid on github.
  • I am daviddias ( on keybase.
  • I have a public key whose fingerprint is 514F 61E0 DEBA 3BDD 1CC6 4B12 65BB 334E A290 D05B

To claim this, I am signing this object:

View gist:d3717e292a5cbd5beb7f
var Docker = require('dockerode');
var docker = new Docker({socketPath: '/var/run/docker.sock'});
docker.createContainer({ Image: 'ubuntu', Cmd: ['/bin/ls','/stuff'], "Volumes":{"/stuff": {}} }, function (err, container) {
container.attach({stream: true, stdout: true, stderr: true, tty: true}, function (err, stream) {
container.start({"Binds":["/home/vagrant:/stuff"]}, function (err, data) {

Leader presumes follower. Follower presumes choice. One who is coerced to the purposes, objectives, or preferences of another is not a follower in any true sense of the word, but an object of manipulation. Nor is the relationship materially altered if both parties voluntarily accept the dominance of one by the other. A true leader cannot be bound to lead. A true follower cannot be bound to follow. The moment they are bound they are no longer leader or follower. If the behavior of either is compelled, whether by force, economic necessity, or contractual arrangement, the relationship is altered to one of superior/subordinate, manager/employee, master/servant, or owner/slave. All such relationships are materially different from leader/follower…

A vital question is how to insure that those who lead are constructive, ethical, open, and honest. The answer is to follow those who behave in that manner. It comes down to both individual and collective sense of where and how people choose to be led. In a very real sens


25 Jun

26 Jun

10am-12pm NodeSchool

2pm-4pm Lunch

5pm-6:30pm World Cup in Terreiro do Paço

daviddias /
Last active Aug 29, 2015
LXJS has a rad calendar for you!


The Weather in Lisbon is 35C/95F, only 2 weeks left to the conference and we cannot even tell how excited we are to have you all coming to Lisbon(if you are not here already :))!

We do have some great updates to you! LXJS this year will not be only a two days conference, instead and thanks to the community we are proudt to be part off, we have a full week scheduled of JS events! (Meetups from MongoDB, D3JS, NodeSchool, Unhosted and Meteor)

If you happen you be a student, you are in luck, Meteor is back this year again to offer Students a Golden Ticket to LXJS and all you need to know is to simply develop a Meteor Hack or App to try out the platform and show case what you have learned at the Meteor Lisbon 1st Meetup! Learn more here . If you have friends that are students, be sure to pass the message!

Also, in case you didn't notice, the first NodeRoad event in Europe will be in Lisbon, right after LXJS, thanks to Joyent

daviddias /
Last active Aug 29, 2015
NodeRoad Announcements

In partnership with LXJS (, Joyent, the high-performance cloud infrastructure and big data analytics company is bringing Node.js on the Road to Lisbon, Portugal Sunday June 29!

As corporate stewards of Node.js, Joyent is sharing Node.js production user stories with the broader community.

Nuno Job of YLD! will be hosting our great line up including TJ Fontaine, the Node.js Project Lead, Ben Acker from Walmart, and Rudi De Sousa of British Gas as they share key learnings, benefits, and patterns around deploying Node.js.

We want to thank Beta-i( for having us in their offices at Central Station to host this event.

Join us on the #NodeRoad as we connect, contribute, and pave the road ahead with Node.js!

daviddias / Issue.js
Last active Aug 29, 2015
error from dulcimer
View Issue.js
var dulcimer = require('dulcimer');
var verymodel = require('verymodel');
// var bcrypt = require('bcrypt');
// var crypto = require('crypto');
// var async = require('async');
// var type = verymodel.VeryType;
var Issue = new dulcimer.Model(
daviddias / example.js
Created Jul 20, 2014
hapi js and socker io
View example.js
// server is a hapi server
var io = require(;
You can’t perform that action at this time.