summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xalarm1
-rwxr-xr-xaptitude-safe-upgrade1
-rwxr-xr-xbackup1
-rwxr-xr-xbackup-2pac1
-rwxr-xr-xchromium1
-rwxr-xr-xchromium-real-user-agent1
-rwxr-xr-xcputemp1
-rwxr-xr-xddbench1
-rwxr-xr-xdup1
-rwxr-xr-xebay-template1
-rwxr-xr-xfind-by-keyword1
-rwxr-xr-xfn-f71
-rwxr-xr-xforward-ports1
-rwxr-xr-xgallery4
-rwxr-xr-xhddtemp1
-rwxr-xr-xjpegtran-rotate-lossless2
-rwxr-xr-xkillwifi1
-rwxr-xr-xmagnet3
-rwxr-xr-xmdstat1
-rwxr-xr-xmkinitcpio1
-rwxr-xr-xmount-crypt1
-rwxr-xr-xnet-profile1
-rwxr-xr-xofflineimap-switch1
-rwxr-xr-xpdflatexup1
-rwxr-xr-xremote-home1
-rwxr-xr-xtry-qlogin1
-rwxr-xr-xumount-crypt1
-rwxr-xr-xupdatepdf1
-rwxr-xr-xupgrade-kernel1
-rwxr-xr-xyt2mp31
30 files changed, 1 insertions, 35 deletions
diff --git a/alarm b/alarm
index 0aa0381..6264b0d 100755
--- a/alarm
+++ b/alarm
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-
u = ARGV[0][-1]
t = ARGV[0][0..-2].to_f
diff --git a/aptitude-safe-upgrade b/aptitude-safe-upgrade
index b5c57d9..ead0c8d 100755
--- a/aptitude-safe-upgrade
+++ b/aptitude-safe-upgrade
@@ -1,6 +1,5 @@
#!/bin/zsh
-
. /home/pks/bin/func.zsh
check_root
diff --git a/backup b/backup
index c8d6deb..835e428 100755
--- a/backup
+++ b/backup
@@ -1,5 +1,4 @@
#!/bin/zsh
-
sudo rsync -avv --exclude-from /home/pks/bin/backup.exclude --delete / /media/dock/b
diff --git a/backup-2pac b/backup-2pac
index f0d794e..43748fb 100755
--- a/backup-2pac
+++ b/backup-2pac
@@ -1,6 +1,5 @@
#!/bin/zsh
-
. /home/pks/bin/func.zsh
check_root
diff --git a/chromium b/chromium
index 39c6931..c0f60ff 100755
--- a/chromium
+++ b/chromium
@@ -1,5 +1,4 @@
#!/bin/zsh
-
/usr/bin/chromium-browser --no-referrers --user-agent="\"$(shuf -n 1 /home/pks/bin/user-agents)\"" ${1+"$@"} 2>/dev/null &
diff --git a/chromium-real-user-agent b/chromium-real-user-agent
index 756958f..3d93034 100755
--- a/chromium-real-user-agent
+++ b/chromium-real-user-agent
@@ -1,5 +1,4 @@
#!/bin/zsh
-
/usr/bin/chromium-browser --no-referrers ${1+"$@"} 2>/dev/null &
diff --git a/cputemp b/cputemp
index 965a087..775727c 100755
--- a/cputemp
+++ b/cputemp
@@ -1,6 +1,5 @@
#!/bin/zsh
-
MAX_TEMP=$1
for i in \
diff --git a/ddbench b/ddbench
index 8889392..0db9a46 100755
--- a/ddbench
+++ b/ddbench
@@ -1,6 +1,5 @@
#!/bin/sh
-
for i in {0..4}; do
echo "WRITE SPEED"
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
diff --git a/dup b/dup
index 3809c16..82e72bd 100755
--- a/dup
+++ b/dup
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-
dir = ARGV[0]
a = `find #{dir} -type f`.split "\n"
diff --git a/ebay-template b/ebay-template
index 6c409cd..65c6b8f 100755
--- a/ebay-template
+++ b/ebay-template
@@ -2,7 +2,6 @@
require 'haml'
-
template = '
%div(style="margin:2em;border:0;background:#ffffcc;font-family:Georgia")
%div(style="margin:1em")
diff --git a/find-by-keyword b/find-by-keyword
index adea961..93bf851 100755
--- a/find-by-keyword
+++ b/find-by-keyword
@@ -1,6 +1,5 @@
#!/bin/zsh
-
for i in `find . -type f`; do
A=$(jhead $i 2>/dev/null | grep Keyword | grep $1)
if [ "$A" != "" ]; then echo $i; fi
diff --git a/fn-f7 b/fn-f7
index 0239c8d..19d117c 100755
--- a/fn-f7
+++ b/fn-f7
@@ -1,6 +1,5 @@
#!/bin/sh
-
if [ -a /tmp/vgaclone ]; then
xrandr --output VGA-0 --off
rm /tmp/vgaclone
diff --git a/forward-ports b/forward-ports
index f13307a..c991a0f 100755
--- a/forward-ports
+++ b/forward-ports
@@ -1,6 +1,5 @@
#!/bin/zsh
-
. /home/pks/bin/func.zsh
check_root
diff --git a/gallery b/gallery
index e134e23..2f89dfa 100755
--- a/gallery
+++ b/gallery
@@ -11,7 +11,6 @@ Patrick Simianer <p@simianer.de>
import sys, os, glob, subprocess, shlex
-
def main():
try:
path = sys.argv[1]
@@ -36,9 +35,6 @@ def main():
print '</div>'
print '</div></body></html>'
-
-
-
if __name__ == '__main__':
main()
diff --git a/hddtemp b/hddtemp
index 1b37d54..250c34c 100755
--- a/hddtemp
+++ b/hddtemp
@@ -1,6 +1,5 @@
#!/bin/zsh
-
. /home/pks/bin/func.zsh
check_root
diff --git a/jpegtran-rotate-lossless b/jpegtran-rotate-lossless
index 77a0949..f876e10 100755
--- a/jpegtran-rotate-lossless
+++ b/jpegtran-rotate-lossless
@@ -1,6 +1,5 @@
#!/bin/sh
-
function usage {
echo 'Usage: jpegtran-rotate-lossless.sh <90|180|270> <file>'
exit 1
@@ -20,7 +19,6 @@ case $ROTATION in
usage ;;
esac
-
jpegtran -rotate $ROTATION -trim -copy all $FILE > $FILE-rotate
if [ $? -ne 0 ]; then
echo 'jpegtran-rotate-lossless.sh: jpegtran failed'
diff --git a/killwifi b/killwifi
index 15b278d..d076c37 100755
--- a/killwifi
+++ b/killwifi
@@ -1,6 +1,5 @@
#!/bin/sh
-
sudo /etc/init.d/dhcpcd stop
sudo killall wpa_supplicant
diff --git a/magnet b/magnet
index b1b20ee..c380cc6 100755
--- a/magnet
+++ b/magnet
@@ -1,7 +1,6 @@
#!/bin/bash
-
-cd ~/z
+cd ~/tmp
[[ "$1" =~ xt=urn:btih:([^&/]+) ]] || exit;
echo "d10:magnet-uri${#1}:${1}e" > "meta-${BASH_REMATCH[1]}.torrent"
diff --git a/mdstat b/mdstat
index 3e4eaf1..fc86d3a 100755
--- a/mdstat
+++ b/mdstat
@@ -1,6 +1,5 @@
#!/bin/zsh
-
S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}' </proc/mdstat)
STATUS=$(echo $S | cut -d" " -f2)
if [[ $STATUS != "[UUUU]" ]]; then logger "[mdstat warning] $S"; fi
diff --git a/mkinitcpio b/mkinitcpio
index 946c5a6..7d2fe89 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -1,6 +1,5 @@
#!/bin/sh
-
cd /usr/src/initramfs
cp /etc/suspend.conf /usr/src/initramfs/etc/
find . -print0 | cpio --null -ov --format=newc | gzip -9 > /boot/initramfs.cpio.gz
diff --git a/mount-crypt b/mount-crypt
index 9c86163..d4a6bc4 100755
--- a/mount-crypt
+++ b/mount-crypt
@@ -1,6 +1,5 @@
#!/bin/bash
-
. /home/pks/bin/func.zsh
check_root
diff --git a/net-profile b/net-profile
index 874aaac..8acea40 100755
--- a/net-profile
+++ b/net-profile
@@ -1,6 +1,5 @@
#!/bin/sh
-
setup_wifi()
{
sudo wpa_supplicant -D wext -i wlan0 -c ~/.net_profiles/$1.conf &>/tmp/wpa_supplicant.log &
diff --git a/offlineimap-switch b/offlineimap-switch
index ef7328d..6f835cd 100755
--- a/offlineimap-switch
+++ b/offlineimap-switch
@@ -1,6 +1,5 @@
#!/bin/sh
-
case `date +"%a"` in
Sat|Sun)
offlineimap -a private
diff --git a/pdflatexup b/pdflatexup
index 19b755d..b9b141b 100755
--- a/pdflatexup
+++ b/pdflatexup
@@ -1,6 +1,5 @@
#!/bin/sh
-
/usr/bin/pdflatex $1
if [ $? -eq 0 ]; then
diff --git a/remote-home b/remote-home
index 3ae11a5..d17e938 100755
--- a/remote-home
+++ b/remote-home
@@ -1,5 +1,4 @@
#!/bin/sh
-
sshfs simianer@diddley:/srv/nfs/home_mitarb/simianer/ /mnt -o idmap=user -o uid=1337 -o gid=100
diff --git a/try-qlogin b/try-qlogin
index 69c4c2e..b939117 100755
--- a/try-qlogin
+++ b/try-qlogin
@@ -1,6 +1,5 @@
#!/bin/bash
-
trap 'echo Control-C trap caught; exit 1' 2
while true
diff --git a/umount-crypt b/umount-crypt
index 1405d46..54f7cc0 100755
--- a/umount-crypt
+++ b/umount-crypt
@@ -1,6 +1,5 @@
#!/bin/zsh
-
. /home/pks/bin/func.zsh
check_root
diff --git a/updatepdf b/updatepdf
index fec4ef3..d7613d4 100755
--- a/updatepdf
+++ b/updatepdf
@@ -1,6 +1,5 @@
#!/bin/zsh
-
mupdf $1 &
echo $! > .mupdf.pid
diff --git a/upgrade-kernel b/upgrade-kernel
index dd57678..1971a88 100755
--- a/upgrade-kernel
+++ b/upgrade-kernel
@@ -1,6 +1,5 @@
#!/bin/sh
-
if [ ! -f .config ]; then echo "Call from kernel source dir!"; exit; fi
V=`pwd | ruby -e "puts STDIN.gets.split('/').last.split('-').last"`
make mrproper
diff --git a/yt2mp3 b/yt2mp3
index 4982bcf..107f0f0 100755
--- a/yt2mp3
+++ b/yt2mp3
@@ -1,6 +1,5 @@
#!/bin/sh
-
usage()
{
echo "$0 <yt link> <mp3 file>"