Skip to content

Instantly share code, notes, and snippets.

View mostlyobvious's full-sized avatar

Paweł Pacana mostlyobvious

View GitHub Profile
*** glibc detected *** thin server (127.0.0.1:3000): double free or corruption (out): 0x00002aaab42ad350 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ba1f4ce69a8]
/lib/libc.so.6(cfree+0x76)[0x2ba1f4ce8ab6]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(onig_free_body+0x16)[0x2ba1f3e53586]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(onig_free+0xe)[0x2ba1f3e536de]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9(rb_reg_search+0x469)[0x2ba1f3e50f59]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9[0x2ba1f3e90673]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9[0x2ba1f3edf3c7]
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/libruby.so.1.9[0x2ba1f3ed3419]
@mostlyobvious
mostlyobvious / chef-client.sh
Created June 11, 2011 12:32
chef client install for debian
#!/bin/bash
#
# default debian install does not have sudo,
# run as root
apt-get -q -y install lsb-release
echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list
wget -qO - http://apt.opscode.com/[email protected] | apt-key add -
apt-get update
apt-get -q -y install chef
BlackBerry Pearl 8130 Trusted Certificate Authorities
-----------------------------------------------------
Anny Way WAP Root (has red X icon - expired)
Baltimore CybertTrust Mobile Root
Baltimore CybertTrust Root
Certicom MobileTrust RSA Root
Comodo AAA Certificate Services
Comodo AddTrust External CA Root
Comodo UTN USERFirst Client
class WidgetsTest < Bbq::TestCase
scenario "old school" do
user = TestUser.new
user.visit root_url
user.within "#foo" do
user.see! "bar"
end
end
scenario "page components wrapped as widgets for the glory!" do
#!/usr/bin/env rake
task "test:first" do
puts "yada yada"
end
task "test:second" do
puts "kaka dudu"
end
[ pid=16079 thr=4120880 file=utils.rb:176 time=2011-07-02 03:12:16.715 ]: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- bundler)
(process 16079, thread #<Thread:0x7dc260>):
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb:325:in `prepare_app_process'
from /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:155:in `initialize_server'
from /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb:572:in `report_app_init_status'
from /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:153:in `init
class MyError < StandardError; end
begin
raise "look ma, no NameError"
rescue MyError
undefined = "defined"
puts undefined
rescue Exception
puts undefined
end
class MyError < StandardError; end
begin
raise "look ma, no NameError"
rescue MyError
undefined = undefined
rescue Exception
undefined
end
# For RVM
rvm: bash curl git
# For Ruby (MRI & ree) you should install the following OS dependencies:
ruby: /usr/bin/apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
" Mappings for tabs moving
noremap <silent> <C-S-PageUp> :exe "silent! tabmove " . (tabpagenr() - 2)<CR>
noremap <silent> <C-S-PageDown> :exe "silent! tabmove " . tabpagenr()<CR>