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
# | |
# 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| | |
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
DESCRIPTION: | |
An 'under the hood' look at Engineyard's cloud infrastructure from a user with no affiliation with the company. A 'hands-on coding' presentation with no powerpoint and lots of 'how to do it'. | |
See how EY's cloud works, how to configure it, how to customize the gem environment and deploy process, how to troubleshoot problems, and how to customize your environment using Chef. | |
ABSTRACT: | |
This session is designed for individuals with no experience with Engineyard or Cloud Deployment in general up to those with extnsive experience with competing infrastructures who are interested in the details of how Engineyard is different. |
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
curl -X POST http://knology:[email protected]:3000/cm/clicks -i -H "Content-Type: text/xml" -d @- <<XML | |
<click_report cm_name="boston" record_count="1"> | |
<transaction number="1"> | |
<device_uid>aabbccddeeii</device_uid> | |
<device_type>dct2000</device_type> | |
<tid>1274724844624146</tid> | |
<stb_token_start>20100321140606</stb_token_start> | |
<stb_token_click>20100321140606</stb_token_click> | |
<timeline_click_value>20100321140606</timeline_click_value> | |
<channel>102</channel> |
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
When I share the first link using the following XML: | |
""" | |
<?xml version="1.0" encoding="UTF-8"?> | |
<link> | |
<email>[email protected]</email> | |
<password>password</password> | |
<share_emails> | |
<share_email>IMABADEMAILADDRESS!</share_email> | |
<share_email>[email protected]</share_email> | |
<share_email>[email protected]</share_email> |
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/bash | |
# This script fills in some of the gaps on an Engine Yard cluster deploy. | |
# -Dana | |
# I could probably use ARGV for this, but whatever. | |
THIS_ENV=staging | |
# move into our home directory | |
cd |
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
SELECT leads.id, | |
(SELECT COUNT(*) FROM searches WHERE lead_id = leads.id) AS searches_count, | |
(SELECT COUNT(*) FROM rental_searches WHERE lead_id = leads.id) AS rental_searches_count, | |
COALESCE((searches_count + rental_searches_count), 0) as total | |
FROM leads | |
WHERE leads.id = 35 | |
# Unknown column 'searches_count' in 'field list' |
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
I, Jason Huggins, the author of the work "CoffeeScript Web Server" (2010), irrevocably renounce | |
all current and future legal rights to the work in any medium whatsoever. | |
I stand behind the merit of the work, but disclaim all liability for it under law. | |
I encourage you, the audience, to share, copy, distribute, perform, remix, mash up, interpret, | |
excerpt, translate, and otherwise enjoy and use the work as you will. | |
I request that you acknowledge my authorship. |
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
a = FactoryGirl.build :practitioner_activity, start_hour: 1, end_hour: 1, start_minute: 1 | |
ArgumentError: wrong number of arguments (1 for 0) | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:267:in `create' | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/factory_girl-3.0.0/lib/factory_girl/evaluator.rb:53:in `method_missing' | |
from /Users/dmcadmin/work/dmWorkflow/spec/factories.rb:39:in `block (3 levels) in <top (required)>' | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/factory_girl-3.0.0/lib/factory_girl/attribute/dynamic.rb:13:in `instance_exec' | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/factory_girl-3.0.0/lib/factory_girl/attribute/dynamic.rb:13:in `block in to_proc' | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/factory_girl-3.0.0/lib/factory_girl/evaluator_class_definer.rb:29:in `instance_exec' | |
from /Users/dmcadmin/.rvm/gems/ruby-1.9.2-p290@dmworkflow/gems/factory_girl |
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
shared_examples_for "Firefox browser" do | |
it "should return 'Firefox' as its browser" do | |
@useragent.browser.should == "Firefox" | |
end | |
it "should return :strong as its security" do | |
@useragent.security.should == :strong | |
end |
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
source 'http://rubygems.org' | |
gem 'rails', '3.2.2' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'pg' | |
gem 'json' |
OlderNewer