Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)
- Some utilities:
sudo apt-get install vim tmux git curl- Copy/paste from the command line:
| #!/usr/bin/env ruby | |
| # Script to generate random images. Based on http://www.imagemagick.org/Usage/canvas/#random_blur | |
| require 'optparse' | |
| options = {} | |
| optparse = OptionParser.new do |opts| |
| build_package_combined_patch() { | |
| local package_name="$1" | |
| { | |
| curl https://raw.github.com/gist/3721565/falcon.patch | patch -p1 | |
| autoconf | |
| ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
| make -j 8 | |
| make install | |
| } >&4 2>&1 |
| diff --git a/array.c b/array.c | |
| index 64647c3..618d9e3 100644 | |
| --- a/array.c | |
| +++ b/array.c | |
| @@ -255,15 +255,24 @@ rb_ary_modify(VALUE ary) | |
| rb_ary_modify_check(ary); | |
| if (ARY_SHARED_P(ary)) { | |
| long len = RARRAY_LEN(ary); | |
| + VALUE shared = ARY_SHARED(ary); | |
| if (len <= RARRAY_EMBED_LEN_MAX) { |
sudo apt-get install vim tmux git curl