Skip to content

Instantly share code, notes, and snippets.

View jcrugzz's full-sized avatar

Jarrett Cruger jcrugzz

View GitHub Profile
@jcrugzz
jcrugzz / gist:3166170
Created July 23, 2012 20:54
kohai npm install fail
npm ERR! error reading /var/folders/zt/38s6rh6x7ml4ytmlw80pn62w0000gn/T/npm-1343076690635/1343076692008-0.3378928294405341/package
npm ERR! couldn't pack /var/folders/zt/38s6rh6x7ml4ytmlw80pn62w0000gn/T/npm-1343076690635/1343076692008-0.3378928294405341/package to /Users/crugej/.npm/socket.io/0.6.18/package.tgz
npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR! at Packer.addIgnoreRules (/usr/local/n/versions/0.6.19/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)
npm ERR! at Packer.<anonymous> (/usr/local/n/versions/0.6.19/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:133:10)
npm ERR! at [object Object].<anonymous> (fs.js:123:5)
npm ERR! at [object Object].emit (events.js:64:17)
npm ERR! at fs.js:1190:12
npm ERR! at Object.oncomplete (/usr/local/n/versions/0.6.19/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:5)
@jcrugzz
jcrugzz / gist:3167198
Created July 24, 2012 00:41
hello world
int main() {
std::cout << "Hello World" << "\n";
}
@jcrugzz
jcrugzz / gist:3239204
Created August 2, 2012 18:04
When running the "jitsu login" command with a string X following the login where X is anything, it produced the following error.
/usr/local/lib/node_modules/jitsu/node_modules/flatiron-cli-users/lib/commands.js:242
return err ? callback(err) : callback();
^
TypeError: string is not a function
at exports.login.cliUsers.before.setup.username (/usr/local/lib/node_modules/jitsu/node_modules/flatiron-cli-users/lib/commands.js:242:38)
at Provider.save (/usr/local/lib/node_modules/jitsu/node_modules/flatiron/node_modules/broadway/node_modules/nconf/lib/nconf/provider.js:492:34)
at async.reduce (/usr/local/lib/node_modules/jitsu/node_modules/flatiron/node_modules/broadway/node_modules/nconf/node_modules/async/lib/async.js:206:13)
at async.forEachSeries.iterate (/usr/local/lib/node_modules/jitsu/node_modules/flatiron/node_modules/broadway/node_modules/nconf/node_modules/async/lib/async.js:116:25)
at async.reduce (/usr/local/lib/node_modules/jitsu/node_modules/flatiron/node_modules/broadway/node_modules/nconf/node_modules/async/lib/async.js:203:17)
at saveStore (/usr/local/lib/
@jcrugzz
jcrugzz / gist:3346633
Created August 14, 2012 05:39
nodejitsu errors
info: Analyzing your application dependencies in node blackMail.js
info: Checking app availability blackMail
info: Creating app blackMail
info: Creating snapshot 0.0.0
info: Updating app blackMail
info: Activating snapshot 0.0.0 for blackMail
info: Starting app blackMail
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
prompt: Is this ok?: (yes) y
info: Creating snapshot 0.0.0-57
info: Updating app blackTechCloud
info: Activating snapshot 0.0.0-57 for blackTechCloud
info: Starting app blackTechCloud
error: Error running command deploy
error: socket hang up
error: Error: socket hang up
error: at createHangUpError (http.js:1263:15)
error: at CleartextStream.socketCloseListener (http.js:1314:23)
@jcrugzz
jcrugzz / gist:3350831
Created August 14, 2012 16:54
slightly more descriptive error
prompt: Is this ok?: (yes) y
info: Creating snapshot 0.0.0-61
info: Updating app blackTechCloud
info: Activating snapshot 0.0.0-61 for blackTechCloud
info: Starting app blackTechCloud
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
@jcrugzz
jcrugzz / gist:3354132
Created August 15, 2012 00:11
socket hangup
error: Error running command deploy
error: socket hang up
error: Error: socket hang up
error: at createHangUpError (http.js:1263:15)
error: at CleartextStream.socketCloseListener (http.js:1314:23)
error: at CleartextStream.EventEmitter.emit (events.js:115:20)
error: at SecurePair.destroy (tls.js:897:22)
error: at process.startup.processNextTick.process._tickCallback (node.js:244:9)
info: Nodejitsu not ok
@jcrugzz
jcrugzz / gist:3369004
Created August 16, 2012 09:55
marketing
info: Welcome to Nodejitsu jcrugzz
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in node app.js
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write /Users/jcrugzz/node.js/btc/blackMarketing/package.json
data:
data: {
data: name: 'blackMarketing',
@jcrugzz
jcrugzz / package.json
Created August 21, 2012 21:16
deploy error
info: Welcome to Nodejitsu jcrugzz
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in node quill.js
info: Checking app availability pktPreterms
info: Creating app pktPreterms
info: Creating snapshot 0.0.1-5
info: Updating app pktPreterms
info: Activating snapshot 0.0.1-5 for pktPreterms
info: Starting app pktPreterms
info: Creating snapshot 0.0.1-8
info: Updating app pktPreterms
info: Activating snapshot 0.0.1-8 for pktPreterms
info: Starting app pktPreterms
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies