Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am pbm on github.
  • I am pbm (https://keybase.io/pbm) on keybase.
  • I have a public key ASDZAIsdGR5UJFDjvj_rnyf_AbwVONCShg4yiEBeJuhiKgo
@pbm
pbm / config.ru
Created February 8, 2011 19:52
debug info added
# This file is used by Rack-based servers to start the application.
if defined? Maglev
Exception.install_debug_block do |e|
ts = e.to_s
nil.pause if ts =~ %r{.*Expected.*}
end
end
require ::File.expand_path('../config/environment', __FILE__)
class IdentitySet
primitive_nobridge '__removeAll', 'removeAll:'
def clear
__removeAll(self) # This idiom optimized in C code.
end
end
idset = IdentitySet.new
1_000_000.times { |i| idset << i }
#
# generate a topaz exit command as last line of init file
if [[ ! $debugFlag ]]; then
cat - >> $dbscript <<-EOFB
exit
EOFB
else
cat - >> $dbscript <<-EOFC
stack
where