Skip to content

Instantly share code, notes, and snippets.

View dipolesource's full-sized avatar

Michael McCormick dipolesource

View GitHub Profile
@dipolesource
dipolesource / gist:1265576
Created October 5, 2011 20:23
Log Juggernaut via Monit
check host juggernaut with address 127.0.0.1
start program = "/bin/bash -c '2>&1 1>>/home/deploy/juggernaut.log /usr/local/bin/node /usr/local/lib/node_modules/juggernaut/server.js'"
stop program = "/bin/kill -9 $(pidof node);/bin/kill -9 $(pgrep -f 'bash -c 2>&1 1>>/home/deploy/juggernaut.log')"
if failed port 8080 protocol HTTP
request /application.js
with timeout 10 seconds
then restart
@dipolesource
dipolesource / .inputrc
Created May 4, 2012 19:00 — forked from io41/.inputrc
OSX .inputrc to make terminal way better. and by better i mean i'm naked
"\e[1~": beginning-of-line
"\e[4~": end-of-line
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
@dipolesource
dipolesource / hack.sh
Created May 4, 2012 19:00 — forked from io41/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2281433/hack.sh | sh
#

Keybase proof

I hereby claim:

  • I am dipolesource on github.
  • I am dipolesource (https://keybase.io/dipolesource) on keybase.
  • I have a public key whose fingerprint is 6CED E45F 9C06 AEE8 4E90 4E97 A9C5 2232 35D3 8970

To claim this, I am signing this object: