My Recent Pastes (8 and counting)

Pastes by therealadam (8 and counting)

Below are the 8 most recent pasties by therealadam.

November 10, 2007
6:09PM EDT
by therealadam

## xpath.rb

# require 'ambition/adapters/xpath/select'

require 'xml/libxml'

October 08, 2007
4:32PM EDT
by therealadam

$ fakeroot debian/rules updateconfigs
dh_testdir
Processing i386 (i386) ... 
Running silentoldconfig for config.386 ... 
make[1]: Entering directory `/home/adam/kernel-fu/linux-source-2.6.20-2.6.20'

October 05, 2007
1:34PM EDT
by therealadam

# 
#  acmebrain-cluster.god
#  monitor
#  
#  Created by Adam Keys on 2007-10-01.

October 03, 2007
6:45PM EDT
by therealadam

I, [2007-10-03 17:20:59 #24519]  INFO -- : acmebrain-mongrel-8002 [trigger] process is running (ProcessRunning)
I, [2007-10-03 17:20:59 #24519]  INFO -- : acmebrain-mongrel-8002 move 'init' to 'up'
I, [2007-10-03 17:20:59 #24519]  INFO -- : acmebrain-mongrel-8002 Event registration failed, moving back to previous state
I, [2007-10-03 17:20:59 #24519]  INFO -- : acmebrain-mongrel-8002 move 'init' to 'init'

March 06, 2007
1:01PM EDT
by therealadam

## The models

class Collection < ActiveRecord::Base
  has_many :items, :through => :collected_items
  belongs_to :user

March 03, 2007
11:01PM EDT
by therealadam

## Capfile

desc "Uploads a new Nginx configuration file and reloads the config"
task :update_nginx_config do
  # run "cp #{current_path}/config/nginx/#{app}.conf #{nginx_conf}"

January 25, 2007
6:14PM EDT
by therealadam

  def set_body(str, type='application/xml')
    @request.env['RAW_POST_DATA'] = str
    @request.env['CONTENT_TYPE'] = type
  end

August 23, 2006
7:39PM EDT
by therealadam

# Why does Ruby hate me?

assert_equal {'search_text' => search_text}.to_json, @response.body