18
03
2009
We all know the feeling: before starting a new script you hack around in IRB to try out some things, but once you’re done you realize that now you either have to type everything again or copy/paste from the IRB session (or the history file if you keep one). So I set out on my search for a solution and found an old ruby-talk post by Gavin Sinclair, which implemented a method called dumphist, which I modified to my needs and put in my ~/.irbrc:
Let’s look at the following IRB session:
>> puts "hello"
hello
=> nil
>> puts "world"
world
=> nil
>> def foo
.. puts 'bar'
.. end
=> nil
>> dumphist(3, 'test.rb')
=> ["def foo", "puts 'bar'", "end"]
The last command created a file named test.rb for us, which contains only the method foo. 
Comments :
No comments »
Trackbacks :
No Trackbacks »
27
02
2009
Tweeting the URL of the article you are currently reading can be quite cumbersome: start your Twitter client if it isn’t already running, copy the URL, shorten it, paste it into the client…
I therefore wrote a little Ruby script I can call from the command line and which will do all this annoying work for me. As an added bonus you can pass in hashtags as command line parameters. It’s just a quick and dirty hack, feel free to change it according to your needs… 
Comment :
1 Comment »
Trackbacks :
1 Trackback »
25
01
2007
The date and location for the Chaos Communication Camp 2007 have now been confirmed! Hope to see you all there!
Setting Orange, Chaos 25, 3173 YOLD
Comments :
No comments »
Trackbacks :
No Trackbacks »
25
12
2006
In a little less than four hours, berq, lippi, red667, and me will leave for Berlin where we’re going to attend the 23C3. Since the ÖBB still sucks, we’re once again going by bus, arriving tomorrow at around 6:30am. Judging from last year the time between our arrival until we can check into our hostel at around noon will be spent drinking beer, which definitely isn’t a recommended breakfast option. Kids, don’t try this at home!
I’m pretty sure we’ll once again have loads of fun, and unlike the last years I plan on regularly blogging and posting pics from the event, so stay tuned! Anyone interested in meeting up at the 23C3 either post a comment here or send a mail to my GMail account.
Prickle-Prickle, The Aftermath 67, 3172 YOLD
Comments :
No comments »
Categories : Personal
Trackbacks :
No Trackbacks »