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
require 'test/unit' | |
require 'varnish/test' | |
require 'threading' | |
# initializer | |
# | |
q_in = Threading::Queue.new | |
q_out = Threading::Queue.new | |
thread = Thread.new do |q| |
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
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
# Set by set_env anyway | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
# 4 workers in testing and 1 master | |
worker_processes (rails_env == 'production' ? 4 : 1) | |
# Load rails+github.git into the master before forking workers | |
# for super-fast worker spawn times |
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
function! SelectComment() | |
let curindent = indent(".") | |
let commstr = &commentstring[0] | |
" bail if not a comment | |
if getline(".")[curindent] != commstr | |
return | |
endif | |
" find the first commented line |