jeroen.se
by jnieuwen
number of msn and other im users in the statusbar
30 November 2007 07:59 - After creating a script to put the number of users in each IRC channel I am in into a file for rddtool processing`,' I thought it would be nice to have the number of online users in my bitlbee channel in the statusbar. Hence I created the following script.
To use the script`,' copy it to the .irssi/scripts directory and load the script. Then do something like /statusbar add jeroen_se_bitlbee
0 comments
running sudo on multiple host or a great way to shoot your self in the foot
22 November 2007 21:04 - Sometimes you need to execute a command on a lots of hosts on which you only have sudo access. This is easy when the NOPASSWD option is set for you in the sudoers file. However if this is not the case you run the risk of typing your password to often. So yesterday I created sudoatall.sh. A simple shell script to solve this problem. The usage is something like sudoatall.sh <file with hostnames> <what ever you want to execute>
There are however 2 catches. First the script has your sudo password assigned to a variable. Secondly it is of course a great script to break all your hosts at once.
0 comments
scheduling a not cron safe job more then once
19 November 2007 18:10 - Last week I ran in to the problem that my svntag.sh script should run on the first of every month. Unfortunately my svntag.sh script misses all kind of PATH info so it will probably not run as a cronjob without modifications.
Being to lazy to check and fix the possible problems while running from cron`,' I came up with:
for i in {0..24}
do
echo svntag.sh | at -t $(date -j -v+${i}m 200712010407 +%Y%m%d%H%M)
done
Which works when using the zsh shell on FreeBSD.
0 comments
counting the users in your irc channels
14 November 2007 08:31 - Yesterday someone in an irc channel I am in was trying to graph the current number of users in the irc channels he is in with Cacti. His problem was quite simple: How do I get the number of users out of my irssi? My default statement in those cases is: "Just script it. It can not be that hard."
And fortunately it is not. Although I was not able to complete the script in the estimated 15 minutes (Blame the GPRS coverage between apeldoorn and amersfoort)`,' I did fix the script in 26 minutes. You can download the script here.
The usage is quite simple: Just load the script in irssi and set the output file to something usefull with /set usercountlog_file /where/you/want/your/file. And every minute or so the file is updated with the current number of users. The format of the file should be self explanatory.
0 comments
contributing to the new and improved typingspeed.pl
11 November 2007 20:24 - Today Tijmen Ruizendaal released the latest version op typingspeed.pl. It has 2 major improvements. First a fix for a memory leak. The second improvement based on my code is the logging of your typing speed to a file. This allows you to make nice graphs of your typing speed. Read all about these changes and more here.
0 comments
a blog to news items script
11 November 2007 15:18 - Today I noticed that the news items sections of my webpage are mostly outdated or incomplete. Hence I created a script to update the news section from the blog postings I make.
0 comments
my upgrade to mac os x leopard
07 November 2007 13:37 - Last week I upgraded to Mac OS X Leopard from Tiger. Having a backup of my important files I simply choose the upgrade option. And 1.5 hours later or so I had a working Leopard install.
My main problem with Leopard is that X11 has changed dramatically. So much that I have real problems using wmii-3 for xterms.
The improvements in Terminal.app saved Leopard from a rollback to Tiger because of X11. Terminall.app has become usable now. Especially after I issued the
defaults write com.apple.Terminal FocusFollowsMouse -string YES
command.
I also quickly decided to put the dock back to something reasonable with the
defaults write com.apple.dock no-glass -boolean YES
killall Dock
commands.
0 comments
Categories
Cycling (2)
Gadgets (3)
IPv6 (1)
Misc (27)
Scripting (25)
Travel (7)
Unix (24)
Archive
January 2013 (1)
October 2012 (1)
September 2012 (1)
May 2012 (1)
February 2012 (1)
January 2012 (1)
January 2011 (1)
November 2010 (1)
June 2010 (1)
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)