Skip to content

Instantly share code, notes, and snippets.

View mvz's full-sized avatar

Matijs van Zuijlen mvz

View GitHub Profile
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
bin/rbx[0x57af5c]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf020)[0x7fddf6c3c020]
bin/rbx(_ZN8rubinius11InlineCache19update_and_validateEPNS_2VMEPNS_9CallFrameEPNS_6ObjectE+0x2c)[0x5851bc]
bin/rbx(rbx_check_serial+0x24)[0x713e04]
[0x7fddf0097a2d]
@mvz
mvz / gem_improved_cleanup.rb
Created May 27, 2011 06:48
Improved gem cleanup: ignores Rails, tries to avoid user interaction.
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems/user_interaction'
require 'rubygems/uninstaller'
# New RubyGems?
#specs = Gem::Specification.find_all_by_name do |s|
# s.name != "rails"
#end

Keybase proof

I hereby claim:

  • I am mvz on github.
  • I am mvz (https://keybase.io/mvz) on keybase.
  • I have a public key whose fingerprint is CA1C F616 6060 467D 107C 4ABC 9679 0921 5E73 C9DF

To claim this, I am signing this object:

@mvz
mvz / block_binding.rb
Created October 20, 2014 18:50
JRuby binding issue
class C
def block_param &blk
p blk.call
@foo = 2
p instance_eval &blk
p blk.call
end
end
@foo = 1
@mvz
mvz / spec_helper.rb
Last active August 29, 2015 14:05 — forked from sorah/spec_helper.rb
RSpec.configure do |config|
config.after(:each) do
next if RSpec::Matchers.last_should
result = self.example.metadata[:execution_result]
next if result[:exception] || result[:pending_message]
next if RSpec::Mocks.space.instance_eval { proxies }.any?
raise "No expectations found in example at #{self.example.location}"
end
end