Skip to content

Instantly share code, notes, and snippets.

View gmonfort's full-sized avatar

German Monfort gmonfort

  • MvdLink
  • Montevideo
View GitHub Profile
@gmonfort
gmonfort / crushimg.rb
Last active December 15, 2015 23:38 — forked from DrummerHead/crushimg.rb
#!/usr/bin/env ruby
# requires: jpegtran and pngcrush
# brew install libjpeg
# brew install pngcrush
#
# "crushimg" on a directory will look for jpg and png files, compress them using
# jpegtran and pngcrush and return a new file with an "-optimized" suffix.
# it will not traverse the child directories (not recursive)
#
@gmonfort
gmonfort / debian6-rvm-ree-gems.erb
Created June 6, 2011 05:28
bootstrap a debian 6 node with rvm and ree patched to avoid SSLv2 issues
# Debian 6 bootstrap template file for chef
#
# Installs RVM and ruby enterprise edition (ree) patched to workaround
# issues with SSLv2 in debian systems (SSLv2 is deprecated)
#
# Also only installs ruby dependencies listed in `rvm notes`
#
# RVM is installed system-wide in /usr/local/rvm
#
# Usage: