This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| check process resque-web with pidfile /var/www/app/shared/resque_web/resque_web.pid | |
| group resque | |
| start program = "/bin/env RAILS_ENV=production /var/www/app/current/app/workers/run_resque_web.sh start" as uid deploy gid deploy | |
| stop program = "/bin/env RAILS_ENV=production /var/www/app/current/app/workers/run_resque_web.sh stop" as uid deploy and gid deploy | |
| if failed host localhost port 5678 with timeout 10 seconds then restart | |
| if 3 restarts within 5 cycles then timeout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'usb' | |
| require 'betabrite' | |
| ### | |
| # Get a betabrite sign: | |
| # | |
| # http://www.betabrite.com/ | |
| # http://www.amazon.com/Brite-Prism-Moving-Message-Display/dp/B000MQAI72 | |
| # | |
| # Install gems: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
| # - a browser with WebSocket support | |
| # | |
| # Usage: | |
| # ruby redis_pubsub_demo.rb | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-- | |
| # Copyright (C)2008 Ilya Grigorik | |
| # You can redistribute this under the terms of the Ruby license | |
| # | |
| # Modifications by Vinicius B. Fuentes | |
| #++ | |
| require 'rubygems' | |
| require 'optparse' | |
| require 'ruport' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def self.setup_rails_for_action_cache_options | |
| ::ActionController::Caching::Actions::ActionCacheFilter.class_eval do | |
| def initialize(*actions, &block) | |
| if [].respond_to?(:extract_options!) | |
| @options = actions.extract_options! | |
| @actions = actions.inject(@options.except(:cache_path)) do |hsh, action| | |
| action.is_a?(Hash) ? hsh.merge(action) : hsh.merge(action => { :ttl => nil }) | |
| end | |
| @options.slice!(:cache_path) | |
| else |
NewerOlder