Skip to content

Instantly share code, notes, and snippets.

View aurels's full-sized avatar

Aurélien Malisart aurels

View GitHub Profile
@jaymecd
jaymecd / gem_install_rmagick.md
Last active March 26, 2018 14:11
gem install rmagick -v '2.13.2' (Debian Jessie)

gem install rmagick -v '2.13.2' (Debian Jessie)

sudo apt-get install ImageMagick libmagickcore-dev libmagickwand-dev libmagick++-dev

IMAGICK=$(find /usr/lib -type f -name Magick-config | grep bin | grep Magick-config | tail -n 1)
if [ -z "${IMAGICK}" ]; then
    echo "Magick-config was not found"
else 
 ln -nfs "${IMAGICK}" /usr/local/bin/Magick-config
@pcreux
pcreux / migrate.rb
Created August 2, 2012 10:28
Migrate from Heroku Shared DB to Postgres `dev` Plan
#!/usr/bin/env ruby
#
# This script migrates your Heroku app from a Shared DB to a Postgres `dev` Plan
#
# Usage:
# ruby migrate.rb [app_name]
#
def usage
puts "migrate.rb [app_name]"