Skip to content

Instantly share code, notes, and snippets.

View nevinera's full-sized avatar

Eric Mueller nevinera

  • Framebridge
  • Atlanta, GA
View GitHub Profile
@nevinera
nevinera / keybase.md
Created September 24, 2014 13:23
keybase.md

Keybase proof

I hereby claim:

  • I am nevinera on github.
  • I am nevinera (https://keybase.io/nevinera) on keybase.
  • I have a public key whose fingerprint is F682 4940 66B5 8A24 8833 FDBB 9DEC 0A89 C951 6DE0

To claim this, I am signing this object:

module Converter
def self.nested_hash(h, parts, val)
if parts.length > 1
key = parts.first
h[key] ||= {}
h[key] = self.nested_hash(h[key], parts[1..-1], val)
else
h[parts.first] = val
end
h
[user]
name = Eric Mueller
email = emueller@emcien.com
[core]
editor = mvim
whitespace = -trailing-space
pager =
excludesfile = /Users/nevinera/.gitignore
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
@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"
@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 / 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 / gist:2216473
Created March 27, 2012 14:37
import-demo
#!/usr/bin/ruby
RAILS_ENV = 'production'
`ln -sf database.yml.demo config/database.yml`
require File.expand_path('../config/boot', __FILE__)
require File.expand_path('../config/environment', __FILE__)
require 'highline/import'
@nevinera
nevinera / gist:2950161
Created June 18, 2012 19:15
.bash_prompt
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"