Skip to content

Instantly share code, notes, and snippets.

View JangoSteve's full-sized avatar

Steve Schwartz JangoSteve

View GitHub Profile
20:43 :: ~ $ wget http://cdn3.ratemystudentrental.com/javascripts/all-rmsr.js?1273741914
--2010-05-13 20:43:39--  http://cdn3.ratemystudentrental.com/javascripts/all-rmsr.js?1273741914
Resolving cdn3.ratemystudentrental.com... 216.137.63.146, 216.137.63.175, 216.137.63.203, ...
Connecting to cdn3.ratemystudentrental.com|216.137.63.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 293014 (286K) [application/x-javascript]
Saving to: `all-rmsr.js?1273741914'
100%[======================================>] 293,014      312K/s   in 0.9s    
#!/usr/bin/env ruby
# adapted for RMSR from http://gist.github.com/41713
# run every couple minutes via cron
# and output results to script_output.log
# sudo crontab -e
# then add the following:
# */2 * * * * ruby /bin/passenger_monitor_cron 2>&1 >> /var/log/script_output.log
command = '/usr/bin/passenger-memory-stats'
module PrototipHelper
# Created by Steve Schwartz [1] (for Alfa Jango, LLC [2]) for the Scriptaculous Prototip tooltip library by Nick Stakenburg [3].
#
# [1] http://github.com/jangosteve
# [2] http://www.alfajango.com
# [3] http://www.nickstakenburg.com/projects/prototip2/
# Using this in your views:
# <%= prototip( "target_id_to_attach_prototip",
module LightviewHelper
# Modified by Steve Schwartz [1] (for Alfa Jango, LLC [2]) from Ric Roberts's original script [3]:
# CHANGELOG:
# -Added link_to_reg_lightview method to use the gracefully-degrading version of Lightview (creates a regular link that has a javascript method onclick)
#
# [1] http://github.com/jangosteve
# [2] http://www.alfajango.com
# [3] http://ricroberts.com/articles/lightview-for-modal-dialogs-on-rails
# Created by Steve Schwartz [1] (for Alfa Jango [2]) with the help of David Leal [3]
# [1] http://github.com/jangosteve
# [2] http://www.alfajango.com
# [3] http://github.com/david
# The latest version of this script may be found at http://gist.github.com/371710
require 'benchmark'
class OptionsHashBenchmarker
# Created by Steve Schwartz [1] (for Alfa Jango, LLC [2]) for the Twilk API [3]
# [1] http://github.com/jangosteve
# [2] http://www.alfajango.com
# [3] http://twilk.com
# The latest version of this script may be found at http://gist.github.com/371710
require 'net/http'
require 'rubygems'
require 'json'