Skip to content

Instantly share code, notes, and snippets.

View ebensing's full-sized avatar

E.J. Bensing ebensing

View GitHub Profile
INFO global: Vagrant version: 1.6.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DETECTED_OS="MINGW32_NT-6.2"
INFO global: VAGRANT_EXECUTABLE="c:/HashiCorp/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.1/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="c:/HashiCorp/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"

Keybase proof

I hereby claim:

  • I am ebensing on github.
  • I am ejb (https://keybase.io/ejb) on keybase.
  • I have a public key whose fingerprint is E9B8 593A 756D F7DC A0B7 C0B9 AF15 6632 9494 6189

To claim this, I am signing this object:

@ebensing
ebensing / gist:6092798
Last active December 20, 2015 07:19
mongodb node driver events not working
var mongodb = require('mongodb');
var ReplSet = mongodb.ReplSet;
var replSet = new ReplSet([
new mongodb.Server('localhost', 27018, {}),
new mongodb.Server('localhost', 27019, {}),
new mongodb.Server('localhost', 27020, {})
], { rs_name : 'rs0' } );
//var mongoserver = new mongodb.Server('localhost', 27017, {});
var db_conn = new mongodb.Db('test1', replSet, { w : 1 });
@ebensing
ebensing / gist:5914245
Created July 2, 2013 23:43
Cause node to crash
var m = require('mongoose'),
fs = require('fs'),
http = require('http');
var memwatch = require('memwatch');
memwatch.on('leak', function (info) {
console.log(info);
});