Skip to content

Instantly share code, notes, and snippets.

View christkv's full-sized avatar

Christian Amor Kvalheim christkv

View GitHub Profile
@christkv
christkv / gist:1056845
Created June 30, 2011 18:23
Output log
info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'publish', 'mongodb' ]
info using npm@1.0.15
info using node@v0.4.9
verbose config file /Users/christian.kvalheim/.npmrc
verbose config file /usr/local/etc/npmrc
verbose publish [ 'mongodb' ]
info addNamed [ 'mongodb', '' ]
verbose addNamed [ null, '' ]
verbose GET mongodb
@christkv
christkv / replicaset_test_server.js
Created June 18, 2011 23:31
Server for replicaset test
var ReplicaSetManager = require('./test/tools/replica_set_manager').ReplicaSetManager;
var mongo = require('./lib/mongodb'),
Server = mongo.Server,
ReplSetServers = mongo.ReplSetServers,
http = require('http'),
debug = require('util').debug,
inspect = require('util').inspect;
var RS = new ReplicaSetManager({retries:120, arbiter_count:1, secondary_count:1, passive_count:0, name:'rs1'});