Skip to content

Instantly share code, notes, and snippets.

View imajes's full-sized avatar

James Cox imajes

View GitHub Profile
(gdb) thread apply all bt
Thread 5 (process 20277):
#0 0x00007fff8df08ce2 in __pthread_kill ()
#1 0x00007fff915517d2 in pthread_kill ()
#2 0x0000000100831b46 in abort () at state.cpp:219
#3 0x000000010001ccfb in bert::Decoder<bert::IOReader>::convert_term (this=0x111483b98, term=0x6) at bert.hpp:846
#4 0x000000010001a9d6 in bert::Decoder<bert::IOReader>::next_value () at /Users/james/.rvm/src/rbx-head/vm/util/bert.hpp:1087
#5 0x000000010001a9d6 in rubinius::QueryAgent::process_commands (this=0x11032f230, client=@0x6) at bert.hpp:368
#6 0x000000010001b28a in rubinius::QueryAgent::perform (this=0x111483ef0) at agent.cpp:572
#0 0x00007fff8df08ce2 in __pthread_kill ()
#1 0x00007fff915517d2 in pthread_kill ()
#2 0x0000000100831b46 in abort () at state.cpp:219
#3 0x000000010001ccfb in bert::Decoder<bert::IOReader>::convert_term (this=0x111483b98, term=0x6) at bert.hpp:846
#4 0x000000010001a9d6 in bert::Decoder<bert::IOReader>::next_value () at /Users/james/.rvm/src/rbx-head/vm/util/bert.hpp:1087
#5 0x000000010001a9d6 in rubinius::QueryAgent::process_commands (this=0x11032f230, client=@0x6) at bert.hpp:368
#6 0x000000010001b28a in rubinius::QueryAgent::perform (this=0x111483ef0) at agent.cpp:572
#7 0x0000000100026e95 in thread::Thread::trampoline (arg=0x11032f230) at thread.hpp:76
#8 0x00007fff9154f8bf in _pthread_start ()
#9 0x00007fff91552b75 in thread_start ()
% rbenv install 1.9.3-p194
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /home/deploy/.rbenv/versions/1.9.3-p194
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz...
Installing ruby-1.9.3-p194...
Installed ruby-1.9.3-p194 to /home/deploy/.rbenv/versions/1.9.3-p194
ruby: no such file to load -- ubygems (LoadError)
% rbenv install 1.9.3-p194
Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /home/deploy/.rbenv/versions/1.9.3-p194
Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz...
Installing ruby-1.9.3-p194...
Installed ruby-1.9.3-p194 to /home/deploy/.rbenv/versions/1.9.3-p194
ruby: no such file to load -- ubygems (LoadError)
@imajes
imajes / Gemfile
Created February 1, 2012 18:18
make ruby debug work in 1.9.3 with bundler
gem 'ruby-debug19', '0.11.6', :require => 'ruby-debug'
# FIXME: forcing rdebug to work on 1.9.3
gem 'linecache19', '0.5.13'
gem 'ruby-debug-base19', '0.11.26'
remote: /data/github/current/lib/github/config/resque.rb:27: undefined method `constantize' for "GitHub::Jobs::CacheRef":String (NoMethodError)
remote: from /data/github/current/lib/github/config/resque.rb:26:in `each'
remote: from /data/github/current/lib/github/config/resque.rb:26
remote: from /data/github/current/lib/rock_queue.rb:9:in `require'
remote: from /data/github/current/lib/rock_queue.rb:9
remote: from hooks/post-receive:27:in `require'
remote: from hooks/post-receive:27
@imajes
imajes / turntable.user.js
Created November 29, 2011 18:05
fluid user script for turntable.fm to alert growl
function setNP(str) {
window.nowPlaying = str;
}
function nowPlaying() {
return window.nowPlaying;
}
setTimeout(updateGrowl, 1000);
RAILSPID=`ps -ef|grep rails|grep -v grep|awk '{ print $2 }'`
if [ -n $RAILSPID ]; then
kill -9 $RAILSPID
fi
class Foo
has_one :image
def process_stuff
img = Image.first
img.with_temp_file('/path/to/tmpfile') do |tf|
tf.rotate
write(1, "ree-1.8.7-2011.03 :13422 > ", 29) = -1 EIO (Input/output error)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
select(2, [0], [], [], {16, 522108}) = 1 (in [0], left {16, 522108})
select(1, [0], NULL, [0], {0, 100000}) = 1 (in [0], left {0, 100000})
ioctl(0, FIONREAD, [0]) = -1 EIO (Input/output error)
write(1, "\n", 1) = -1 EIO (Input/output error)
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff8dd1d710) = -1 EIO (Input/output error)
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B9600 opost isig icanon echo ...}) = -1 EIO (Input/output error)