I thought, some of the little scripts I use could be useful for other people as well. Perhaps, someone may want to use them, perhaps for inspiration; at least: have fun :-)
I use mp3c as a frontend for ripping CDs. for the actual work, I use cdparanoia. Unfortunately, mp3c doesn't display the progress bar of cdparanoia, and the output of cdparanoia -e doesn't help. So I wrote a little wrapper script that displays a progress bar. The cdparanoia symbols (" ", "-", "+", "e", "!" and "V") are displayed as cdparanoia does (I looked up the routine doing it in the cdparanoia source code), but for the smilies, I was too lazy ;-)
cdparanoia-mon takes the device file and the track to rip as command line arguments. optionally, a target filename can be given. if not, the file is named ./track[number].wav.
Download: cdparanoia-mon-0.1.gz (0.8 KB, Last change: 2008-09-19)
Saves the trouble to give absolute paths as encfs expexcts them. Example: encfsmount geheim creates, if there's no ./.geheim.enc, ./geheim (if necessary) and ./.geheim.enc and sets up ./.geheim.enc as a new encfs container directory. If there's ./.geheim.enc and no second parameter is given, it is mounted to ./geheim. If one gives a second parameter, the first is the container directory and the second is the mountpoint.
For informations about encfs see the encfs homepage.
Download: encfsmount-0.1.3.gz (1.3 KB, Last change: 2010-06-12)
Older versions: [0.1.2] (0.4 KB) [0.1.1] (0.4 KB) [0.1] (0.4 KB)
… encfsmount's GUI buddy ;-) I was asked for something like this in the Gentoo Forums, so I wrote a cute little script that can mount or unmount EncFS directories by using cute little kdialog boxes. The script needs the file ~/.encfsmounter, that contains all EncFS directory mount points, one per line (assumed the directories have the same names as encfsmount produces). The directory to mount can also be passed on the command line (absolute path or relative to ~).Perphaps, somebody may need this ;-)
Download: encfsmounter-0.1.gz (0.7 KB, Last change: 2008-09-19)
Bash script to get the external IP address of a Fritz!Box via UPnP using netcat. Nice, if you want to use the IP e. g. in a shell script. You don't have to access the internet to determine your IP then. In principle stolen from http://www.gimme-th.at/ ;-)
Download: get_fritz_ip-0.1.gz (0.6 KB, Last change: 2008-09-19)
The installkernel script I use. Since version 0.2, it is intended to be called from /usr/src/linux/make install (put it in e. g. /root/bin/ for this). Installs a kernel to /boot, links it to /boot/vmlinuz, makes backups if something's overwritten and copys the configuration to /boot as well. Names the files after the kernel version, e. g. vmlinuz-2.6.12.5 and config-2.6.12.5.
Download: installkernel-0.2.gz (0.4 KB, Last change: 2008-09-19)
Older versions: [0.1.2] (0.5 KB) [0.1.1] (0.5 KB)
log_uptime is an uptime logger for linux (surprise! ;-) It will log the current uptime each time when it's invoked. If the system has been shut down between two runs, log_uptime will detect that and log it accordingly. The package also contains a log parser printing the log in a human-readable format and making statistics.
Caution: in version 0.2, the log format has changed. See README for details.
Download: log_uptime-0.2.tar.gz (2.9 KB, Last change: 2009-02-26)
Older versions: [0.1.1] (3.2 KB) [0.1] (3.2 KB)
Converts an XBEL bookmark file (as used by e. g. Konqueror) to the bookmark file format used by Opera. This is done a little bit more fancy, as the import filter of Opera does, as the result will be in the right order and including separators :-)
Download: xbel2opera-0.1.gz (2.2 KB, Last change: 2008-09-19)