My Recent Pastes (49 and counting)
Pastes by octopod (49 and counting)
Below are the 15 most recent pasties by octopod.
September 01, 2006
1:00PM EDT
by octopod
View all 53 lines
User "www-data" Group "www-data" LogLevel 1 Alive 30
August 22, 2006
5:18PM EDT
by octopod
View all 6 lines
datetime = object.send(field[:column]) || Time.now content_tag(:span, select_day(datetime, :prefix => "#{name}[#{field[:column]}(3i)]", :discard_type => true), :class => 'day') + content_tag(:span, select_month(datetime, :use_short_month => true, :prefix => "#{name}[#{field[:column]}(2i)]", :discard_type => true), :class => 'month') + content_tag(:span, select_year(datetime, :start_year => Time.now.year, :end_year => (Time.now + 2.years).year, :prefix => "#{name}[#{field[:column]}(1i)]", :discard_type => true), :class => 'year') + content_tag(:span, select_hour(datetime, :prefix => "#{name}[#{field[:column]}(4i)]", :discard_type => true), :class => 'hour') +
August 19, 2006
11:05AM EDT
by octopod
View all 27 lines
module MimeHelper def self.is_image?(filename) check_content_type filename, ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'] end
August 19, 2006
10:40AM EDT
by octopod
View all 40 lines
## the view partial <div class='lhs'> <%= image_tag avatar_filename(@user), :onclick => "new Effect.Appear('upload_avatar_form', {queue: 'end', duration: 0.5});"%>
August 16, 2006
6:10PM EDT
by octopod
View all 101 lines
## File 1: Capistrano extension lib Capistrano.configuration(:must_exist).load do desc "Create the nfs share" task :setup_nfs_share do
August 13, 2006
8:05PM EDT
by octopod
View all 45 lines
# lightty running on 8080 with a virtual host for preview.example.com pointing to the rails root # mongrels on 9000 - 9002 User "www-data" Group "www-data"
August 11, 2006
7:03AM EDT
by octopod
View all 22 lines
# Pass in the table name and an array containing hashes of property data, the keys should map to the field names in the table def self.do_insert(table_name, data) # Do our own quoting / insertion as it's *a lot* faster values = [] data.each do |row|
July 20, 2006
10:52PM EDT
by octopod
View all 12 lines
== /etc/apt/sources.list == deb ftp://ftp.ie.debian.org/debian/ sarge main deb-src ftp://ftp.ie.debian.org/debian/ sarge main deb http://security.debian.org/ sarge/updates main
July 18, 2006
4:36PM EDT
by octopod
View all 23 lines
sudo iptables --list Password: Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere
July 18, 2006
1:04PM EDT
by octopod
sudo apt-get build-dep librmagick-ruby1.8 Password: Reading Package Lists... Done Building Dependency Tree... Done E: Build-Depends dependency for librmagick-ruby cannot be satisfied because no available versions of package debhelper can satisfy version requirements
July 18, 2006
5:20AM EDT
by octopod
drwxrwxr-x 120 root admin 4080 Jul 14 11:46 /Applications drwxr-xr-x 2 chris wheel 68 Jul 10 09:32 /Applications/TextMate.old.app
July 11, 2006
2:07PM EDT
by octopod
View all 33 lines
== Curl curl --digest --user user:pass -v "http://trac.devmodo.com/trac/timeline" * About to connect() to trac.devmodo.com port 80 * Trying x.x.x.x... connected
July 03, 2006
8:09PM EDT
by octopod
View all 9 lines
<% used_entry_dates = {} %> <% @entries.each do |entry| %> <% if used_entry_dates[entry.txn.effective_date] entry_date = "" else
July 03, 2006
7:45PM EDT
by octopod
View all 29 lines
loaded = catch :loaded_stuff do begin require 'rake' rescue LoadError begin
July 03, 2006
7:24PM EDT
by octopod
View all 6 lines
begin require 'foo' rescue LoadError require 'rubygems' require_gem 'foo'
