more cleanups
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
be74aa20a1
commit
501aa0eff8
10 changed files with 0 additions and 0 deletions
1
old/audio-cd-dir.commandline
Normal file
1
old/audio-cd-dir.commandline
Normal file
|
|
@ -0,0 +1 @@
|
|||
find ~/pub/hobby/tanzen/rnr/octopus_cup_2004/cd3 -type f -exec ../link.sh {} \;
|
||||
8
old/audio-cd-dir.link.sh
Executable file
8
old/audio-cd-dir.link.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
NUM=`cat COUNT`
|
||||
NUM=$(($NUM+1))
|
||||
|
||||
ln -s "$1" audio_${NUM}.wav
|
||||
|
||||
echo $NUM > COUNT
|
||||
7
old/audioskripte/berechtigungen.sh
Executable file
7
old/audioskripte/berechtigungen.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
DIR=$(dirname $0)
|
||||
|
||||
chown -R :mpd "$DIR"
|
||||
find "$DIR" -type d -exec chmod g=rx {} \;
|
||||
find "$DIR" -type f -exec chmod g=r {} \;
|
||||
17
old/audioskripte/hierhertaren.sh
Executable file
17
old/audioskripte/hierhertaren.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
#set -x
|
||||
|
||||
#BASEDIR=$(dirname $0)
|
||||
BASEDIR=$(pwd -P)
|
||||
SDIR=$1
|
||||
|
||||
set -e
|
||||
cd "$SDIR"
|
||||
for file in *; do
|
||||
SUBDIR=$(echo $file | sed 's;.*/\(.*\);\1;' | sed 's/^\(.\).*/\1/' | tr 'A-Z' 'a-z')
|
||||
DDIR="$BASEDIR/$SUBDIR"
|
||||
echo "Creating $DDIR"
|
||||
mkdir -p "$DDIR"
|
||||
tar c "$file" | ( cd "$DDIR"; tar xv )
|
||||
done
|
||||
15
old/audioskripte/hierherverschieben.sh
Executable file
15
old/audioskripte/hierherverschieben.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
#set -x
|
||||
|
||||
BASEDIR=$(dirname $0)
|
||||
FILE=$1
|
||||
|
||||
SUBDIR=$(echo $FILE | sed 's;.*/\(.*\);\1;' | sed 's/^\(.\).*/\1/' | tr 'A-Z' 'a-z')
|
||||
|
||||
DDIR="$BASEDIR/$SUBDIR"
|
||||
set -e
|
||||
echo "Creating $DDIR"
|
||||
mkdir -p "$DDIR"
|
||||
echo "Moving $FILE to $DDIR"
|
||||
mv "$FILE" "$DDIR"
|
||||
17
old/backup-smaller-dirs
Executable file
17
old/backup-smaller-dirs
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
i=0
|
||||
dir=0
|
||||
|
||||
max_files_per_dir=100
|
||||
|
||||
mkdir -p $dir
|
||||
|
||||
for a in $@; do
|
||||
if [ $i = $max_files_per_dir ]; then
|
||||
((dir+=1))
|
||||
mkdir -p $dir
|
||||
i=0
|
||||
fi
|
||||
|
||||
mv -i "$a" $dir
|
||||
((i+=1))
|
||||
done
|
||||
3
old/lp
Executable file
3
old/lp
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat > ~/mozilla.ps
|
||||
6
old/myX
Executable file
6
old/myX
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
X &
|
||||
export DISPLAY=localhost:0 # use tcp/ip and not unix domain!
|
||||
sleep 2;
|
||||
blackbox
|
||||
2
old/notizen
Executable file
2
old/notizen
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#/bin/sh
|
||||
vi ~/.N0t.zen
|
||||
3
old/stplay
Executable file
3
old/stplay
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
export DISPLAY=:0.0
|
||||
/usr/X11R6/bin/xmms -p
|
||||
Loading…
Add table
Add a link
Reference in a new issue