My Recent Pastes (31 and counting)
Pastes by robbyonrails (31 and counting)
Below are the 15 most recent pasties by robbyonrails.
February 22, 2008
2:45PM EDT
by robbyonrails
View all 17 lines
# add this to application_helper.rb def set_title(str="") unless str.blank? content_for :title do
November 13, 2007
10:43AM EDT
by robbyonrails
View all 75 lines
>> p.first_name => "Robby" >> p.first_name = 'Burt' => "Burt" >> p.save
November 08, 2007
12:28AM EDT
by robbyonrails
View all 12 lines
$ s3sh
>> Service.buckets
AWS::S3::RequestTimeTooSkewed: The difference between the request time and the current time is too large.
from /var/lib/gems/1.8/gems/aws-s3-0.4.0/bin/../lib/aws/s3/error.rb:38:in `raise'
from /var/lib/gems/1.8/gems/aws-s3-0.4.0/bin/../lib/aws/s3/base.rb:72:in `request'
October 09, 2007
12:20PM EDT
by robbyonrails
View all 189 lines
# # Inspired by technoweenie's zshrc... with some new tricks up it's sleeve by robbyonrails # # access these directory shortcuts # with ~rails, ~beast, etc
October 05, 2007
5:30PM EDT
by robbyonrails
View all 39 lines
# # Robby Russell, PLANET ARGON, LLC. <robby@planetargon.com> # class ActiveRecord::Base class << self # Class methods
September 21, 2007
12:44PM EDT
by robbyonrails
View all 229 lines
# Required for using Mongrel with Capistrano2 # gem install palmtree require 'palmtree/recipes/mongrel_cluster' require 'highline/import'
September 21, 2007
1:21AM EDT
by robbyonrails
View all 143 lines
require 'mongrel_cluster/recipes' ######################################################################## # Rails Boxcar - Capistrano Deployment Recipe # Configuration
September 20, 2007
5:11PM EDT
by robbyonrails
View all 22 lines
<div class="article_body_controls"> <p id="x_formatting_guide_action"><a href="#" onclick="unhide_element('x_limited_formatting_guide'); hide_element('x_formatting_guide_action'); return false;">Show formatting guide</a></p> <p class="article_body_preview_link"> <div id="hidden_content_preview" style="display: none;"></div><a href="#" onclick="new Ajax.Updater('hidden_content_preview', '/admin/articles/preview', {asynchronous:true, evalScripts:true, onComplete:function(request){RedBox.addHiddenContent('hidden_content_preview'); }, onLoading:function(request){RedBox.loading(); }, parameters:'article_body=' + $F('article_body')}); return false;">Preview</a>
September 19, 2007
2:33PM EDT
by robbyonrails
View all 13 lines
#!/bin/sh # switch to directory cd /home/rrussell/rails-trunk/trunk
August 20, 2007
8:51PM EDT
by robbyonrails
View all 18 lines
#!/usr/bin/env ruby # # This file was generated by RubyGems. # # The application 'twitter' is installed as part of a gem, and
August 20, 2007
8:44PM EDT
by robbyonrails
View all 18 lines
# my twitter commands...sans variables until it works define command { command_name host-notify-by-twitter command_line /usr/local/bin/twitter post "test"
July 24, 2007
11:40PM EDT
by robbyonrails
View all 14 lines
# does this make sense? irb(main):001:0> x = 1 => 1 irb(main):002:0> y = 2
July 20, 2007
6:56PM EDT
by robbyonrails
View all 20 lines
...wtf are the shell paths different?
# VIA CAPISTRANO
> cap shell < robby-russells-computer
June 23, 2007
12:19PM EDT
by robbyonrails
View all 23 lines
# .htpasswd robby:$apr1$JUKmU...$iwr34h0fh034hfh03hofho34hofhoi34. allison:$apr1$JUKmU...$iwr34h0fh034hfh03hofho34hofhoi34. gary:$apr1$JUKmU...$iwr34h0fh034hfh03hofho34hofhoi34. #....
