Bash

I have mostly written these scripts way back in my days, but I will add any new scripts I may write in the future here as well. For the time being, these are mostly scripts to help with daily work, and to perform very specific tasks (hey, is there a script that isn’t).

acpiinfo

A small script to get information out of the /proc filesystem, and to output it in a readable form on the screen.

bmptogif

Script that converts bitmaps to GIF.

getpics

A small script to fetch pictures from a Kodak CX-4230.

giftogif

small script that fixes bad gif compressions from Electric Eyes among other programs.

keepalive

Another small script to keep your internet connection alive in an semi intelligent way, in case there are scripts on your Internet Service Provider that disconnects you, unless you are watching homepages of some sort within specified time intervals.

mkthumb

A small script to create thumbnails out of images, together with a index.html file.

multiscp

A script to scp a file to several hosts. This can be used for updates etcetera that you wish to put on several machines at the same time.

multissh

A script to ssh to several hosts and run commands on each host. This is very good if you have things you want to check on all hosts in your network.

netpoll

A small script to log up and downtime of your Internet connection, or local network, or you choose. Don’t forget to configure the host that you ping.

scaleimage

Small script that scales images to a uniform size.

statsnet-1.0.1

This is a very small set of scripts that will create a few pages with statistics. It is based on RRDtools, which you will need to run the scripts.Basically, it outputs a couple of images with statistics of transmitted and received bytes, transmitted and received packets and amount of connections. Statsnet will also output a couple of basic HTML pages which links the graphs, with a little textual explanations.

To get all of these statistics, you need to have support in your kernel for the /proc filesystem, and you need a network device (of course) as well as the ip_conntrack module loaded from the netfilter kernel part.

ta-rules

A simple iptables ruleset for playing Total Annihilation. Has been proven to work with the Phoenix Worx servers. This should also work with most other DirectPlay7 and 8 programs. Be warned, this opens up huge amounts of ports to your internal machines!

testssh

Another script that tests what version of SSH is running on all hosts in a network. E.g., does it take SSH v1, v2 or none at all.

wma2mp3

A small script that converts all .wma files into mp3 in the current working directory. Note that this requires mplayer with windows media support to be installed on the machine.