Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Noria fxn

View GitHub Profile
View gist:9c415f10ac7b3f1f3df4

[This is a true story.]

My grandfather lived in a small town. He used to go to the theater every weekend.

In those years there was a dictatorship in Spain and theaters ran a regime propaganda documentary before movies started called NO-DO. My grandfather was concerned that he couldn't make it to the movie, he fell asleep watching NO-DO and that was it.

So, he visited very worried Doctor Valentín, who was the town's local doctor. He explained to him he couldn't pass the NO-DO and there was no way for him not to fall asleep. The doctor said: "Joaquín, do you know how many people come here to get sleeping pills? If you are sleepy, sleep!"

He left the doctor relieved, and just slept.

View gist:0b889d0e8e692d4fd63b
All found patches(4): https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/01-zero-broken-tests.patch https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/02-railsexpress-gc.patch https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/03-display-more-detailed-stack-trace.patch https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/04-show-full-backtrace-on-stack-overflow.patch.
Patch full path ''.
Patch 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/01-zero-broken-tests.patch' not found.
View gist:00842c5df8d8fe741775
vagrant@rails-docs-server:~$ rvm install 2.0.0-p598 --patch railsexpress -n railsexpress
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system......
Installing required packages: libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev..............
Requirements installation successful.
Installing Ruby from source to: /home/vagrant/.rvm/rubies/ruby-2.0.0-p598-railsexpress, this may take a while depending on your cpu(s)...
ruby-2.0.0-p598-railsexpress - #downloading ruby-2.0.0-p598, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
View gist:a62f5eb747b949f9c485
module M
X = 1
end
module N
include M
end
N.const_defined?(:X) # => false in 1.8
@fxn
fxn / moved
Created Oct 29, 2008
Rails core contributors
View moved
Please check http://contributors.rubyonrails.org/
View moved
Please check http://contributors.rubyonrails.org/names_mapping
@fxn
fxn / moved
Created Feb 17, 2009
script that generates the list of Rails contributors
View moved
Please check http://github.com/fxn/rails-contributors/tree/master
We couldn’t find that file to show.
View automatic_svn_paging.sh
# Throw this into your bash init file for automatic
# paging of a few svn commands, a la git.
SVN_PATH=`which svn`
function svn
{
case $1 in
cat | diff | help | list | log )
if test -t 1
then
@fxn
fxn / .fxn.bashrc
Created Jan 9, 2010
bash stuff common to different computers
View .fxn.bashrc
# ls(1)
alias ls='ls -F'
alias ll='ls -lh'
alias la='ls -lhA'
# Rails commands
alias ss='script/server'
alias sc='script/console'
alias sr='script/runner'
alias sa='script/about'