Scripts


"Fire and forget." That seems to be my motto for scripts. If it works, don't fix it etc.

ruutu-dl

ruutu-dl downloads video from ruutu.fi and jimtv.fi (using flvstreamer).

make-nvpkg.sh

make-nvpkg creates Debian packages out of NVIDIA proprietary video drivers for GNU/Linux. This version works with 180.xx (and possibly future version that include VDPAU-support). Also see my weblog entry.

copyreplace.pl

copyreplace.pl is a script to merge two files. For example lines 7--15 from file A can be used to replace lines 78-80 in file B.

wonderping.sh

wonderping.sh is a script to be used with Wonder Shaper to find the highest upstream while latency stays within acceptable values. It's a small sh-script that requires you to set up pretty much everything, but once the resources are there, it should do its job without interaction.

xc-cleanlinkchan.pl

xc-cleanlinkchan.pl is a X-Chat script to clean up after linkchan.pl script that works as a bridge between UTF-8 and ISO-8859-15 versions of the same channel.

lamechan.py

lamechan.py is a slightly modified version of the original lamechan.py by M. Neumann. lamechan.py is a Python script for X-Chat to recode UTF-8 back to ISO-8859-1(5) on specified channels. This allows X-Chat users to globally use UTF-8 and fall back to legacy character sets on lame channels/users (network specific) that are yet to move to UTF-8. Unlike the original lamechan.py, this script falls back to common server if network has not been set (e.g. connecting through server dialog).

makedeb.sh

makedeb.sh is probably yet another tools for packaging binaries into Debian package. Well, I wasn't aware of one when I took my time (a lot of it ;-) to write this thing. If you're familiar with creating Debian packages, this toy should be trivial to use. If you're not, see the source. First few lines should explain it all. Don't take this script too seriously, I wrote it for the sole purpose of packaging Future Composer plugin for XMMS.

ntunegraph.sh

ntunegraph.sh is a script for plotting graph for CPU/system/GPU temperature out of logfile generated by nTune monitor. Uses perl (if available) or sh/sed/tr for parsing logfile and gnuplot for plotting the data. (Sample output)

cod_stat (cgi-stuff)

cod_stat.pl is a gamelog parser and cgi-script for generating statistics with fancy graphs for Call of Duty and expansion pack United Offensive. While it may work with pretty much any Quake 3 -bases game, developement was done with CoD-UO. I got bored with the game, my server was running empty for months, so the developement was frozen.

cod_stat.pl

cod_stat.pl is (probably) yet another statistics generator for multiplayer Call of Duty. Probably full of bugs, it generates short summary for each match and tries to rank players. Reads gamelog (games_mp.log by default) from stdin and creates several static html-pages in working directory. cod_stat.pl is greatly influenced by UTstats.

fetch.pl

fetch.pl is yet another script to get stuff over the internet by some pre-defined rules. This script was designed fetching comics in mind. Here's simple example rule-file to show what fetch.pl can do. Other documentation than that is just missing. Live with it.

my-http.pl

my-http.pl is a simple connection of functions for handling HTTP-requests (GET/POST), cookies and redirects. As a bonus, you get ugly, buggy and undocumented code to mess up with yours. :-) You probably want to make a Perl-module out of this instead of including it in your scripts. There's no documentation available, but the code should be self-explanatory.

build_html.pl

build_html.pl is kind of "replacement" for SSI - it builds HTML-pages with standard header and footer while still giving user possibility to define proper title, keywords and description for his pages, among other things. Perl-version of build_html is significantly faster than the sh-version (see below), and offers more functionality. Perl-version is, though, new, untested, and undocumented.

build_html.sh

See build_html.pl. This is the old, unsupported version of the Real Thing(tm). Basic documentation is included in the script.

iptables-script

foo-iptables-0.5.2.tar.bz2 is yet another iptables-script (online version). Basic stuff are hardcoded in the script (how said stuff can be coded into scripts?), but other stuff such as port forwards can be configured thru separate configuration file. Configuration components (forwards etc.) can be reloaded individually. The script isn't very flexible, but works for me.

default_route.sh

default_route.sh is a script that sets default route to go through specified network interface. Personally, I use this script to change default routing when other one of my ISPs is having trouble with their network...

redeb.sh

redeb.sh is a simple sh-script to wrap installed Debian-package back to .deb-file. One night I decided to give Galeon 1.3 another try and still found it to be most unconfigurable. When I couldn't find pre-packaged 1.2.8 (not to mention 1.2.10) anywhere, I remembered I still had Galeon 1.2.8 installed on other computer...

*ahem* I should've checked Debian packages before writing this script, but since I have written it already, I won't be removing it from here. In other words, please use dpkg-repack instead.

webwatcher.sh

webwatcher.sh is a small sh-script to keep track of changing web-pages. When page (or part of it) has changed, user is sent an e-mail. This script is supposed to be ran from crontab. Also see this example configuration file which must be located in the same directory with webwatcher.sh.

tclgamma.tcl

tclgamma.tcl is (again,) a small tcl/tk-script for adjusting gamma under XFree86 with xgamma. It opens a GUI with slider and color bar for each color component. The result of adjustment can be seen realtime, and color bars help finding optimal gamma-levels. Tar-ball contains (horrible) main tcl/tk-script, four pnm-pictures and sh-wrapper for xgamma.

...perhaps there is more to come/released...