Skip to content

Instantly share code, notes, and snippets.

View insignia's full-sized avatar

INSIGNIA insignia

View GitHub Profile
# Load config/paperclip.yml settings
if paperclip_cfg = YAML.load_file("#{Rails.root}/config/paperclip.yml")[Rails.env]
paperclip_cfg.symbolize_keys!
command_path = paperclip_cfg.delete(:command_path)
# Replace Attachment defaults with configuration ones
Paperclip::Attachment.default_options.merge!(paperclip_cfg)
# Adjust ImageMagick path to work with Passenger
Paperclip.options[:command_path] = command_path
@insignia
insignia / gist:23312
Created November 9, 2008 18:35 — forked from luislavena/gist:19707
undefined
package 'openssl' do
type 'make'
default 'source'
version 'source' do
download 'http://...'
# hooks
before :download { }
after :download { }