- background-image.py
#!/usr/bin/env python
#Choose a image with random generator
#and convert it to ppm
#This can be used for KDE to have a different
#background image every N minutes.
#In KDE Config: /.../background-image.py --size %xx%y %f
- backup-sonne.sh
#!/bin/bash
# This scripts backups all but temporary data on an other harddrive
# If one harddrive fails, I still can boot from the other.
# It uses rsync, which means only the changes since the last backup
# are copied.
- beep-forever.sh
#!/bin/bash
#Beep forever
#Handy if you have long compiliations and you want to know when they
#are done:
#Example: make >make.out 2>&1 ; beep-forever.sh
#or if long running process is already running:
# CTRL-Z (interrupt current process)
# fg; beep-forever.sh
- buchstabenraetzel.py
#!/usr/bin/python
# (c) August 2001 Thomas Guettler http://www.thomas-guettler.de
# This is script is in the public domain
# Feedback Welcome
#
# Try to resolve a character quiz with brute force
#
# TODO: Falls im Raetzel Buchstaben doppelt vorkommen werden
# die Lösungsvorschläge doppelt angegeben.
# Ignorieren von Woertern mit drei Konsonanten hintereinander
# aussser "sch" oder "ch?" (schwimmmeister ...)
- check-internal-links.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Checks if all internal links in a html file (<a href="#foo">)
# can be resolved. This is not checked by tidy.
# (c) Thomas Güttler, June 2003
# Copying, Changing allowed
# Feedback welcome thomas@thomas-guettler.de
- create-calendar.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# This script is free software.
# (c) 2004 Thomas Guettler
- create-calendar-small.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# This script is free software.
# (c) 2004 Thomas Guettler
- create-email-whitelist.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#
# Finde anhand der Daten in ~/Maildir, die
# vertrauenswürdigen Emailadressen.
- create-memory-cards.py
#!/usr/bin/env python
#(c) May 2002 Thomas Guettler http://www.thomas-guettler.de
#This Script is in the public domain
#Feedback welcome
#
#This script creates a pdf file with pdflatex
#for creating a memory-game (card-game).
#Put images with extension .jpg in a directory called images
#For each image create .txt file (foo.jpg --> foo.txt) containing
#a short description.
#The script creates a memory-card for each image.
#Print it twice, cut the cards, stick them on thick paper.
#A nice present for you grandmother
#Bugs:
# +box is 6.5 x 6cm instead of 6x6
- csv2html.py
#!/usr/bin/env python
#(c) Thomas Guettler www.thomas-guettler.de
#This script is in the public domain
#
#Make a simple html page of a csv (Comma Seperated Values) file
- csv2wiki.py
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
# (c) Thomas Guettler http://www.thomas-guettler.de/
# This script is in the public domain
# Convert a csv file to Wiki Syntax (http://moinmoin.wikiwikiweb.de/HelpOnTables)
- debian-cd2mirror.sh
#!/bin/sh
#(C) July 2001 Thomas Guettler http://www.thomas-guettler.de
#Feedback is Welcome!
#This script is in the public domain
#
#Create a debian mirror from a CD set
#It only handels binary packages
#
- delete-backup-files.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# (c) 2004 Thomas Güttler
# This is open source software
- delete-spam-on-pop3-server.py
#!/usr/bin/env python
# Delete delivery failure email in my pop3 mailbox
# which where created because some spammer used my
# domain as from address.
# After this script was run the catch all adress (*@thomas-guettler.de)
# was deleted.
- DictTemplate.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#
# Very simple templating for HTML
#
# (FLAGS:NAME)
#
# FLAGS:
# i: ignore if empty
# e: HTML escape < > & "
# class=... --> <span class="...">value</span>
# NAME:
# obj.attr.key ... Example: (:os.environ.PATH)
#
# Usage:
# from DictTemplate import dt
# foo="foo&bar"
# dt("""
# Path = (:os.environ.PATH)
# foo = (e:foo)
# """)
#
# The local namespace is available via (magick) introspection
- dos2unix.pl
#!/usr/bin/perl -w
# (c) January 2000 Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
# Feedback welcome
#
# Usage: cat broken_dos_file.txt | dos2unix.pl > new_file.txt
#
# Removes all \r\n to \n
# I was able to restore a 15 MByte file which was downloaded in
# ascii mode. But the restoring of binary files is not save since
# \r\n is valid in binary files.
- du.py
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
# Calculate the diskusage by counting the filesizes.
# The GNU du command can not read the filenames from stdin.
# That's why I wrote this in Python.
# (c) March 2007 Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
- find-unused-files.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Try to find all files in a debian system, which are not
# used. This script is not finished.
- firewall.sh
#!/bin/sh
# Meine Firewall-Regeln
# Verbindungsaufbau nur vom LAN ins Internet zulassen.
# Nur Antwortpakete aus dem Internet akzeptieren.
# Siehe auch Netfilter-Howto:
# http://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO.html
- home2tgz.sh
#/bin/sh
# (c) July 2001 Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
# Feedback is welcome
#
# This script makes a tgz of the most important files of
# my Home-Directory
- incrisync
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Incremental Backup with Rsync
# If you used "rsync .... localdir" before,
# just call "incrisync initold" once and then
# incrisync rsync .... localdir
# This will create incremental backups using hardlinks
# under localdir/days, localdir/months and localdir/years
#
# (c) March 2007 Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
# Use at your own risk
- inkscape-export-with-border.py
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
- kill-regexp.pl
#!/usr/bin/perl -w
# (c) 2001 Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
# Feedback welcome
#
# Kill processes matching a regular expression
# Simple alternative to pkill of package procps
- latex2infinity.sh
#!/bin/sh
# (c) Thomas Guettler March 2001 http://www.thomas-guettler.de
# This script is in the public domain
# Feedback welcome
#
# This fourliner is a WYSIWYG frontend for latex!
# I use this to update foo.dvi as soon foo.tex changes
# xdvi is clever and reloads the file as soon it gets changed.
# Beeps if something is wrong.
- mtime-find.sh
#!/bin/bash
# Display the mtime and the pathname recursively.
# Example: mtime-find.sh [dirs ...] | sort
#find $@ -printf '%TY-%Tm-%Td+%TH:%TM:%TS %p\n'
- my-html-tidy.sh
#!/bin/bash
#
# Kleiner Wrapper für tidy,
# unwichtige Warnungen werden ignoriert
#
- newmail.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Search my maildir directory an list the
# count of new mails (mtime of each file/mail
# gets read)
- number-html-headings.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#
# Number Headings of a HTML Page
# ==============================
#
# number-html-headings.py in_file.html out_file.html
#
# Example:
# <h1>First</h1>
# <h2>Sub-Item</h2>
# <h2>Sub-Item</h2>
#
# <h1>Second</h1>
#
# Result:
#
# <h1>1 First</h1>
# <h2>1.1 Sub-Item</h2>
# <h2>1.2 Sub-Item</h2>
#
# <h1>2 Second</h1>
#
# A table of content is inserted if there is "<-- TOC -->" in the
# html source.
#
# (c) September 2002 Thomas Guettler <guettli[A]thomas-guettler.de>
#
# This script is in the public domain
#
# Feedback welcome
#
# TODO: Use ElementTree
- ooo2any.py
#!/usr/bin/env python
# Old: !/optlocal/OpenOffice.org/program/python
# (c) 2003-2006 Thomas Guettler
# This script is in the public domain
# Batch convert office documents with openoffice.org
- postfix-reject-stat.py
#!/usr/bin/python
# Small statistic, how many mails where rejected by postfix,
# and why (DNSBL, ...)
- ps2-2pages.sh
#!/bin/sh
#Oneliner, uses pstops to put two pages on one
- reprec.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#(C) 2002-2008 Thomas Guettler http://www.thomas-guettler.de
#Feedback is Welcome! (Even hints to typos)
#This script is in the public domain
#
#Recursively replace strings in files
#
# Other Solution: rpl http://www.laffeycomputer.com/rpl.html
#
# Thanks to Reinhard Wobst for some hints.
- rgbtxt2html.py
#!/usr/bin/env python
#Convert color to name mapping from /usr/lib/X11/rgb.txt
#to a HTML page
- rotate-avis.py
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# Todo:
# - markrieren der AVIs die gut sind (nicht nochmal anzeigen)
- scan2pdf.sh
#!/bin/bash
# -*- coding: iso-8859-1 -*-
# (c) 2009 Thomas Guettler http://www.thomas-guettler.de/
# This script is in the public domain
# Scan images with sane and create a small, color reduced pdf.
- scripts2html.py
#!/usr/bin/env python
#Create a HTML Page of all my scripts
- settitle.sh
#!/bin/bash
# (c) Thomas Guettler http://www.thomas-guettler.de
# This script is in the public domain
# Feedback welcome
#
# set the title of an xterm
# (found in an FreeBSD maillinglist)
# It is usefull in conjunction with window managers which show
# the title of a xterm if you press ALT+TAB (e.g. enlightenment)
#
# There is also a programm called "xtermset"
# which lets you set much more, but that's not
# always available.
#
# Usage: settitle.sh "my new xterm title"
#
- signalstat.py
#!/usr/bin/env python
# (c) December 2007 Thomas Guettler http://www.thomas-guettler.de/
# Read signal masks from /proc/PID/stat an print it in human readable format
# I guess this script will run only on linux.
# This script is in the public domain
- sync-pilot.sh
#!/bin/sh
#(c) September 2001 Thomas Guettler http://www.thomas-guettler.de
#This script is in the public domain
#Feedback welcome
#
#Makes a backup of my palm pilot.
- tcptraceroute.py
#!/usr/bin/env python
# (c) December 2007 Thomas Guettler http://www.thomas-guettler.de
# tcptraceroute.py
# This script is in the public domain
- traceroute.sh
#!/bin/sh
# Simple ICMP traceroute implemented with the ping command.
# (c) November 2007 Thomas Guettler
# http://www.thomas-guettler.de/
# This script is in the public domain
- unison-wrapper.sh
#!/bin/bash
#Wrapper for unison (filesystem syncronizer)
#Edits unison's config file depending on which host you are
#You can use it to synchronize your data between two machiness (Laptop - PC)
#On both machines you only need to type "unison-wrapper.sh"
#
# This script is unsupported. My girfriend has my old PC and I have a new
# laptop.