so i decided to have my wallpaper in evilwm switch up every 60 seconds but since setting the wallpaper in evilwm requires the usage of feh, xv or some other utility i came up with this little script below which gets daemonized by .xinitrc at login: #!/bin/bash while :;do files=(/path/to/*.jpg /path/to/*.jpeg /path/to/*.png /path/to/*.gif) N=${#files[@]} ((N=RANDOM%N)) … Read More
here is a quick and dirty little script to see how many open files tomcat is using up. #!/bin/bash USER=tomcat LSOF=`lsof -u $USER | wc -l` OPEN_F=`ulimit -a | egrep “open files” | awk ‘{print $4}’` #PERCDONE=$(( $LSOF / $OPENF * 100 )) PERCDONE_PRE=$(echo “scale=2;(($LSOF/$OPEN_F) * 100)” |bc) PERCDONE=`echo $PERCDONE_PRE | cut -d. -f1` if … Read More
my setup at night (click for a bigger image):
the scottish crew gave me a cool new gift: this bad boy should be getting added to the cavalcade of machines in use.
this is a real simple way to redirect all hotlinked images to another image in apache from either the httpd.conf or an htaccess file: RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.+\.)?insert_url_here\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(png|gif|bmp|jpg)$ image_here.jpeg [L] format is real simple, you just have to change insert_url_here\.com to your url so that any request coming … Read More
hello all, as some of you may noticed that the format and layout has changed. i am in the process of changing from simplephp blog to wordpress since simplephp is no longer being maintained. all the old posts are going to be brought over to this new layout bit by bit but for now are … Read More
to the one or two of you that read this slop every now and then i apologize for no recent updates. i have been working on migrating all the content on this site to wordpress since this particular software is no longer being maintained. look forward to more updates soon.
here is my .conkyrc as used for: used in this desktop screenshot: along with: evilwm, mrxvt, xsetroot, xv (for wallpaper) & xclock
i hate you rage…..
need to convert all the mp3’s in a directory to wave to burn in xcdroast ? here is an easy way: for x in *mp3 ; do lame –decode `echo $x | cut -d. -f1`.mp3 `echo $x | cut -d. -f1`.wav ; done obviously this assumes you have lame installed EDIT 06.17.09 – converting wma … Read More