commit 1aa14e5344af3eaebd281e241d403c220197f6c9 Author: stubbfel Date: Sun Jun 30 21:56:23 2013 +0200 init diff --git a/btuproxy.sh b/btuproxy.sh new file mode 100755 index 0000000..5ad0db7 --- /dev/null +++ b/btuproxy.sh @@ -0,0 +1 @@ +/home/user/bin/sshproxy.sh localhost:4711 stubbfel@tweety.informatik.tu-cottbus.de diff --git a/deleteDownload.sh b/deleteDownload.sh new file mode 100755 index 0000000..01c0544 --- /dev/null +++ b/deleteDownload.sh @@ -0,0 +1,512 @@ +[?1049h[?12;25h[?1h="/tmp/crontab.gBgWSO" 0 lines, 0 characters ~ +~ +~ +~ +~ +~ +~"/tmp/crontab.gBgWSO" 0 lines, 0 characters [?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5leai:x +[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?5h[?5l[?1049h[?12l[?25h[?1l> +Input read error +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +: +At EOF +:[?1049l \ No newline at end of file diff --git a/gnuplottemplate.sh b/gnuplottemplate.sh new file mode 100755 index 0000000..661b60d --- /dev/null +++ b/gnuplottemplate.sh @@ -0,0 +1,3 @@ +set terminal svg; +set out "test.svg"; +plot [0:5] 16-x+(x**2-x)/2; diff --git a/iitproxy.sh b/iitproxy.sh new file mode 100755 index 0000000..6c0de62 --- /dev/null +++ b/iitproxy.sh @@ -0,0 +1 @@ +/home/user/bin/sshproxy.sh localhost:4711 git@141.43.76.143 diff --git a/listAllTags.sh b/listAllTags.sh new file mode 100755 index 0000000..301b7eb --- /dev/null +++ b/listAllTags.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +find /home/user/Dokumente/masterarbeit/masterarbeit/ -name "*.txt" -exec grep -Hn "\[[a-zA-Z]*\]" {} \; > /home/user/Dokumente/masterarbeit/masterarbeit/tags + diff --git a/listTag.sh b/listTag.sh new file mode 100755 index 0000000..f2ca5d4 --- /dev/null +++ b/listTag.sh @@ -0,0 +1,7 @@ +#!/bin/bash +TAG=$1; +PATH=$2; +TYPE=$3 +/usr/bin/find $PATH -name "*.$TYPE" -exec /usr/bin/grep -F "[$TAG]" {} \; + + diff --git a/listToRead.sh b/listToRead.sh new file mode 100755 index 0000000..17f9923 --- /dev/null +++ b/listToRead.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sh /home/user/Dokumente/masterarbeit/masterarbeit/scripts/listTag.sh ToRead /home/user/Dokumente/masterarbeit/masterarbeit/ txt > /home/user/Dokumente/masterarbeit/masterarbeit/toDos/toRead; + diff --git a/makeMoverSight.sh b/makeMoverSight.sh new file mode 100755 index 0000000..7630d66 --- /dev/null +++ b/makeMoverSight.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh moversight 'export PATH=$PATH:$HOME/omnetpp-4.2.2/bin;cd /home/student/ubeeme/src/moversight;make all;' diff --git a/makecleanMoverSight.sh b/makecleanMoverSight.sh new file mode 100755 index 0000000..e134c7d --- /dev/null +++ b/makecleanMoverSight.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh moversight 'export PATH=$PATH:$HOME/omnetpp-4.2.2/bin;cd /home/student/ubeeme/src/moversight;make clean;' diff --git a/mkarchiso.sh b/mkarchiso.sh new file mode 100755 index 0000000..48d4a47 --- /dev/null +++ b/mkarchiso.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# usage: ./mkarchiso.sh ISO_IMAGE + +KEYMAP=/home/user/Downloads/neo.map.gz + +ISO=$1 + +mkdir -p /tmp/iso /tmp/ext +bsdtar xf $ISO -C /tmp/iso + +cd /tmp +unsquashfs -d sfs-i686 iso/arch/i686/root-image.fs.sfs +unsquashfs -d sfs-x86_64 iso/arch/x86_64/root-image.fs.sfs +#unsquashfs -d sfs-any iso/arch/any/usr-share.fs.sfs + +mount sfs-i686/root-image.fs ext +cp $KEYMAP ext/usr/share/kbd/keymaps/i386/qwerty/ +umount ext + +mount sfs-x86_64/root-image.fs ext +cp $KEYMAP ext/usr/share/kbd/keymaps/i386/qwerty/ +umount ext + +#mount sfs-any/usr-share.fs ext +#cp $KEYMAP ext/usr/share/kbd/keymaps/i386/qwerty/ +#umount ext + +mksquashfs sfs-i686/root-image.fs{,.sfs} -noappend -comp xz -no-progress +mksquashfs sfs-x86_64/root-image.fs{,.sfs} -noappend -comp xz -no-progress +#mksquashfs sfs-any/usr-share.fs{,.sfs} -noappend -comp xz -no-progress + +cp -f sfs-i686/root-image.fs.sfs iso/arch/i686/ +cp -f sfs-x86_64/root-image.fs.sfs iso/arch/x86_64/ +#cp -f sfs-any/usr-share.fs.sfs iso/arch/any/ + +cd /tmp/iso/arch +(sed -n '/^.*i686\/root-image\.fs\.sfs$/!p' checksum.i686.md5; md5sum i686/root-image.fs.sfs) > tmp +mv tmp checksum.i686.md5 +(sed -n '/^.*x86_64\/root-image\.fs\.sfs$/!p' checksum.x86_64.md5; md5sum x86_64/root-image.fs.sfs) > tmp +mv tmp checksum.x86_64.md5 + +cd /tmp +rm -rf sfs-* +genisoimage -l -r -J -V "ARCH_201305" -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o ~/arch-custom.iso /tmp/iso/ + diff --git a/pdt2txt.sh b/pdt2txt.sh new file mode 100755 index 0000000..527b18e --- /dev/null +++ b/pdt2txt.sh @@ -0,0 +1,12 @@ +#!/bin/bash +for FILE in "$@" +do + pdfseparate "$FILE" pdf2txtTemp-%d.pdf + for i in pdf2txtTemp-*.pdf + do + convert -monochrome -normalize -density 300 $i $i.png + tesseract $i.png $i -l eng+deu + done + cat pdf2txtTemp-*.pdf.txt > "$FILE".txt + rm pdf2txtTemp-*.* +done diff --git a/runSim.sh b/runSim.sh new file mode 100755 index 0000000..f9d9657 --- /dev/null +++ b/runSim.sh @@ -0,0 +1,3 @@ +#!/bin/bash +ssh -Y moversight "cd ubeeme;sh runSim.sh" + diff --git a/sshproxy.sh b/sshproxy.sh new file mode 100755 index 0000000..0233d35 --- /dev/null +++ b/sshproxy.sh @@ -0,0 +1,4 @@ +#!/bin/bash +PROXY=$1 +REMOTE=$2 +ssh -ND $PROXY $REMOTE -v diff --git a/startDevEnv.sh b/startDevEnv.sh new file mode 100755 index 0000000..2889417 --- /dev/null +++ b/startDevEnv.sh @@ -0,0 +1,7 @@ +#!/bin/bash +VBoxManage startvm "Moversight Student" --type headless +sshfs moversight:/home/student/ubeeme /home/stubbfel/Dokumente/masterarbeit/masterarbeit/src +gnome-terminal --working-directory=/home/stubbfel/Dokumente/masterarbeit/masterarbeit/scripts +netbeans & + + diff --git a/stopDevEnv.sh b/stopDevEnv.sh new file mode 100755 index 0000000..adee688 --- /dev/null +++ b/stopDevEnv.sh @@ -0,0 +1,4 @@ +#!/bin/bash +sudo umount /home/stubbfel/Dokumente/masterarbeit/masterarbeit/src +VBoxManage controlvm "Moversight Student" savestate; + diff --git a/toarchlamp.sh b/toarchlamp.sh new file mode 100755 index 0000000..15fcbcc --- /dev/null +++ b/toarchlamp.sh @@ -0,0 +1 @@ +ssh -g -L 4712:141.43.76.143:22 stubbfel@tweety.informatik.tu-cottbus.de diff --git a/tweetyproxy.sh b/tweetyproxy.sh new file mode 100755 index 0000000..5ad0db7 --- /dev/null +++ b/tweetyproxy.sh @@ -0,0 +1 @@ +/home/user/bin/sshproxy.sh localhost:4711 stubbfel@tweety.informatik.tu-cottbus.de