Skip to content

Instantly share code, notes, and snippets.

View nevinera's full-sized avatar

Eric Mueller nevinera

  • High-Impact Rubyism
  • Atlanta, GA
View GitHub Profile
@nevinera
nevinera / gist:1451524
Created December 9, 2011 13:29
monkey patch on delayed_job 2.1.4 to propagate sigquit exceptions into application code
module Delayed
class Worker
def start
say "Starting job worker"
trap('TERM') { $exit = true; raise SignalException.new("TERM")}
trap('INT') { say 'Exiting...'; $exit = true }
loop do
result = nil
@nevinera
nevinera / vimrc
Created November 19, 2011 03:23
my vimrc including method-only ruby folding
call pathogen#infect()
set nocompatible
let mapleader = ","
set history=1000
set formatoptions=""
set undofile
set undoreload=10000
set undodir=~/.vim/undo//
@nevinera
nevinera / .gitconfig
Created October 31, 2011 21:24
git log prettification
[alias]
lg = "!git log -n 100 --graph --date=short --pretty=tformat:'%h||%cd||%an||%d||%s' | gfix"
l = "!git log -n 100 --reverse --date=short --pretty=tformat:'%h||%cd||%an||%d||%s' | gfix"
ll = "!git log -n 1000 --reverse --date=short --pretty=tformat:'%h||%cd||%an||%d||%s' | gfix"
filetype off
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
au! BufRead,BufNewFile *.haml setfiletype haml
set nocompatible
set vb t_vb=
let mapleader = ","
set history=1000
[user]
name = Eric Mueller
email = emueller@emcien.com
[core]
editor = mvim
whitespace = -trailing-space
pager =
excludesfile = /Users/nevinera/.gitignore