Public Gists by spagalloco

Gravatar
Mon Nov 02 14:16:37 -0800 2009
1
2
3
# = Icebox : Caching for HTTParty
#
# Cache responses in HTTParty models [http://github.com/jnunemaker/httparty]
Gravatar
Mon Nov 02 11:14:25 -0800 2009
1
2
3
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
Gravatar
Wed Oct 28 10:35:54 -0700 2009
1
2
3
# Be sure to restart your web server when you modify this file.
 
# Specifies gem version of Rails to use when vendor/rails is not present
Gravatar
Tue Oct 13 17:41:10 -0700 2009

      
Gravatar
Wed Aug 26 12:19:40 -0700 2009
1
2
3
// replaced this
$(document).ready(function() {
  if ($.fn.corner) $('.corner').corner()
Gravatar
Wed Aug 05 19:24:00 -0700 2009
1
2
3
Factory.define :application do |factory|
  factory.attachment(:sample, "public/samples/sample.doc", "application/msword")
end
Gravatar
Sat Aug 01 20:25:52 -0700 2009
1
2
3
# Overload Clearance's `deny_access` methods to allow authentication with HTTP-Auth for eg. API access
# Modeled after technoweenie's restful_authentication
# http://github.com/technoweenie/restful-authentication/blob/7235d9150e8beb80a819923a4c871ef4069c6759/generators/authenticated/templates/authenticated_system.rb#L74-76
Gravatar
Sat Aug 01 20:24:50 -0700 2009
1
2
3
# Load config/paperclip.yml settings
if paperclip_cfg = YAML.load_file("#{Rails.root}/config/paperclip.yml")[Rails.env]
  paperclip_cfg.symbolize_keys!
Gravatar
Wed Jul 29 19:49:36 -0700 2009
1
2
3
/*
 * a smart poller for jquery.
 * (by github)
Gravatar
Fri Jul 24 06:55:47 -0700 2009
1
2
3
# If you really want safety from Twitter blowing up, this will get you
# to 18,446,744,073,709,551,615 tweets. (Remember, mediumint is smaller
# than int.) (http://dev.mysql.com/doc/refman/4.1/en/numeric-types.html)
Gravatar
Wed May 13 20:15:47 -0700 2009
1
2
3
# by Giles Bowkett
# http://gilesbowkett.blogspot.com/2009/04/unshiftfiledirnamefile.html
 
Gravatar
Wed Apr 22 11:48:47 -0700 2009
1
2
3
#!/bin/bash
 
# dropbox-set-app-config-symlinks.sh
Gravatar
Tue Mar 24 20:38:47 -0700 2009
1
2
3
RELEASE_OUTPUT_PATH = File.expand_path("~/Projects/releases/Squeemote")
TARGET_NAME = "Squeemote"
CONFIGURATION = ENV['CONFIGURATION'] || "Distribution"
Gravatar
Wed Feb 25 11:03:43 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
command = '/usr/bin/passenger-memory-stats'
Gravatar
Wed Dec 03 12:04:03 -0800 2008
1
2
3
#!/usr/bin/env ruby
#
# fetch hosts from amazon EC2 meta-data
Gravatar
Mon Dec 01 12:52:39 -0800 2008
1
2
3
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.