This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
~/Applications/UniversalIndentGUI/indenters/uncrustify -l OC -q -c ~/Applications/UniversalIndentGUI/config/uncrustify_obj_c.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
YARD CHEATSHEET http://yardoc.org
May 2020 - updated fork: https://gist.github.com/phansch/db18a595d2f5f1ef16646af72fe1fb0e
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim /etc/statsd/config.js | |
add console backend: | |
"backends": [ | |
"./backends/graphite", | |
"./backends/console", | |
"statsd-librato-backend" | |
], | |
restart statsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Property Nonatomic Strong | |
// Platform: All | |
// Completion Scopes: ClassInterfaceMethods | |
@property (nonatomic, strong) <# class_name #> *<# variable_name #>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer