Skip to content

Instantly share code, notes, and snippets.

View tvdeyen's full-sized avatar

Thomas von Deyen tvdeyen

View GitHub Profile
# config/initializers/char_converter.rb
require 'uri'
module Support
class CharConverter
SANITIZE_ENV_KEYS = [
#"HTTP_COOKIE", # including this will give -> WARNING: Can't verify CSRF token authenticity and kill you session cookies
"HTTP_REFERER",
"PATH_INFO",
@tvdeyen
tvdeyen / gist:2711329
Created May 16, 2012 15:32 — forked from dx7/gist:1333785
Installing ruby-debug with ruby-1.9.3-p194
# Install with:
# bash < <(curl -L https://raw.github.com/gist/2711329)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p194 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem