Nico Schottelius
(linux|unix).schottelius.org
Here are some scripts I wrote and use. Copying is allowed under the terms of the GPL 2.0 or higher, if not noted otherwise in the scripts.
0toX
ae_parser
add-mutt+procmail-autosort
axfrs
bg-image.dellist
db-dump+git.sh
generate_mutt_mailboxes
generate_script_header
get-latest-kernel
kopiere_ssh_key
latest-kernel
mini-mua
mk-screenshot
mmv
monotone-snapshotting
ns_ldif_to_mutt_alias
oldterm
ps-insert.sh
securemail
show_calendar
sort-backup.dothejob
suche_vi_files
update-gitweb.sh
update-git+cogito.sh
wecken.sh
Move blender output files to your extension: 00000 to 00000.bmp
replaces _ae_ with ä and so on (thought for german writers with non-german (e.g. qwerty/dvorak) keyboard layout)
Adds an mutt (mailbox checking and folder-hook) and procmail entry at the
same time.
Helps to easily manage many different mail addresses without the need
to type very much.
transfer a dns-zone with a axfr from every authorized dns-server to you
generates a random background; use `find imagedir > ~/.bgimages" and then run this script
Dump MySQL database and commit it to git.
generate_mutt_mailboxes > .mutt/mailboxes
generate a header for scripts from ~/.script-template
Retrieve the latest Linux kernel available.
show latest available Linux 2.6 kernel; usable as cron script; generates mail
Copy your public ssh-key to another host. The used 'mkdir -p' is possibly GNU or Linux specific.
use mini-mua if you need something like mailx with gpg and blind copy to your save folder
Create a screenshot in PNG-format from the whole desktop. Requires: x11 and netpbm
Move *.a to *.b, use `mmv a b`
Extract snapshot from a monotone database. Can be used by cron and deletes old version from yesterday
convert netscapes addressbook to mutt's alias file
xterm trimmed to be "old" (a little bit like old terminals)
ps-insert.sh inserts a page after each page in the first document, creating a new document: A document with 5 pages named "letter.ps" and a document "spam.ps" with one page will result in a 10 pages big document after executing ps-insert.sh letter.ps spam.ps. Requires: psselect, gs and awk.
tunnel your pop3 connections to a secure host
This is a mini-calendar. The data of it is stored in a directory within
as many files as you like. You have to edit the script to adjust the
directory path.
The filename also describes the category. Entries
beginning with "TO.DO" will always been shown.
You can even use it in your .profile:
show_calendar `date +%d.%m` --> results to scice% show_calendar 05.09 cLinux:TO.DO: doku: package/ cLinux:TO.DO: scripte kopieren aus ~root/scripts cLinux:TO.DO: mini installer -> cinstall-chroot otherfile:05.09: Test entry
You can also use the format DD.MM.YYYY, simply call
show_calendar `date +%d.%m.%Y`.
I personally use
"show_calendar `date +%d.%m` `date +%d.%m.%Y`" in my .profile.
You have a backup directory. And most of the files are unsorted and the
backup even contains binaries.
This script sorts out some types like audio,video, word documents...
nico@scice:~/backup$ sort-backup ~/backup/
nico@scice:~/backup$ cat /home/user/nico/bin/sort-backup
if [ -z "$1" ]; then
echo "searchdir, please"
exit 1
fi
find "$1" -exec sort-backup.dothejob ~/sorted-backup {} \;
search for running/dead vim sessions (.$file.swp) in selected directories
Transfer the old configurations from gitweb to a new gitweb. How to use:
curl http://www.kernel.org/git/?p=git/gitweb.git;... > gitweb-new.cgi ./update-gitweb.sh oldgitweb.cgi gitweb-new.cgi
Then gitweb-new.cgi will have the configuration of your old gitweb.cgi
Update git and cogito with git and cogito ;-)
Very simple wacke-up script using xmms and xmms-shell