Skip to content

Instantly share code, notes, and snippets.

View ezmobius's full-sized avatar

Ezra Zygmuntowicz ezmobius

View GitHub Profile
error_page 405 =200 @405;
location @405 {
root /data/budlight/current/public/;
if (-f $request_filename) {
break;
}
}
#
# Cookbook Name:: delayed_job
# Recipe:: default
#
if ['solo', 'app', 'app_master'].include?(node[:instance_role])
# be sure to replace "app_name" with the name of your application.
run_for_app("maloca") do |app_name, data|
def on_time_value
attendances.inject(0) do |sum, attendance|
sum += attendance.late? ? 0 : 5
end
end
@ezmobius
ezmobius / cli.rb
Created March 1, 2009 23:54 — forked from fujin/cli.rb
def run
AMQP.logging = true
EM.run do
agent = Nanite::Agent.start(@config)
agent.register(Opscode::OhaiActor.new, 'state')
agent.register(Opscode::ChefActor.new, 'control')
agent.send :advertise_services
end
end