Skip to content

Instantly share code, notes, and snippets.

@hiattp
hiattp / gist:3688789
Created September 10, 2012 03:55
Foodex Demo package.json
{
"name": "food-exercises",
"version": "0.0.3-1",
"private": true,
"dependencies": {
"express": "2.5.8",
"ejs": ">= 0.0.1"
},
"scripts": {
"start": "app.js"
@hiattp
hiattp / gist:3688714
Created September 10, 2012 03:38
Nodejitsu deploy 500 error
path.existsSync is now called `fs.existsSync`.
info: Welcome to Nodejitsu hiattp
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in app.js
info: Creating snapshot 0.0.3
info: Updating app food-exercises
info: Activating snapshot 0.0.3 for food-exercises
info: Stopping app food-exercises
info: App food-exercises is now stopped
@hiattp
hiattp / gist:3699396
Created September 11, 2012 14:55
Socket hang up error (nodejitsu)
path.existsSync is now called `fs.existsSync`.
info: Welcome to Nodejitsu hiattp
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in app.js
info: Creating snapshot 0.0.4
error: Error running command deploy
error: socket hang up
error: Error: socket hang up
error: at createHangUpError (http.js:1253:15)
@hiattp
hiattp / gist:3699386
Created September 11, 2012 14:54
Nodejitsu deploy socket hang up error
path.existsSync is now called `fs.existsSync`.
info: Welcome to Nodejitsu hiattp
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in app.js
info: Creating snapshot 0.0.4
error: Error running command deploy
error: write EPIPE
error: Error: write EPIPE
error: at errnoException (net.js:781:11)
@hiattp
hiattp / gist:3739350
Created September 17, 2012 19:44
Nodejitsu deploy 500 error (Sep 17)
info: Analyzing application dependencies in node app
info: Checking app availability stickies
info: Creating app stickies
info: Creating snapshot 0.0.1
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: No matching versions found
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
@hiattp
hiattp / rvm-test-output
Created January 13, 2014 14:38
RVM Test Output
##### starting test load_ruby-version.
$ : prepare
$ true TMPDIR:${TMPDIR:=/tmp}:
$ d=$TMPDIR/test-user
$ mkdir -p $d
$ cd $d
$ unset GEM_HOME GEM_PATH
$ PATH="$( echo $PATH | sed 's/^.*rvm[^:]*://' )"
# passed: env PATH != /rvm/
$ "$rvm_path/bin/rvm" install 2.0.0-p353
@hiattp
hiattp / sidekiq.config
Last active March 6, 2020 09:14
Sidekiq Config for Elastic Beanstalk
# Sidekiq interaction and startup script
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
content: |
#!/bin/bash
. /opt/elasticbeanstalk/hooks/common.sh
. /opt/elasticbeanstalk/support/envvars
@hiattp
hiattp / escape_multifunction.json
Created June 10, 2020 18:19
A complex modification rule for Karabiner Elements to enable the use of Escape as both Esc and Ctrl
{
"title": "Escape Multifunction",
"rules": [
{
"description": "Change Esc to both Esc and Control",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",