Skip to content

Instantly share code, notes, and snippets.

View jodell's full-sized avatar

Jeffrey ODell jodell

View GitHub Profile

Idiot-Proof Git Aliases

#!/bin/sh
~/Applications/UniversalIndentGUI/indenters/uncrustify -l OC -q -c ~/Applications/UniversalIndentGUI/config/uncrustify_obj_c.cfg
@mikegehard
mikegehard / Setting longer HTTP timeout in capybara
Created April 15, 2011 19:20
Setting longer HTTP timeout in capybara
# We need this to fix the random timeout error that we were seeing in CI.
# May be related to: http://code.google.com/p/selenium/issues/detail?id=1439
Capybara.register_driver :selenium_with_long_timeout do |app|
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120
Capybara::Driver::Selenium.new(app, :browser => :firefox, :http_client => client)
end
Capybara.javascript_driver = :selenium_with_long_timeout
@jodell
jodell / bbr.txt
Created July 25, 2011 03:08
Breaking Bad Rhymes
Walter White's gotta push that blue
Til there ain't shit but red to do
That's no ice cream or a picnic
He's firecrackin' you're on the hitlist
Dexter's lost, to step to Albuquerque
I'm like the smoke monster, no way to merk me
What's your men so mad about Mr. Draper?
Yo got two Emmy's now, ain't that a caper?
Doctor's got his house, but now he's in mine
@chetan
chetan / yardoc_cheatsheet.md
Last active November 11, 2024 08:27
YARD cheatsheet
# Uncrustify 0.59
###########################################################################
# nah_xcode_uncrustify.rb default
# configuration
#
# config_version: 1.1.0
#
# Default uncrustify config to use for
# the nah_xcode_uncrustify.rb script
@jodell
jodell / gist:1878495
Created February 21, 2012 19:55
vim osx installation
# From http://brilliantcorners.org/2011/02/building-vim-on-osx-snow-leopard/
# fetch the source into a vim directory
hg clone https://vim.googlecode.com/hg/ vim
cd vim
# make sure you're up to date
hg pull
hg update
@apeckham
apeckham / debugging.txt
Created June 13, 2012 22:46
running librato's statsd chef recipe on ec2 with knife-solo, and sending data from Rails
vim /etc/statsd/config.js
add console backend:
"backends": [
"./backends/graphite",
"./backends/console",
"statsd-librato-backend"
],
restart statsd
@subdigital
subdigital / pns.m
Created January 5, 2013 21:59
What are your favorite Xcode Snippets? Add them in the comments.
// Property Nonatomic Strong
// Platform: All
// Completion Scopes: ClassInterfaceMethods
@property (nonatomic, strong) <# class_name #> *<# variable_name #>;
@apangeajwrubel
apangeajwrubel / gist:4953849
Created February 14, 2013 16:11
our unicorn config
rails_env = ENV['RAILS_ENV'] || 'production'
preload_app true
# number of workers - makes sure this matches memory config
worker_processes Integer(ENV['UNICORN_WORKERS'] || 2)
# restart workers if request takes too long
timeout Integer(ENV['UNICORN_TIMEOUT'] || 25)
# Only allow reasonable backlog of requests per worker