Commit d3c6e299 authored by Nico Schottelius's avatar Nico Schottelius

Initial commit

parents
#!/bin/bash
# @Descripton:
# Move blender output files to your
# extension
# @Author: Nico Schottelius <nico@schottelius.(org|net)>
# @Date: April 2., 1999
# @Copying: See GNU GENERAL PUBLIC LICENSE ; Version 2, June 1991
if [ -z $1 ]
then echo "Please choose extension"
echo "Usage: $0 <extension>"
else
for i in [0-9][0-9][0-9][0-9]
do mv $i $i.$1
done
fi
#!/bin/bash
fdformat /dev/fd0u1440
mformat -s 16 -t 80 -h 2 a:
mdir a:
#!/bin/sh
xterm -ls -title "F1rSt X-T3Rm" &
xterm -ls -title "-13erM" &
#!/bin/sh
xterm -ls -title "--irst 0n3xx" &
xterm -ls -title ">>> 2nd <<<" &
xterm -ls -title "www.3rd.xterm" &
#!/bin/sh
xterm -ls -title "Welcome to the world of darkness -#1#-" &
xterm -ls -title "Welcome to the cinema -#2#-" &
xterm -ls -title "Welcome to the paradis on earth -#3#-" &
xterm -ls -title "Welcome to the Universe -#4#-" &
#!/bin/bash
fdformat /dev/fd0h720
mformat -s 8 -t 80 -h 2 a:
mdir a:
#!/bin/bash
#
# This file echoes a bunch of colour codes to the terminal to demonstrate
# what's available. Each line is one colour on black and gray
# backgrounds, with the code in the middle. Verified to work on white,
# black, and green BGs (2 Dec 98).
#
echo " On Light Gray: On Black:"
echo -e "\033[47m\033[1;37m White \033[0m\
1;37m \
\033[40m\033[1;37m White \033[0m"
echo -e "\033[47m\033[37m Light Gray \033[0m\
37m \
\033[40m\033[37m Light Gray \033[0m"
echo -e "\033[47m\033[1;30m Gray \033[0m\
1;30m \
\033[40m\033[1;30m Gray \033[0m"
echo -e "\033[47m\033[30m Black \033[0m\
30m \
\033[40m\033[30m Black \033[0m"
echo -e "\033[47m\033[31m Red \033[0m\
31m \
\033[40m\033[31m Red \033[0m"
echo -e "\033[47m\033[1;31m Light Red \033[0m\
1;31m \
\033[40m\033[1;31m Light Red \033[0m"
echo -e "\033[47m\033[32m Green \033[0m\
32m \
\033[40m\033[32m Green \033[0m"
echo -e "\033[47m\033[1;32m Light Green \033[0m\
1;32m \
\033[40m\033[1;32m Light Green \033[0m"
echo -e "\033[47m\033[33m Brown \033[0m\
33m \
\033[40m\033[33m Brown \033[0m"
echo -e "\033[47m\033[1;33m Yellow \033[0m\
1;33m \
\033[40m\033[1;33m Yellow \033[0m"
echo -e "\033[47m\033[34m Blue \033[0m\
34m \
\033[40m\033[34m Blue \033[0m"
echo -e "\033[47m\033[1;34m Light Blue \033[0m\
1;34m \
\033[40m\033[1;34m Light Blue \033[0m"
echo -e "\033[47m\033[35m Purple \033[0m\
35m \
\033[40m\033[35m Purple \033[0m"
echo -e "\033[47m\033[1;35m Pink \033[0m\
1;35m \
\033[40m\033[1;35m Pink \033[0m"
echo -e "\033[47m\033[36m Cyan \033[0m\
36m \
\033[40m\033[36m Cyan \033[0m"
echo -e "\033[47m\033[1;36m Light Cyan \033[0m\
1;36m \
\033[40m\033[1;36m Light Cyan \033[0m"
echo "--------------------------------------------"
echo -e "\033[33m\033[1;39m Light Cyan \033[0m 1;36m \033[40m\033[1;36m Light Cyan \033[0m"
#!/bin/bash
#
# This file echoes a bunch of colour codes to the terminal to demonstrate
# what's available. Each line is one colour on black and gray
# backgrounds, with the code in the middle. Verified to work on white,
# black, and green BGs (2 Dec 98).
#
echo " On Light Gray: On Black:"
echo -e "\033[47m\033[1;37m White \033[0m\
1;37m \
\033[40m\033[1;37m White \033[0m"
echo -e "\033[47m\033[37m Light Gray \033[0m\
37m \
\033[40m\033[37m Light Gray \033[0m"
echo -e "\033[47m\033[1;30m Gray \033[0m\
1;30m \
\033[40m\033[1;30m Gray \033[0m"
echo -e "\033[47m\033[30m Black \033[0m\
30m \
\033[40m\033[30m Black \033[0m"
echo -e "\033[47m\033[31m Red \033[0m\
31m \
\033[40m\033[31m Red \033[0m"
echo -e "\033[47m\033[1;31m Light Red \033[0m\
1;31m \
\033[40m\033[1;31m Light Red \033[0m"
echo -e "\033[47m\033[32m Green \033[0m\
32m \
\033[40m\033[32m Green \033[0m"
echo -e "\033[47m\033[1;32m Light Green \033[0m\
1;32m \
\033[40m\033[1;32m Light Green \033[0m"
echo -e "\033[47m\033[33m Brown \033[0m\
33m \
\033[40m\033[33m Brown \033[0m"
echo -e "\033[47m\033[1;33m Yellow \033[0m\
1;33m \
\033[40m\033[1;33m Yellow \033[0m"
echo -e "\033[47m\033[34m Blue \033[0m\
34m \
\033[40m\033[34m Blue \033[0m"
echo -e "\033[47m\033[1;34m Light Blue \033[0m\
1;34m \
\033[40m\033[1;34m Light Blue \033[0m"
echo -e "\033[47m\033[35m Purple \033[0m\
35m \
\033[40m\033[35m Purple \033[0m"
echo -e "\033[47m\033[1;35m Pink \033[0m\
1;35m \
\033[40m\033[1;35m Pink \033[0m"
echo -e "\033[47m\033[36m Cyan \033[0m\
36m \
\033[40m\033[36m Cyan \033[0m"
echo -e "\033[47m\033[1;36m Light Cyan \033[0m\
1;36m \
\033[40m\033[1;36m Light Cyan \033[0m"
echo "--------------------------------------------"
echo -e "\033[33m\033[1;39m Light Cyan \033[0m 1;36m \033[40m\033[1;36m Light Cyan \033[0m"
#!/bin/sh
read -p "Datum: " mydate
for a in $*
do
cat $a | sed "s/DATUM/${mydate}/g" > $a.tmp
mv $a.tmp $a
done
#!/bin/sh
read -p "Beschreibung: " mydesc
for a in $*
do
cat $a | sed "s/DESCRIPTION/${mydesc}/g" > $a.tmp
mv $a.tmp $a
done
#!/bin/sh
read -p "Identifikation: " myident
for a in $*
do
cat $a | sed "s/IDENT/${myident}/g" > $a.tmp
mv $a.tmp $a
done
#!/bin/sh
read -p "Keywords: " mykey
for a in $*
do
cat $a | sed "s/KEYWORDS/${mykey}/g" > $a.tmp
mv $a.tmp $a
done
#!/bin/sh
read -p "Rechte gehoeren: " myrechte
for a in $*
do
cat $a | sed "s/FIRMA/${myrechte}/g" > $a.tmp
mv $a.tmp $a
done
#!/bin/sh
read -p "Titel: " mytitle
for a in $*
do
cat $a | sed "s/THE_TITLE/${mytitle}/g" > $a.tmp
mv $a.tmp $a
done
for a in `seq 1 9`; do
for b in `seq 1 9`; do
for c in `seq 1 9`; do
for d in `seq 1 9`; do
for e in `seq 1 9`; do
for f in `seq 1 9`; do
mkdir -p $a/$b/$c/$d/$e/$f
mv -f \$Inode$a$b$c$d$e$f* $a/$b/$c/$d/$e/$f 2>/dev/null
done
done
done
done
done
done
#!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: 22-Aug-2003
# Last Modified: 2004-08-22
# Add mutt hooks and procmail entries at the same time
# Please use a 'DEFAULT' entry in procmailrc to make it work
#
PROCMAILRC=~/.procmailrc
MUTT_MAILBOXES=~/.mutt/mailboxes
MUTT_HEADERS=~/.mutt/hooks
PROCMAIL_MATCH='(^TO|^Delivered-To: )' # email after that
echo generating new mutt and new procmailentry
read -p "To Email: " email
read -p "To which folder: " folder
read -p "Your name: " name
read -p "Comment: " comment
echo "Email=$email"
echo "Name=$name"
echo "Comment=$comment"
echo "Folder=$folder"
read -p "Enter to continue" bla
# procmail: insert at first line
cat << EOF >> $PROCMAILRC
### autogenerated by add-mutt+procmail-autosort ($comment)
:0
* $PROCMAIL_MATCH$email
$folder/
EOF
# mutt/checking
cat << EOF >> $MUTT_MAILBOXES
### for $email / $name / $comment
mailboxes +$folder/
EOF
# mutt/headers
cat << EOF >> $MUTT_HEADERS
# $comment
folder-hook $folder 'my_hdr From: $name <$email>'
folder-hook $folder 'set from="$email"'
EOF
# folder; {new,cur,tmp} does not work in ash
mkdir -p ~/Maildir/$folder/new
mkdir -p ~/Maildir/$folder/cur
mkdir -p ~/Maildir/$folder/tmp
#!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: 22-Aug-2003
# Last Modified: 29-Apr-2004
# Add mutt hooks and procmail entries at the same time
# Please use a 'DEFAULT' entry in procmailrc to make it work
#
PROCMAILRC=~/.procmailrc
MUTT_MAILBOXES=~/.mutt/mailboxes
MUTT_HEADERS=~/.mutt/hooks
#PROCMAIL_MATCH="^TO" # email after that
PROCMAIL_MATCH="^Delivered-To: " # email after that
echo generating new mutt and new procmailentry
read -p "To Email: " email
read -p "To which folder: " folder
read -p "Your name: " name
read -p "Comment: " comment
read -p "Email=$email, name=$name, comment=$comment and folder=$folder. Enter to continue" bla
# procmail: insert at first line
cat << EOF >> $PROCMAILRC
### autogenerated by add-mutt+procmail-autosort ($comment)
:0
* $PROCMAIL_MATCH$email
$folder/
EOF
# mutt/checking
cat << EOF >> $MUTT_MAILBOXES
### for $email / $name / $comment
mailboxes +$folder/
EOF
# mutt/headers
cat << EOF >> $MUTT_HEADERS
# $comment
folder-hook $folder 'my_hdr From: $name <$email>'
folder-hook $folder 'set from="$email"'
EOF
# folder; {new,cur,tmp} does not work in ash
mkdir -p ~/Maildir/$folder/new
mkdir -p ~/Maildir/$folder/cur
mkdir -p ~/Maildir/$folder/tmp
#!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: 22-Aug-2003
# Last Modified: 17-Jan-2004
# Now adding procmail entries at the beginning of the file
#
PROCMAILRC=~/.procmailrc
MUTT_MAILBOXES=~/.mutt/mailboxes
MUTT_HEADERS=~/.mutt/hooks
echo generating new mutt and new procmailentry
read -p "To Email: " email
read -p "To which folder: " folder
read -p "your name: " name
read -p "Email=$email, name=$name and folder=$folder. Enter to continue" bla
# procmail: insert at first line
cat << EOF >> $PROCMAILRC
### autogenerated by add-mutt+procmail-autosort
:0
* ^TO$email
$folder/
EOF
# mutt/checking
cat << EOF >> $MUTT_MAILBOXES
### for $email / $name
mailboxes +$folder/
EOF
# mutt/headers
cat << EOF >> $MUTT_HEADERS
folder-hook $folder 'my_hdr From: $name <$email>'
folder-hook $folder 'set from="$email"'
EOF
# folder
mkdir -p ~/Maildir/$folder/{new,cur,tmp}
FORWARD=/etc/bind/tele.wdt.intern.hosts
REVERSE=/etc/bind/10.10.1.rev
read -p "Name: " name
read -p "Telefonnummer: " tele
read -p "Eintragen (strg+c zum abbrechen) "
if [ "$tele" -le 255 ]; then
echo "$name in A 10.10.1.$tele" >> $FORWARD
echo "$tele in ptr $name.tele.wdt.intern." >> $REVERSE
else
echo "$name bekommt keinen A eintrag, da zu grosse nummer"
fi
echo "$name in TXT \"$tele\"" >> $FORWARD
killall -HUP named
if [ $# -ne 2 ]; then
echo noe. $0 name telefon
exit 1
fi
FORWARD=/etc/bind/tele.wdt.intern.hosts
REVERSE=/etc/bind/10.10.1.rev
read -p "Name: " name
read -p "Telefonnummer: " tele
read -p "Eintragen (strg+c zum abbrechen) "
if [ "$tele" -le 255 ]; then
echo "$name in A 10.10.1.$tele" >> $FORWARD
echo "$tele in ptr $name.tele.wdt.intern." >> $REVERSE
else
echo "$name bekommt keinen A eintrag, da zu grosse nummer"
fi
echo "$name in TXT \"$tele\"" >> $FORWARD
killall -HUP named
# Date: 15th of March 2k+1
# Last Changed: 24th of February 2k+4
# Author: Nico Schottelius <Nico AT Schottelius DOT Org>
# Description: This script searches for the following strings
# and will substitute them with the right German Characters
#
# _ae_ =
# _ue_ =
# _oe_ =
# _Ae_ =
# _Oe_ =
# _Ue_ =
# _sz_ = (not _ss_ like it was earlier)
#
if [ $# -lt 1 ]; then
echo `basename $0`': file(s)'
echo 'Hey, hey guy, what to convert ?'
exit 1
fi
for mfile in $@; do
if [ ! -f "$mfile" ]; then
echo "Keine Datei namens $mfile gefunden. Skip."
break
fi
# something other programs do not use
G_STR=".`date +%s%M%U`-`basename $0`-`basename $mfile`-$$"
echo "Using $G_STR to convert $mfile ..."
cat "$mfile" | sed -e 's/_ae_//g' -e 's/_ue_//g' -e 's/_oe_//g' \
-e 's/_Ae_//g' -e 's/_Ue_//g' -e 's/_Oe_//g' -e 's/_sz_//g' > "$G_STR"
if [ $? = 0 ]; then
mv "$G_STR" "$mfile"
else
echo "Replacing failed, don't replace original."
fi
done
# Date: 15th of March 2k+1
# Last Changed: 11th of January 2k+4
# Author: Nico Schottelius <Nico AT Schottelius DOT Org>
# Description: This script searches for the following strings
# and will substitute them with the right German Characters
#
# _ae_ =
# _ue_ =
# _oe_ =
# _Ae_ =
# _Oe_ =
# _Ue_ =
# _ss_ =
#
if [ $# -lt 1 ]; then
echo `basename $0`': file(s)'
echo 'Hey, hey guy, what to convert ?'
exit 1
fi
for mfile in $@; do
if [ ! -f "$mfile" ]; then
echo "Keine Datei namens $mfile gefunden. Skip."
break
fi
cp -f "$mfile" "$mfile".ae_parser-orig
# something other programs do not use
G_STR=".`date +%s%M%U`-`basename $0`-`basename $mfile`-$$"
cat $mfile | sed 's/_ae_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ue_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_oe_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ae_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ue_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Oe_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ss_//g' > $G_STR
mv $G_STR $mfile
done
# Date: 15th of March 2k+1
# Last Changed: 17th of June 2k+1
# Author: Nico Schottelius <Nico AT Schottelius DOT Org>
# Description: This script searches for the following strings
# and will substitute them with the right German Characters
#
# _ae_ =
# _ue_ =
# _oe_ =
# _Ae_ =
# _Oe_ =
# _Ue_ =
# _ss_ =
#
if [ $# -lt 1 ]; then
echo `basename $0`': file(s)'
echo 'Hey, hey guy, what to convert ?'
exit 1
fi
for mfile in $@; do
# something other programs do not use
G_STR=".`date +%s%M%U`-`basename $0`-`basename $mfile`"
cat $mfile | sed 's/_ae_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ue_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_oe_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ae_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Ue_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_Oe_//g' > $G_STR
mv $G_STR $mfile
cat $mfile | sed 's/_ss_//g' > $G_STR
mv $G_STR $mfile
done
# Date: 15th of March 2k+1
# Last Changed: 24th of February 2k+4