Skip to content

Instantly share code, notes, and snippets.

View airandfingers's full-sized avatar

Aaron "Yoshi" Yoshitake airandfingers

View GitHub Profile
@airandfingers
airandfingers / compress.sh
Created January 21, 2022 17:18 — forked from danthegoodman/compress.sh
01 zero-to-hero ec2 and networking
#!/usr/bin/env bash
rm -f archive.zip
zip -r -q archive.zip node_modules *.js
echo "File created: archive.zip"
@airandfingers
airandfingers / gist:9577850
Created March 16, 2014 02:49
rpwm-server package.json contents
$ cat package.json
{
"name": "rpwm-server",
"version": "1.0.1",
"private": true,
"dependencies": {
"connect-flash": "latest",
"ecstatic": "latest",
"ejs": "latest",
"express": "latest",
@airandfingers
airandfingers / gist:9577597
Last active August 29, 2015 13:57
"jitsu install ghost --debug" failure - "Item or Account not found"
$ jitsu install ghost --debug
info: Welcome to Nodejitsu airandfingers
info: jitsu v0.13.15, node v0.10.26
info: It worked if it ends with Nodejitsu ok
info: Executing command install ghost
info: Installing ghost locally
warn: Downloading packages from npm, this may take a moment...
npm http GET https://registry.npmjs.org/persistent-ghost
npm http 304 https://registry.npmjs.org/persistent-ghost
npm http GET https://registry.npmjs.org/async
@airandfingers
airandfingers / gist:8564332
Created January 22, 2014 18:24
Modified version of unix-dgram's Socket.send function, with winston-syslog's usage of this function for reference
//unix-dgram/src/unix_dgram.js
Socket.prototype.send = function(buf, offset, length, path, callback) {
// FIXME defer error and callback to next tick?
var err;
if (send(this.fd, buf, offset, length, path) == -1) {
err = 'Error with send'; // Replaces this.emit('error', errnoException(errno, 'send'));
}
callback(err); // Always call callback, sometimes with err
};
@airandfingers
airandfingers / gist:4584663
Last active December 11, 2015 10:08
Error received while trying to deploy (no changes made to apps/corridor/app.js. NOTE: package.json file contains the following entry under dependencies: "connect-mongo": "latest",
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error:
error: There was an error while attempting to start the app
error: Error spawning drone
error: Script prematurely exited
error:
error: This type of error is usually a user error.
error: Error output from app:
error:
@airandfingers
airandfingers / gist:4571476
Created January 19, 2013 08:45
(Apparently intermittent) error received while trying to "jitsu deploy"
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: tar exited with code: 2
error: Error output from Haibu:
error:
error: Error: tar exited with code: 2
error: at ChildProcess.Tar.init (/root/haibu-orchestra/node_modules/haibu/lib/haibu/repositories/tar.js:58:26)
error: at ChildProcess.EventEmitter.emit (events.js:91:17)
@airandfingers
airandfingers / gist:4495986
Created January 9, 2013 19:17
error received during jitsu deploy
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: Rackspace Error (404): Item not found
error: Error output from Haibu:
error:
error: Error: Rackspace Error (404): Item not found
error: at Request._callback (/root/haibu-orchestra/node_modules/haibu/node_modules/cloudfiles/lib/cloudfiles/common.js:184:18)
error: at Request.init.self.callback (/root/haibu-orchestra/node_modules/haibu/node_modules/request/main.js:119:22)
@airandfingers
airandfingers / gist:4495794
Last active December 10, 2015 21:29
package.json
{
"name":"rpwm-server",
"version":"1.0.0-49",
"private":true,
"dependencies":
{
"connect-flash":"latest",
"ecstatic":"latest",
"ejs":"latest",
"express":"latest",
ayoshitake@aaron-dev:~/server_48$ jitsu deploy
info: Welcome to Nodejitsu airandfingers
info: jitsu v0.11.4, node v0.8.16
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in bootstrap.js
info: Creating snapshot 1.0.0-49
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
@airandfingers
airandfingers / gist:4449287
Created January 4, 2013 01:59
Error received upon attempting to deploy an update to my jitsu app
info: Creating snapshot 1.0.0-7
info Uploading: [=============================] 100%
info: Updating app rpwm-server
info: Activating snapshot 1.0.0-7 for rpwm-server
info: Starting app rpwm-server
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: Rackspace Error (404): Item not found