Skip to content

Instantly share code, notes, and snippets.

if ["staging", "production"].include?(RAILS_ENV)
Workling::Remote.dispatcher = Workling::Remote::Runners::StarlingRunner.new
else
Workling::Remote.dispatcher = Workling::Remote::Runners::NotRemoteRunner.new
end
<div class="yui-gc">
<div class="yui-u first">
Some content here that should be 66%
<div class="yui-g">
<div class="yui-u first>
Should be 50% of parent not 33%
</div>
<div class="yui-u first>
Should be 50% of parent not 33%
</div>
/* Grid css used to look like this */
#yui-main,
.yui-g .yui-u .yui-g {
width: 100%;
}
/* I made this change to resolve the issue */
#yui-main,
.yui-g .yui-u .yui-g,
.yui-gc .yui-u .yui-g {
----------- General information -----------
max = 40
count = 40
active = 40
inactive = 0
Waiting on global queue: 0
----------- Domains -----------
/var/apps/outright_app/current:
PID: 3786 Sessions: 2 Processed: 24 Uptime: 32m 15s
db.open(function(p_db) {
var agent_smith = new AgentSmith();
agent_smith.init(db, function() {
http.createServer(function(req, res) {
try {
agent_smith.serveRequest(req, res);
} catch(e) {
agent_smith.handleError(req, res, e);
}
}).listen(config.listen_port);
// where to open connection to db now?
module.exports = http.createServer(function(req, res) {
try {
agent_smith.serveRequest(req, res);
} catch(e) {
agent_smith.handleError(req, res, e);
}
});
filter({:name => "company_importer_created", :name => "manual_txn_created"}.sql_or).
filter("day_num >= ?", day_num).
filter("year_num >= ?", year_num).
filter(:engagement_type_str => "Initial").
ben:outright_chef bcurren$ knife cookbook download nginx
WARN: HTTP Request Returned 404 Not Found: Cannot find a cookbook named nginx
ERROR: Cannot find a cookbook named nginx
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_download.rb:102:in `available_versions': undefined method `map' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_download.rb:91:in `determine_version'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife/cookbook_download.rb:56:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/knife.rb:127:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/lib/chef/application/knife.rb:118:in `run'
from /Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/knife:25
from /usr/bin/knife:19:in `load'
root@domU-12-31-39-0B-15-84:/usr/local/lib/ruby/gems/1.8/gems/chef-0.9.8/lib/chef# chef-server --log-level debug -N -p 4000 -e production
Merb root at: /usr/local/lib/ruby/gems/1.8/gems/chef-server-api-0.9.8
~ No Gemfile found! If you're generating new app with merb-gen this is fine, otherwise run: bundle init to create Gemfile
Loading init file from ./config/init.rb
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/_all_dbs
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/_all_dbs
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/nodes
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/_all_dbs
[Thu, 12 Aug 2010 18:46:27 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/roles
test
upstream app_server {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
server unix:<%= @code_root %>/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {