This code is no longer needed. Heroku has provided syslog drains for all users for free.
For better Heroku logging with Papertrail, check this out:
http://help.papertrailapp.com/kb/hosting-services/heroku#standalone
| #!/usr/bin/env sh | |
| # Title: Ruby development environment for OS X (Lion) | |
| # Author: Rogelio J. Samour | |
| # Warning: | |
| # While it is unlikely any code below might damage your system, | |
| # it’s always a good idea to back up everything that matters to you | |
| # before running this script! Just in case. I am not responsible for | |
| # anything that may result from running this script. Proceed at | |
| # your own risk. |
This code is no longer needed. Heroku has provided syslog drains for all users for free.
For better Heroku logging with Papertrail, check this out:
http://help.papertrailapp.com/kb/hosting-services/heroku#standalone
| # This is just an hint for a simple Redis caching "framework" using Sinatra | |
| # A friend of mine asked for something like that, after checking the first two gems realized there was | |
| # a lot of useless complexity (IMHO). That's the result. | |
| # | |
| # The use_cache parameter is useful if you want to cache only if the user is authenticated or | |
| # something like that, so you can do cache_url(ttl,User.logged_in?, ...) | |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'redis' |
| // browser history with HTML5 support | |
| (function() { | |
| var loc = window.location, | |
| pushSupport = !!(window.history && window.history.pushState), | |
| hashStrip = /^#*/; | |
| // add HTML5 support to Backbone.history, drop the old IE stuff | |
| _.extend(Backbone.History.prototype, { | |
| getFragment : function(l) { |
| #!/usr/bin/env ruby | |
| require 'ftools' | |
| require 'fileutils' | |
| require 'rubygems' | |
| require 'RMagick' | |
| include Magick | |
| require 'open3' | |
| def merge( files = [] ) |