jeroen.se
by jnieuwen
AMS-NCE-AMS in the cockpit of a boeing 737-700
28 January 2008 17:31 - Last Saturday I had the opportunity to fly to Nice in the cockpit of a Boeing 737-700. Pictures can be found here.
0 comments
quickly make a script from entered commands
22 January 2008 18:27 - Sometimes you find yourself doing a lot of things at a shell prompt which you have to do on another host later on. So what you want is a script. Yes really. All according to the motto: Think once, type once, execute often.
So time to export your command history to a file as a starting point for a script. The easiest way I found for this is: fc -n -l -100. Where 100 is the number of lines you need from your history.
0 comments
summarize irc topics from emails
08 January 2008 16:52 - I am in a lot of irc channels and in each of these channels the topic of the channel can change a few times per day. Of course I do not want to check the topic too often for changes. But on the other hand I also do not want to mis meeting or party announcements. Some googling gave me a irssi plugin to send an email per topic change. So far so good. But that meant that I had to read a lot of emails extra. Which means it still cost more time than needed to follow the changes in the topics.
Hence time to update my procmail filter to send those emails to a separate Maildir and create a script to summarize these emails: topic2single.pl. It reads mailfiles from standard input and summarizes all topic changes from these emails. I use the script with a rule like: find /home/jnieuwen/Maildir/.topic/new | topic2single.pl | sort | uniq and pipe the result of this to the mail command.
As a result of this I only have to read one email with topic changes a day. If your topic change emails have the same format: <nick> changed the topic of <channel> to: <topic> on a single line in the mail file then the script may work for you too.
0 comments
the year 2007 in numbers
01 January 2008 16:29 - The year 2007 in numbers
0 comments
Categories
Cycling (2)
Gadgets (3)
Misc (22)
Scripting (23)
Travel (7)
Unix (24)
Archive
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)