Skip to content

Instantly share code, notes, and snippets.

View Sylvain's full-sized avatar

Sylvain Gautier Sylvain

View GitHub Profile
@Sylvain
Sylvain / sunspot_cell.rb
Created February 7, 2012 20:26 — forked from chebyte/sunspot_cell.rb
index file contents like pdf, html, doc, etc.. using solr, sunspot gem, paperclip, s3 and Rails 3
= Sunspot Cell
This plugin adds Cell support (for indexing rich documents like pdf, docs, html, etc...) to Sunspot (developed against Sunspot 1.2.1).
Support Paperclip and S3 Storage
The code is based on the patch included here:
http://outoftime.lighthouseapp.com/projects/20339/tickets/98-solr-cell
== Requirements
@Sylvain
Sylvain / heroku_autoscalling.rb
Created November 26, 2011 14:14 — forked from mataki/heroku_autoscalling.rb
Auto scalling dynos on heroku using NewRelic
=begin
Need to install gems heroku, newrelic_rpm
$ gem install heroku newrelic_rpm
Set your apps setting
app_name : heroku's app_name of auto scaling
license_key : NewRelic api key. You can get heroku's NewRelic admin console. "App setting" and "Agent configuration"
execute with cron every minutes
$ ruby ./adjust_dynos_with_newrelic.rb