Public Gists by briandemant

Gravatar
Mon Jun 15 13:52:19 -0700 2009
1
2
3
class ActiveRecord::Base
  def self.find_values opts
    sql = self.send(:construct_finder_sql, opts)
Gravatar
Mon Jun 15 13:52:11 -0700 2009
1
2
3
class ActiveRecord::Base
 
  class << self
gist: 118672 sql for selecting worst ind...
Gravatar
Wed May 27 07:40:58 -0700 2009
1
2
3
/*
SQL script to grab the worst performing indexes
in the whole server
Gravatar
Mon May 11 01:49:46 -0700 2009
1
2
3
#!/usr/bin/ruby
require 'rubygems'
require 'yaml'
Gravatar
Sun May 10 12:42:15 -0700 2009
1
2
3
#!/usr/bin/ruby
# takes a dynamic site and makes is "static"
# cp_radiant.rb
Gravatar
Sat May 09 12:17:27 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
gist: 107765 video encoding scripts
Gravatar
Wed May 06 14:50:59 -0700 2009
1
2
3
#! /bin/bash
#
# this doesn't get ALL frames, it just grabs one!
Gravatar
Wed Apr 22 01:56:17 -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
Tue Apr 21 13:38:52 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.
Gravatar
Mon Apr 13 13:28:28 -0700 2009
1
2
3
#!/bin/sh
 
# install with:
Gravatar
Mon Apr 13 13:18:49 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
def running?(pid)
Gravatar
Mon Apr 13 12:48:12 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
command = '/usr/bin/passenger-memory-stats'
Gravatar
Mon Apr 13 12:42:28 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# [passenger_processes]
Gravatar
Mon Apr 13 12:39:30 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Be sure to configure this node in the plugin configuration
Gravatar
Wed Feb 11 13:27:39 -0800 2009
1
2
3
# Portable monkey patch for reloading constants before hitting metal
# applications. More details in the introduction article at:
#
Gravatar
Fri Dec 26 05:16:00 -0800 2008
1
2
3
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.