Public Gists by mguterl

Gravatar
Wed Nov 18 11:34:23 -0800 2009
1
2
3
# unicorn_rails -c /home/deploy/public_html/rm/current/config/unicorn.rb -E production -D
working_directory = '/home/deploy/public_html/rm/current'
rails_env = ENV['RAILS_ENV'] || 'production'
Gravatar
Wed Nov 18 07:33:31 -0800 2009
1
2
3
#!/bin/sh
set -u
set -e
Gravatar
Wed Nov 18 07:28:03 -0800 2009
1
2
3
#!/bin/sh
set -u
set -e
Gravatar
Fri Nov 13 09:45:42 -0800 2009
1
  Either the vistor clicked on the 'Stop' button in the web browser, or the visitor's connection has stalled and couldn't receive the data that Apache is sending to it. As a result, you will probably see a 'Broken Pipe' error in this log file. Please ignore it, this is normal. You might also want to
Gravatar
Sun Oct 04 14:10:14 -0700 2009
1
2
3
/home/michaelguterl/.rip/active/lib/haml/version.rb:30:in `read': No such file or directory - /home/michaelguterl/.rip/active/lib/haml/../../VERSION (Errno::ENOENT)
from /home/michaelguterl/.rip/active/lib/haml/version.rb:30:in `version'
from /home/michaelguterl/.rip/active/lib/haml.rb:20
Gravatar
Sun Oct 04 13:51:09 -0700 2009
1
2
3
michaelguterl@diminishing:~/www/rm-integrity$ rip env use integrity && rip list
rip: plugin not loaded (/usr/local/lib/ruby/site_ruby/1.8/rip/commands/hooks.rb)
-> undefined method `use' for module `Rip::Commands'
Gravatar
Sun Oct 04 13:47:23 -0700 2009
1
2
3
michaelguterl@diminishing:~/www/rm-integrity$ cat init.rb
$LOAD_PATH.unshift(File.expand_path("/home/michaelguterl/.rip/integrity/lib"))
require "integrity"
Gravatar
Sun Oct 04 13:39:36 -0700 2009
1
2
3
michaelguterl@diminishing:~$ cat $RIPDIR/integrity/lib/bob.rb
require "fileutils"
require "pathname"
Gravatar
Sun Oct 04 13:29:44 -0700 2009
1
2
3
michaelguterl@diminishing:~/www/rm-integrity$ rip list
rip: plugin not loaded (/usr/local/lib/ruby/site_ruby/1.8/rip/commands/hooks.rb)
-> undefined method `use' for module `Rip::Commands'
Gravatar
Thu Sep 24 12:55:34 -0700 2009
1
2
3
class Cb2rm::CareerBuilder
  require 'defaultDriver'
  
Gravatar
Wed Sep 02 13:37:24 -0700 2009
1
2
3
class ResetPasswordController < ApplicationController
  skip_before_filter :login_required
  
Gravatar
Sun Aug 02 19:34:37 -0700 2009
1
2
3
class Database::Report
  def self.to_s
    puts
Gravatar
Tue Jun 16 16:31:05 -0700 2009
1
2
3
wr () { ruby script/server webrick ${1:+--port $1} ; }
mr () { if [ -e log/mongrel.pid ]; then
              echo do not wait for 'mongrel_rails restart' >/dev/null
Gravatar
Tue Jun 16 16:12:37 -0700 2009
1
2
3
wr () { ruby script/server webrick ${1:+--port $1} ; }
mr () { if [ -e log/mongrel.pid ]; then
              echo do not wait for 'mongrel_rails restart' >/dev/null
Gravatar
Tue Jun 16 15:43:11 -0700 2009
1
2
3
# This is for voting for the budgetsketch project on http://cinciinnovates.com
# You can vote daily. This stupid simple mechanize script will simply submit
# your vote. You still have to confirm the vote from your email inbox. I
Gravatar
Tue Jun 02 05:28:08 -0700 2009
1
2
3
# http://www.jamesbritt.com/2007/12/18/sending-mail-through-gmail-with-ruby-s-net-smtp
# http://d.hatena.ne.jp/zorio/20060416
 
Gravatar
Sun May 31 09:20:53 -0700 2009
1
2
3
property numFFWindows : 0
property FFPos : {}
property FFSize : {}
Gravatar
Mon May 25 08:10:44 -0700 2009
1
2
3
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
Gravatar
Sun Apr 19 11:56:27 -0700 2009
1
2
3
# credits
# http://github.com/hartcode/serverjuice/
# http://blog.fiveruns.com/2008/3/3/compiling-ruby-rubygems-and-rails-on-ubuntu
Gravatar
Wed Mar 11 15:37:34 -0700 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT