My Recent Pastes (547 and counting)

Pastes by rsl (547 and counting)

Pages: 1 2 4 6 37

Below are the 15 most recent pasties by rsl.

July 19, 2008
4:59PM EDT
by rsl

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.

July 19, 2008
4:59PM EDT
by rsl

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.

July 19, 2008
4:51PM EDT
by rsl

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.

July 19, 2008
4:31PM EDT
by rsl

rsl@ubuntu:~$ echo $PATH
/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
rsl@ubuntu:~$ which ruby
/opt/ruby-enterprise/bin/ruby
rsl@ubuntu:~$ sudo ruby foo.rb

July 19, 2008
4:05PM EDT
by rsl

rsl@ubuntu:~$ sudo env
TERM=xterm-color
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
MAIL=/var/mail/rsl
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

July 19, 2008
3:42PM EDT
by rsl

rsl@ubuntu:~$ sudo which rake
rsl@ubuntu:~$ 

July 19, 2008
3:36PM EDT
by rsl

rsl@ubuntu:~$ sudo -i
rsl@ubuntu:~$ 

July 18, 2008
3:22PM EDT
by rsl

export GEM_HOME="/Library/Ruby/Gems/1.8"
export GEM_PATH="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8"

July 18, 2008
10:31AM EDT
by rsl

    it "should redirect to flex if the current user's details have already been entered" do
      # @user.should_receive(:details_entered?).and_return(true)
      do_post
      response.should redirect_to(:action => :signup_details)
#      response.should redirect_to :controller => 'flex', :action => 'index'

July 14, 2008
11:15AM EDT
by rsl

class DryAsFuckController < ActionController::Base
  %w{index show new edit create update destroy}.each do |action|
    before_filter "before_#{action}", :only => action
  end
  

July 12, 2008
7:21PM EDT
by rsl

class UsersController < ApplicationController
  before_filter :select_tab
  
  # GET /users
  # GET /users.xml

July 10, 2008
6:14PM EDT
by rsl

require File.dirname(__FILE__) + '/../spec_helper'

describe ProductsHelper do
  describe "#product_referral_link_to" do
    it "should open link in new window when linking to a product for the current fund" do

July 10, 2008
6:04PM EDT
by rsl

berkelep: if i have controller/action/tag_id0/tag_id1 as my url is there a way to have it displayed as controller/action/tag_name0/tag_name1 but to still use the tag ids for the request?
berkelep: the reason i need to have ids in the url instead of tag name is because some of the tags have the same name, different parent tags
ariejan: berkelep: override to_param and make it like "id-name"
ariejan: "#{id}-#{name}". When calling to_i on it, it will convert to a valid interger ;-)
rsl: berkelep: check out acts_as_url in my stringex plugin as well and you don't need that silly "id-" part.

July 10, 2008
8:45AM EDT
by rsl

ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  error_class = "with_errors"
  if html_tag =~ /<label/
    error_message = instance.object.errors.on(instance.method_name)
    html_tag.sub! /<\/label>/, " <em class=\"#{error_class}\">#{error_message}</em></label>"

July 08, 2008
11:46AM EDT
by rsl

>> TEST = %w{test test test}.freeze
=> ["test", "test", "test"]
>> TEST.each{|x| x << "es"}
=> ["testes", "testes", "testes"]
>> TEST

Next page

Previous page