Skip to content

Instantly share code, notes, and snippets.

🎯
Working

Shripad Krishna shripadk

🎯
Working
View GitHub Profile
View gist:4056219
➜ team-unknown git:(master) jitsu deploy
info: Welcome to Nodejitsu nko3-team-unknown
info: jitsu v0.11.3, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server.js
info: Creating snapshot 0.0.4
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
View gist:4054495
/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:726
throw new Error("Connection in pub/sub mode, only pub/sub commands may
^
Error: Connection in pub/sub mode, only pub/sub commands may be used
at RedisClient.send_command (/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:726:15)
at RedisClient.commands.forEach.RedisClient.(anonymous function) (/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:872:25)
at Timer.<anonymous> (/Users/shripadk/NKO/team-unknown/app.js:40:28)
at Timer.exports.setInterval.timer.ontimeout (timers.js:234:14)
View gist:4053449
/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:504
throw callback_err;
^
Error: Auth error: ERR timeout
at Command.RedisClient.do_auth.self.send_anyway [as callback] (/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:171:43)
at RedisClient.return_error (/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:500:25)
at ReplyParser.RedisClient.init_parser (/Users/shripadk/NKO/team-unknown/node_modules/redis/index.js:260:14)
at ReplyParser.EventEmitter.emit (events.js:96:17)
at ReplyParser.send_error (/Users/shripadk/NKO/team-unknown/node_modules/redis/lib/parser/javascript.js:293:10)
at ReplyParser.execute (/Users/shripadk/NKO/team-unknown/node_modules/redis/lib/parser/javascript.js:176:22)
View gist:4050810
➜ team-unknown git:(master) ✗ jitsu databases create redis sentineldb
info: Welcome to Nodejitsu nko3-team-unknown
info: jitsu v0.10.5, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command databases create redis sentineldb
info: A new redis has been created
/Users/shripadk/node/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:320
server = database.metadata.label.split('-')[0] + '.redistogo.com';
^
View gist:4046940
➜ sigar git:(master) sudo node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@0.7.3
gyp info using node@0.8.14 | darwin | x64
gyp info spawn python
gyp info spawn args [ '/Users/shripadk/.node-gyp/0.8.14/tools/gyp/gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
View gist:4046882
➜ test sudo npm install test-sigar-gyp --verbose
npm info it worked if it ends with ok
npm verb cli [ '/Users/shripadk/node/bin/node',
npm verb cli '/Users/shripadk/node/bin/npm',
npm verb cli 'install',
npm verb cli 'test-sigar-gyp',
npm verb cli '--verbose' ]
npm info using npm@1.1.65
npm info using node@v0.8.14
npm verb read json /Users/shripadk/Test/package.json
View binding.gyp
{
'targets': [
{
'target_name': 'sigar',
'conditions': [
['OS=="win"', {
'build': '<!(echo windows))'
}, {
'build': '<!(sudo cp -rp <(module_root_dir)/deps/sigar <(module_root_dir)/build/sigar && cd <(module_root_dir)/build/sigar && sudo ./autogen.sh && sudo ./configure --prefix=<(module_root_dir)/build/Release --with-pic && sudo make && sudo make install))',
'sources': ['src/node_sigar.cc'],
View gist:4043961
{
'targets': [
{
'target_name': 'sigar',
'conditions': [
['OS=="win"', {
'build': '<!(echo windows))'
}, {
'build': '<!(sudo cp -rp <(module_root_dir)/deps/sigar <(module_root_dir)/build/sigar && cd <(module_root_dir)/build/sigar && ./autogen.sh && ./configure --prefix=<(module_root_dir)/build/Release --with-pic && make && make install))',
'sources': ['src/node_sigar.cc'],
View gist:3966915
Manager.prototype.initStore = function () {
this.handshaken = {};
this.connected = {};
this.open = {};
this.closed = {};
this.rooms = {};
this.roomClients = {};
var self = this;
@shripadk
shripadk / gist:3966914
Created Oct 27, 2012
transport.js changes
View gist:3966914
Transport.prototype.end = function (reason) {
if (!this.disconnected) {
this.log.info('transport end (' + reason + ')');
var local = this.manager.transports[this.id];
this.close();
this.clearTimeouts();
this.disconnected = true;
You can’t perform that action at this time.