Skip to content

Instantly share code, notes, and snippets.


Jhimy Fernandes Villar stjhimy

View GitHub Profile
View gist:1975644
class PostsController < ActionController::Base
def create
def update
rubiii / monkey_path.rb
Created Jan 29, 2012
Monkey patch Savon to allow attributes to be added to the SOAP header tag
View monkey_path.rb
require "savon"
module Savon
module SOAP
class XML
attr_accessor :header_attributes
def to_xml
@xml ||= tag(builder, :Envelope, complete_namespaces) do |xml|
burke /
Created Jan 27, 2012 — forked from funny-falcon/cumulative_performance.patch
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.


You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

yevgenko / .Xdefaults
Created Aug 24, 2011
URxvt settings with solarized theme
View .Xdefaults
! Xft settings
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
rodrigotassinari / gist:1078666
Created Jul 12, 2011 — forked from sagmor/gist:1041943
Patched Ruby 1.9.2 for faster load and GC
View gist:1078666
# Ruby 1.9 Fast require:
curl > load.patch
# Ruby 1.9.2 GC Patch:
curl > gc.patch
rvm install 1.9.2-p180 --patch load.patch,gc.patch -n loadgc
rm gc.patch load.patch
You can’t perform that action at this time.