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
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.
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.
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.
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.
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.
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.