Skip to content

Instantly share code, notes, and snippets.

View benarent's full-sized avatar
💼

Ben Arent benarent

💼
View GitHub Profile
hello
@benarent
benarent / gist:2939282
Created June 16, 2012 00:02
Broken PHP notifer
<?xml version="1.0" encoding="UTF-8"?>
<notice version="2.0">
<api-key>DELETED</api-key>
<notifier>
<name>php-hoptoad-notifier</name>
<version>0.2.0</version>
<url>http://github.com/rich/php-hoptoad-notifier</url>
</notifier>
<error>
<class>2</class>
@benarent
benarent / gist:2946061
Created June 17, 2012 23:34
redis-rails
gem 'redis-rails'
gem 'redis-rack-cache' # optional
@benarent
benarent / Cache Setup
Created June 17, 2012 23:35
Setting up Redis Cache
## Cache Store
# config/environments/production.rb
config.cache_store = :redis_store
## Session Store
# config/initializers/session_store.rb
MyApplication::Application.config.session_store :redis_store,
servers: ['redis://:secret@192.168.6.23:6379/0', 'redis://:secret@192.168.6.99:6379/1']
## HTTP Cache
@benarent
benarent / Cache Setup
Created June 17, 2012 23:36
Setting up Redis Cache
## Cache Store
# config/environments/production.rb
config.cache_store = :redis_store
## Session Store
# config/initializers/session_store.rb
MyApplication::Application.config.session_store :redis_store,
servers: ['redis://:secret@192.168.6.23:6379/0', 'redis://:secret@192.168.6.99:6379/1']
## HTTP Cache
@benarent
benarent / gist:2946067
Created June 17, 2012 23:37
Setting up Redis Cache
## Cache Store
# config/environments/production.rb
config.cache_store = :redis_store
## Session Store
# config/initializers/session_store.rb
MyApplication::Application.config.session_store :redis_store,
servers: ['redis://:secret@192.168.6.23:6379/0', 'redis://:secret@192.168.6.99:6379/1']
## HTTP Cache
@benarent
benarent / gist:2958123
Created June 20, 2012 04:24
Dear Hoptoad User
Dear Hoptoad add-on User,
The Hoptoad add-on has been relaunched as Airbrake in the Heroku
Add-on catalog. They offers six plan levels; please see
http://addons.heroku.com/airbrake for plan details.
The Hoptoad add-on has been depreciated. Your current installation on
app(s), [app], will continue to be supported for 3 months. We
recommend you to switch over to the Airbrake add-on at your
convenience. On March 30th, 2012, the Hoptoad add-on will be
@benarent
benarent / gist:3214164
Created July 31, 2012 06:02
Require Resque
require 'resque/failure/airbrake'
@benarent
benarent / gist:3214166
Created July 31, 2012 06:03
Require Resque2
Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake]
Resque::Failure.backend = Resque::Failure::Multiple
@benarent
benarent / gist:3214167
Created July 31, 2012 06:04
Resque Config
Airbrake.configure do |config|
config.api_key = 'your_key_here'
end