Skip to content

Instantly share code, notes, and snippets.

View agrimm's full-sized avatar

Andrew Grimm agrimm

  • Terem Technologies
  • Sydney, New South Wales
View GitHub Profile
@agrimm
agrimm / gist:5449514
Created April 24, 2013 03:58
Problem when running bundle help
troff: fatal error: can't open `/Users/agrimm/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.3.0/lib/bundler/man/bundle': No such file or directory
Bundler 1.3.0
Ruby 2.0.0 (2013-02-24 patchlevel 0) [x86_64-darwin11.4.2]
Rubygems 2.0.0
GEM_HOME
Gemfile
[snipped]
@agrimm
agrimm / gist:5329807
Created April 7, 2013 09:45
ABOUT アンドリューグリム
アンドリューグリム
* バイオインフォマティクスの科学者
* PORO(Plain Old Ruby Object)のプログラマー
* オーストラリア人
* Ruby会議2011と2012のスピーカ http://rubykaigi.org/2011/ja/schedule/details/18S03 http://sapporo.rubykaigi.org/2012/ja/schedule/details/22.html
* Railscamp4〜12に行きました。http://railscamps.com/
* コミュニティに行きました
* * Ruby On Rails Oceania Sydney
* * Asakusa.rb
@agrimm
agrimm / RubyKaigi 2013 itinerary
Last active December 15, 2015 16:38
RubyKaigi 2013 itinerary
Warning: information in this gist is not guaranteed to be correct. This applies especially to addresses! >_<
* Saturday 25 May: JAL JL0772 flight. Depart Sydney 8:15 am, arrive Tokyo Narita International terminal 2 5:05 pm.
* 25-26 May (approximate check-in provided: 9:30): Business Hotel Yamayuri . 2-19-5 Higashiueno, Taito-ku, Tokyo. +81-3-3831-7759 http://goo.gl/maps/CCs30 http://www.hotel-yamayuri.com/english/index.html
* 26-29 May 5:00 check-in: Hotel New Palace. 〒965-0878 会津若松市中町2-78 . 2-78 Nakamachi, Aizuwakamatsu, Fukushima Prefecture 965-0878 . 0120-15-2804 http://goo.gl/maps/UmDgE http://www.npls.co.jp/
* May 26: Dinner with two geishas of Higashiyama Onsen at Hotel New Palace.
* 29 May - 3 June 9:00 check-in: Sotetsu Fresa Tokyo Toyo-cho. 相鉄フレッサイン東京東陽町駅前 . 〒135-0016 東京都江東区東陽4-4-3. 4丁目-4−3 Toyo, Koto, Tokyo 135-0016 . 03-3647-2031 . http://goo.gl/maps/9oHXN http://fresa-inn.jp/eng/toyocho/
* 30 May - 1 June: RubyKaigi. Tōkyō-to, Kōtō-ku, Aomi, 2丁目2−1. 2-2-1 Aomi, Koto-ku, Tokyo 135-8630 .
* Satur
@agrimm
agrimm / gist:4663409
Created January 29, 2013 10:42
Failure message for hubris #1
Andrew-Grimms-MacBook-Pro:~ agrimm$ rbenv shell 1.9.3-p327
Andrew-Grimms-MacBook-Pro:~ agrimm$ gem install hubris
Building native extensions. This could take a while...
ERROR: Error installing hubris:
ERROR: Failed to build gem native extension.
"/Users/agrimm/.rbenv/versions/1.9.3-p327/bin/ruby" -rubygems /Users/agrimm/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR=/Users/agrimm/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/hubris-0.0.6/lib RUBYLIBDIR=/Users/agrimm/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/hubris-0.0.6/lib
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
@agrimm
agrimm / gist:4349869
Created December 21, 2012 00:44
I get a segfault when I'm running without valgrind, but don't get a segfault when running with valgrind
Commands I ran
mkdir lack_of_segfault_replication_20121221
git clone git://github.com/bioruby/bioruby.git bioruby_segfault_replication_20121221
cd bioruby_segfault_replication_20121221
export CPUPROFILE_OBJECTS=1
export CPUPROFILE=/tmp/my_app_profile_objects
export RUBYOPT="-r`gem which perftools | tail -1`"
uname -a
ruby --version
Last login: Sat Sep 29 15:22:08 on ttys004
r192-168-1-2:~ agrimm$ rvm use jruby-head
Using /Users/agrimm/.rvm/gems/jruby-head
192-168-1-2:~ agrimm$ jruby -w -S gem --version
Error: Your application used more stack memory than the safety cap of 2048K.
Specify -J-Xss####k to increase it (#### = cap size in KB).
Exception trace follows:
java.lang.StackOverflowError
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
Last login: Sat Sep 29 15:15:15 on ttys003
192-168-1-5:~ agrimm$ rvm use ruby-head
Using /Users/agrimm/.rvm/gems/ruby-head
192-168-1-5:~ agrimm$ rvm install jruby
jruby-1.6.7 - #fetching
jruby-1.6.7 - #downloading jruby-bin-1.6.7, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14.8M 100 14.8M 0 0 148k 0 0:01:42 0:01:42 --:--:-- 151k
jruby-1.6.7 - #extracting jruby-bin-1.6.7 to /Users/agrimm/.rvm/src/jruby-1.6.7
Thread ID: 70291112021200
Total Time: 0.013672000000000004
Sort by: total_time
%total %self total self wait child calls Name
--------------------------------------------------------------------------------
0.00 0.00 0.00 0.00 1/59 MiniTest::Unit::TestCase#run_setup_hooks
0.00 0.00 0.00 0.00 1/59 Enumerable#each_with_index
0.00 0.00 0.00 0.00 1/59 MiniTest::Unit::TestCase#run_teardown_hooks
0.00 0.00 0.00 0.00 4/59 Enumerable#inject
@agrimm
agrimm / gist:3214185
Created July 31, 2012 06:11
How to do a unicode snowman in Ruby
irb(main):001:0> "\u2603"
=> "☃"
@agrimm
agrimm / Sapporo RubyKaigi trip itinerary
Created July 21, 2012 01:46
Sapporo RubyKaigi trip itinerary
* Saturday 8 September: Virgin DJ1421 flight. Depart Sydney 2:25 pm, arrive Cairns 5:40 pm.
* 8-9 September: Dreamtime Travellers Rest Cairns. 189 Bunda Street Cairns. http://goo.gl/maps/OJOd8 http://www.dreamtimehostel.com/
* Sunday 9 September: Jetstar JQ15 flight. Depart Cairns 12:20 pm, arrive Osaka Kansai International Airport 7:10 pm.
* 9-10 September: Gojo Guest House. 3-396-2 Gojobashihigashi, Higashiyama-ku, KYOTO, 605-0846 . +81-75-525-2299 . http://goo.gl/maps/IqbF7 http://www.gojo-guest-house.com/gojo-guest-house/gojo-e.html
* 10-13 September: Aizuya Inn. 2-17-2 Kiyokawa, Taito-ku, Tokyo 111-0022 . 03-6276-6308 . http://goo.gl/maps/amHtb http://www.aizuya-inn.com/access.html
* 10-11 September: Family Inn Hotels. Iitsuka-62-1 Onahamasumiyoshi, Iwaki, Fukushima Prefecture, Japan. 81 246-88-1001 http://goo.gl/maps/ugbkY
* Wednesday September 12: Sapporo Ruby Kaigi Pre Event in Tokyo
* 13 September: Ino's Place. 6-5 3Jo 4Chome Higashi-Sapporo Shiroishi-ku Sapporo Hokkaido Japan 003-0003 . (+81)11-832-