Public Gists by retr0h

Gravatar
Wed Sep 02 11:34:28 -0700 2009
1
2
3
::AppConfig = ApplicationConfiguration.new("main.yml", "main_local.yml")
AppConfig.use_environment!(Rails.env)
 
Gravatar
Tue Sep 01 23:38:35 -0700 2009
1
2
3
require 'rubygems'
require 'ohai'
 
Gravatar
Wed Jul 15 22:04:21 -0700 2009
1
2
3
### Add the following to: config/locales/en.yml.
 
### Override errors on a single model (Email::Generic).
gist: 132506 Ubuntu Chef Bootstrapper
Gravatar
Fri Jun 19 01:36:00 -0700 2009
1
2
3
#!/bin/sh
 
trap "exit 2" 1 2 3 13 15
Gravatar
Wed Jun 17 22:00:27 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Wed Apr 22 13:27:45 -0700 2009
1
2
3
get '/:stylesheet.css' do
  sass params[:stylesheet].to_sym
end
Gravatar
Sun Apr 19 18:14:36 -0700 2009
1
2
3
CONTENT_TYPES = {:html => 'text/html', :css => 'text/css', :js => 'application/javascript'}
 
before do
Gravatar
Sun Apr 19 17:27:43 -0700 2009
1
2
3
##
# Rack configuration for use with Phusion Passenger.
#
Gravatar
Mon Mar 16 11:23:46 -0700 2009
1
2
3
namespace :spec do
  desc "Report uncovered view templates."
  task :missing_view_templates => :environment do
Gravatar
Sat Feb 28 14:55:18 -0800 2009
1
2
3
### lib/tasks/app.rake
 
begin
gist: 68809 ActionMailer Timeouts
Gravatar
Sun Feb 22 21:03:10 -0800 2009
1
2
3
### lib/ruby_ext.rb
Net::SMTP.class_eval do
  def initialize_with_timeouts(*args)
Gravatar
Tue Feb 17 13:47:06 -0800 2009
1
2
3
# Module for re-running commands from the history in irb and its ilk (script/console)
# Usage:
# history => view the history
Gravatar
Fri Dec 05 10:00:30 -0800 2008
1
2
3
# == WHAT
# Simple script for growl notifications in irssi
#
Gravatar
Sat Sep 06 15:35:10 -0700 2008
1
2
3
require 'singleton'
begin
  require 'daemon_controller'
Gravatar
Sat Sep 06 15:33:20 -0700 2008
1
2
3
##
# Start daemons.
config.after_initialize do