summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x256colors63
-rw-r--r--README.md17
-rwxr-xr-xaptitude_safe_upgrade (renamed from aptitude-safe-upgrade)0
-rwxr-xr-xbackup_2pac (renamed from backup-2pac)0
-rwxr-xr-xblink43
-rwxr-xr-xchromium_real_user_agent (renamed from chromium-real-user-agent)0
-rwxr-xr-xdd_bench (renamed from ddbench)0
-rwxr-xr-xebay-template36
-rwxr-xr-xebay_template36
-rwxr-xr-xfind_by_keyword (renamed from find-by-keyword)0
-rwxr-xr-xfn_f7 (renamed from fn-f7)0
-rwxr-xr-xforward_ports (renamed from forward-ports)0
-rw-r--r--func.zsh1
-rwxr-xr-xgallery42
-rwxr-xr-xjpegtran_rotate_lossless (renamed from jpegtran-rotate-lossless)0
-rwxr-xr-xkill_wifi (renamed from killwifi)0
-rwxr-xr-xmagnet6
-rwxr-xr-xmdstat6
-rwxr-xr-xmount_crypt (renamed from mount-crypt)0
-rwxr-xr-xnet_profile (renamed from net-profile)0
-rwxr-xr-xofflineimap_switch (renamed from offlineimap-switch)0
-rwxr-xr-xspark89
-rwxr-xr-xstrip-tags2
-rwxr-xr-xtatort-dl211
-rwxr-xr-xtemp_cpu (renamed from cputemp)1
-rwxr-xr-xtemp_hdd (renamed from hddtemp)0
-rwxr-xr-xtry_qlogin (renamed from try-qlogin)0
-rwxr-xr-xumount_crypt (renamed from umount-crypt)0
-rwxr-xr-xup_pdf (renamed from updatepdf)0
-rwxr-xr-xup_pdflatex (renamed from pdflatexup)0
-rwxr-xr-xupgrade_gentoo (renamed from upgrade-gentoo)4
-rwxr-xr-xupgrade_kernel (renamed from upgrade-kernel)0
-rwxr-xr-xyoutube_mp3 (renamed from yt2mp3)0
33 files changed, 68 insertions, 489 deletions
diff --git a/256colors b/256colors
deleted file mode 100755
index c97c2be..0000000
--- a/256colors
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/perl
-# Author: Todd Larason <jtl@molehill.org>
-# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
-
-# use the resources for colors 0-15 - usually more-or-less a
-# reproduction of the standard ANSI colors, but possibly more
-# pleasing shades
-
-# colors 16-231 are a 6x6x6 color cube
-for ($red = 0; $red < 6; $red++) {
- for ($green = 0; $green < 6; $green++) {
- for ($blue = 0; $blue < 6; $blue++) {
- printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
- 16 + ($red * 36) + ($green * 6) + $blue,
- ($red ? ($red * 40 + 55) : 0),
- ($green ? ($green * 40 + 55) : 0),
- ($blue ? ($blue * 40 + 55) : 0));
- }
- }
-}
-
-# colors 232-255 are a grayscale ramp, intentionally leaving out
-# black and white
-for ($gray = 0; $gray < 24; $gray++) {
- $level = ($gray * 10) + 8;
- printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
- 232 + $gray, $level, $level, $level);
-}
-
-
-# display the colors
-
-# first the system ones:
-print "System colors:\n";
-for ($color = 0; $color < 8; $color++) {
- print "\x1b[48;5;${color}m ";
-}
-print "\x1b[0m\n";
-for ($color = 8; $color < 16; $color++) {
- print "\x1b[48;5;${color}m ";
-}
-print "\x1b[0m\n\n";
-
-# now the color cube
-print "Color cube, 6x6x6:\n";
-for ($green = 0; $green < 6; $green++) {
- for ($red = 0; $red < 6; $red++) {
- for ($blue = 0; $blue < 6; $blue++) {
- $color = 16 + ($red * 36) + ($green * 6) + $blue;
- print "\x1b[48;5;${color}m ";
- }
- print "\x1b[0m ";
- }
- print "\n";
-}
-
-
-# now the grayscale ramp
-print "Grayscale ramp:\n";
-for ($color = 232; $color < 256; $color++) {
- print "\x1b[48;5;${color}m ";
-}
-print "\x1b[0m\n";
diff --git a/README.md b/README.md
index 56963c9..c354bc7 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,11 @@
stuff for ~/bin
contains code from third-parties:
-* 256colors https://github.com/joejulian/xterm/blob/master/vttests/256colors2.pl
-* blink http://pikeypl.com/index.php?show=code&menu=software&language=bash&code=blink.sh
-* pdf2png http://bruxy.regnet.cz/
-* ratcpi https://github.com/jbaber/ratpoison_scripts
-* spark https://github.com/holman/spark
-* stopwatch http://www.thelinuxdaily.com/2012/03/simple-stopwatch-script/
-* strip-tags http://savvyadmin.com/strip-all-unwanted-mp3-id3-tags/
-* tatort-dl http://gareus.org/wiki/tatort-dl
-* thinkwatt https://github.com/mikar/thinkwatt
-* xfs-raid http://www.mythtv.org/wiki/Optimizing_Performance#Optimizing_XFS_on_RAID_Arrays
+
+ * pdf2png http://bruxy.regnet.cz/
+ * ratcpi https://github.com/jbaber/ratpoison_scripts
+ * stopwatch http://www.thelinuxdaily.com/2012/03/simple-stopwatch-script/
+ * strip-tags http://savvyadmin.com/strip-all-unwanted-mp3-id3-tags/
+ * thinkwatt https://github.com/mikar/thinkwatt
+ * xfs-raid http://www.mythtv.org/wiki/Optimizing_Performance#Optimizing_XFS_on_RAID_Arrays
diff --git a/aptitude-safe-upgrade b/aptitude_safe_upgrade
index ead0c8d..ead0c8d 100755
--- a/aptitude-safe-upgrade
+++ b/aptitude_safe_upgrade
diff --git a/backup-2pac b/backup_2pac
index 43748fb..43748fb 100755
--- a/backup-2pac
+++ b/backup_2pac
diff --git a/blink b/blink
deleted file mode 100755
index 88c252b..0000000
--- a/blink
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-#_______________________________________________
-# blink.sh - ThinkBlink making ThinkLight blink
-# author: Pawel Kazimierowicz www.PiKeyPL.com
-#_______________________________________________
-# use: sh blink.sh [how many flashes] [how long flashes]
-# eg. sh blink.sh 3 1 - three flashes for one second
-# eg. sh blink.sh 2 5 - two flashes for five seconds
-#
-# http://pikeypl.com/index.php?show=code&menu=software&language=bash&code=blink.sh
-
- ile=$1; # ile mrugniec, parametr skryptu
- i=1; # licznik do petli
-
-read d < /sys/class/leds/tpacpi\:\:thinklight/brightness #load state of ThinkLight
-# when state = 0 - OFF, 255 - ON
-# echo $d # print state of ThinkLight - for diagnostic.
-
-case "$d" in
-# if ThinkLight if OFF: ON->OFF
- "0")
- while [ $i -le $ile ]; do
- echo 255 > /sys/class/leds/tpacpi\:\:thinklight/brightness ;
- sleep $2;
- echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness;
- sleep $2;
- i=$((i+1));
-
- done;;
-
-# if ThinkLight is ON: OFF->ON
-"255")
- while [ $i -le $ile ]; do
- echo 0 > /sys/class/leds/tpacpi\:\:thinklight/brightness;
- sleep $2;
- echo 255 > /sys/class/leds/tpacpi\:\:thinklight/brightness;
- sleep $2;
- i=$((i+1));
- done
-esac
-
-# EOF ThinkBlink by Pawel Kazimierowicz
-
diff --git a/chromium-real-user-agent b/chromium_real_user_agent
index 3d93034..3d93034 100755
--- a/chromium-real-user-agent
+++ b/chromium_real_user_agent
diff --git a/ddbench b/dd_bench
index 0db9a46..0db9a46 100755
--- a/ddbench
+++ b/dd_bench
diff --git a/ebay-template b/ebay-template
deleted file mode 100755
index 65c6b8f..0000000
--- a/ebay-template
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'haml'
-
-template = '
-%div(style="margin:2em;border:0;background:#ffffcc;font-family:Georgia")
- %div(style="margin:1em")
- %h1(style="border-bottom:2px solid #fff")
- Name
- %p(style="margin-left:5%")
- Beschreibung
- %div(style="margin-left:10%")
- %h2 Bilder:
- - picCount.times do |i|
- %a(href="http://simianer.de/ebay/#{picName}#{i+1}.jpg" target="_blank")
- %img(style="border:2px solid blue;float:left;margin:20px;" src="http://simianer.de/ebay/#{picName}#{i+1}t.jpg")
- %div(style="clear:left")
- %br
- %br
- %p
- Bitte beachten Sie auch meine <a href="http://shop.ebay.de/merchant/iuas81" target="_blank">anderen Artikel</a>!<br />Ersteigern Sie mehrere Artikel, so zahlen Sie nur 1x Versandkosten.
- %h3(style="margin-bottom:0px")
- Viel Spa&szlig; beim Bieten! :-)'
-
-
-if __FILE__ == $0
- picName = ARGV[0]
- picCount = ARGV[1]
-
- haml_engine = Haml::Engine.new(template)
- puts haml_engine.render(
- Object.new,
- locals={:picName => picName, :picCount => picCount.to_i}
- )
-end
-
diff --git a/ebay_template b/ebay_template
new file mode 100755
index 0000000..a5389bb
--- /dev/null
+++ b/ebay_template
@@ -0,0 +1,36 @@
+#!/usr/bin/env ruby
+
+require 'haml'
+
+template = '
+%div(style="margin:2em;border:0;background:#ffffcc;font-family:Georgia")
+ %div(style="margin:1em")
+ %h1(style="border-bottom:2px solid #fff")
+ Name
+ %p(style="margin-left:5%")
+ Beschreibung
+ %div(style="margin-left:10%")
+ %h2 Bilder:
+ - picCount.times do |i|
+ %a(href="http://simianer.de/ebay/#{picName}#{i+1}.jpg" target="_blank")
+ %img(style="border:2px solid blue;float:left;margin:20px;" src="http://simianer.de/ebay/#{picName}#{i+1}t.jpg")
+ %div(style="clear:left")
+ %br
+ %br
+ %p
+ Bitte beachten Sie auch meine <a href="http://shop.ebay.de/merchant/iuas81" target="_blank">anderen Artikel</a>!<br />Ersteigern Sie mehrere Artikel, so zahlen Sie nur 1x Versandkosten.
+ %h3(style="margin-bottom:0px")
+ Viel Spa&szlig; beim Bieten! :-)'
+
+
+if __FILE__ == $0
+ picName = ARGV[0]
+ picCount = ARGV[1]
+
+ haml_engine = Haml::Engine.new(template)
+ puts haml_engine.render(
+ Object.new,
+ locals={:picName => picName, :picCount => picCount.to_i}
+ )
+end
+
diff --git a/find-by-keyword b/find_by_keyword
index 93bf851..93bf851 100755
--- a/find-by-keyword
+++ b/find_by_keyword
diff --git a/fn-f7 b/fn_f7
index 19d117c..19d117c 100755
--- a/fn-f7
+++ b/fn_f7
diff --git a/forward-ports b/forward_ports
index c991a0f..c991a0f 100755
--- a/forward-ports
+++ b/forward_ports
diff --git a/func.zsh b/func.zsh
index bf5b3d2..470f5db 100644
--- a/func.zsh
+++ b/func.zsh
@@ -1,4 +1,3 @@
-
check_root()
{
if [ `whoami` != root ]; then echo "Run this script as root, exiting!"; exit; fi
diff --git a/gallery b/gallery
index 2f89dfa..b92b467 100755
--- a/gallery
+++ b/gallery
@@ -12,28 +12,28 @@ Patrick Simianer <p@simianer.de>
import sys, os, glob, subprocess, shlex
def main():
- try:
- path = sys.argv[1]
- except IndexError:
- print 'Usage: gallery.py /path/to/images/'
- sys.exit(1)
- path += '/'
- files = glob.glob(path+'*.jpg')
- if not os.path.exists(path+'thumbs'):
- os.mkdir(path+'thumbs')
- files.sort()
- for f in files:
- cmd = 'convert "'+f+'" -resize 320x320 "'+path+'thumbs/'+f.split('/')[-1]+'"'
- a = shlex.split(cmd)
- subprocess.Popen(a)
+ try:
+ path = sys.argv[1]
+ except IndexError:
+ print 'Usage: gallery.py /path/to/images/'
+ sys.exit(1)
+ path += '/'
+ files = glob.glob(path+'*.jpg')
+ if not os.path.exists(path+'thumbs'):
+ os.mkdir(path+'thumbs')
+ files.sort()
+ for f in files:
+ cmd = 'convert "'+f+'" -resize 320x320 "'+path+'thumbs/'+f.split('/')[-1]+'"'
+ a = shlex.split(cmd)
+ subprocess.Popen(a)
- print '<html><head><title></title></head><body style="background:#000">'
- print '<div style="text-align:center"><p style="font-size:0.8em;color:#303030">Anklicken zum Vergr&ouml;&szlig;ern</p>'
- for f in files:
- print '<div style="padding:16px;">'
- print '<a href="'+f+'" target="_blank"><img style="border:2px solid #303030" src="thumbs/'+f+'" /></a>'
- print '</div>'
- print '</div></body></html>'
+ print '<html><head><title></title></head><body style="background:#000">'
+ print '<div style="text-align:center"><p style="font-size:0.8em;color:#303030">Anklicken zum Vergr&ouml;&szlig;ern</p>'
+ for f in files:
+ print '<div style="padding:16px;">'
+ print '<a href="'+f+'" target="_blank"><img style="border:2px solid #303030" src="thumbs/'+f+'" /></a>'
+ print '</div>'
+ print '</div></body></html>'
if __name__ == '__main__':
main()
diff --git a/jpegtran-rotate-lossless b/jpegtran_rotate_lossless
index f876e10..f876e10 100755
--- a/jpegtran-rotate-lossless
+++ b/jpegtran_rotate_lossless
diff --git a/killwifi b/kill_wifi
index d076c37..d076c37 100755
--- a/killwifi
+++ b/kill_wifi
diff --git a/magnet b/magnet
deleted file mode 100755
index c380cc6..0000000
--- a/magnet
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-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
deleted file mode 100755
index fc86d3a..0000000
--- a/mdstat
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/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/mount-crypt b/mount_crypt
index d4a6bc4..d4a6bc4 100755
--- a/mount-crypt
+++ b/mount_crypt
diff --git a/net-profile b/net_profile
index 8acea40..8acea40 100755
--- a/net-profile
+++ b/net_profile
diff --git a/offlineimap-switch b/offlineimap_switch
index 6f835cd..6f835cd 100755
--- a/offlineimap-switch
+++ b/offlineimap_switch
diff --git a/spark b/spark
deleted file mode 100755
index 9041a12..0000000
--- a/spark
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/usr/bin/env bash
-#
-# spark
-# https://github.com/holman/spark
-#
-# Generates sparklines for a set of data.
-#
-# Here's a a good web-based sparkline generator that was a bit of inspiration
-# for spark:
-#
-# https://datacollective.org/sparkblocks
-#
-# spark takes a comma-separated list of data and then prints a sparkline out of
-# it.
-#
-# Examples:
-#
-# spark 1 5 22 13 53
-# # => ▁▁▃▂▇
-#
-# spark 0 30 55 80 33 150
-# # => ▁▂▃▅▂▇
-#
-# spark -h
-# # => Prints the spark help text.
-
-# Generates sparklines.
-#
-# $1 - The data we'd like to graph.
-spark()
-{
- local n numbers=
-
- # find min/max values
- local min=0xffffffff max=0
-
- for n in ${@//,/ }
- do
- # on Linux (or with bash4) we could use `printf %.0f $n` here to
- # round the number but that doesn't work on OS X (bash3) nor does
- # `awk '{printf "%.0f",$1}' <<< $n` work, so just cut it off
- n=${n%.*}
- (( n < min )) && min=$n
- (( n > max )) && max=$n
- numbers=$numbers${numbers:+ }$n
- done
-
- # print ticks
- local ticks=(▁ ▂ ▃ ▄ ▅ ▆ ▇ █)
-
- local f=$(( (($max-$min)<<8)/(${#ticks[@]}-1) ))
- (( f < 1 )) && f=1
-
- for n in $numbers
- do
- echo -n ${ticks[$(( ((($n-$min)<<8)/$f) ))]}
- done
- echo
-}
-
-# If we're being sourced, don't worry about such things
-if [ "$BASH_SOURCE" == "$0" ]; then
- # Prints the help text for spark.
- help()
- {
- cat <<EOF
-
- USAGE:
- spark [-h] VALUE,...
-
- EXAMPLES:
- spark 1 5 22 13 53
- ▁▁▃▂█
- spark 0,30,55,80,33,150
- ▁▂▃▄▂█
- echo 9 13 5 17 1 | spark
- ▄▆▂█▁
-EOF
- }
-
- # show help for no arguments if stdin is a terminal
- if { [ -z "$1" ] && [ -t 0 ] ; } || [ "$1" == '-h' ]
- then
- help
- exit 0
- fi
-
- spark ${@:-`cat`}
-fi
diff --git a/strip-tags b/strip-tags
index f5fc801..62c9511 100755
--- a/strip-tags
+++ b/strip-tags
@@ -3,7 +3,7 @@
# Original Author: Ian of DarkStarShout Blog
# Site: http://darkstarshout.blogspot.com/
# Options slightly modified to liking of SavvyAdmin.com
-
+
oktags="TALB APIC TCON TPE1 TPE2 TPE3 TIT2 TRCK TYER TCOM TPOS"
indexfile=`mktemp`
diff --git a/tatort-dl b/tatort-dl
deleted file mode 100755
index 71bd465..0000000
--- a/tatort-dl
+++ /dev/null
@@ -1,211 +0,0 @@
-#!/bin/bash
-# tatort-dl - download movies from ARDmediathek using rtmpdump
-# Copyright (C) 2010-2012 Robin Gareus <robin@gareus.org>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-
-RTMPDUMP=${RTMPDUMP:-rtmpdump}
-INTERACTIVE=
-GETURLONLY=
-QUIET=
-
-while getopts ":Vhigq" opt; do
- case $opt in
- V)
- echo "tator-dl v2013-01-28"
- echo
- echo "Copyright (C) 2010-2013 Robin Gareus"
- echo "This is free software; see the source for copying conditions. There is NO"
- echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
- exit 0
- ;;
- h)
- echo "tatort-dl - CLI tool for downloading films from http://www.ardmediathek.de/. "
- echo
- echo "Usage: tatort-dl [-i] [-g] [-q] <ARDmediathek-URL> [OutFileName] "
- echo
- echo "Wrapper script to parse rtmp and mp4 URLs from the ard-mediathek and launch"
- echo "a download using 'rtmpdump'."
- echo "The default out-file name is ./format<ard-uid>.flv"
- echo "-i option: interactive mode - ask before taking any action."
- echo "-g option: get URL - just print rtmp URL and exit"
- echo "-q option: quiet, inhibit usual output"
- echo
- echo "Environment:"
- echo "RTMPDUMP=rtmpdump"
- echo
- echo "Example:"
- echo "tatort-dl \"http://www.ardmediathek.de/ard/servlet/content/3517136?documentId=3701294\""
- echo
- echo "Report bugs to <robin@gareus.org>."
- echo "Website http://gareus.org/wiki/tatort-dl"
- exit 0
- ;;
- q)
- QUIET=yes
- shift;
- ;;
- g)
- GETURLONLY=yes
- QUIET=yes
- shift;
- ;;
- i)
- INTERACTIVE=yes
- shift;
- ;;
- \?)
- echo "Invalid option: -$OPTARG" >&2
- ;;
- :)
- echo "Option -$OPTARG requires an argument." >&2
- exit 1
- ;;
- esac
-done
-
-URL=$(echo -e "$1" | grep "^http")
-OUTFILE=$2
-
-RTMPDUMPOPTS=""
-#RTMPDUMPOPTS+=" --live"
-#RTMPDUMPOPTS+=" --resume"
-#RTMPDUMPOPTS+=" --quiet"
-
-if test -z "$URL" ; then
- echo -e "Error: missing or invalid parameters\n\nUsage:\n $0 <ARDmediathek-URL> [out-file]\nThe deafult out-file name is ./format<ard-uid>.f4v\n\nExample:\n $0 \"http://www.ardmediathek.de/ard/servlet/content/3517136?documentId=3701294\"\n" >&2;
- exit 1
-fi
-
-[[ -z "$QUIET" ]] && echo -en "curl \"$URL\" .."
-RTMPURLS=$(curl -s "$URL" | grep -i rtmp)
-
-
-if test -z "$RTMPURLS" ; then
- echo -e "\nError: no 'rtmp://' URLs were found on the given Page.\n" >&2
- exit 1;
-fi
-
-COUNT=$(echo -e "$RTMPURLS" | wc -l)
-[[ -z "$QUIET" ]] && echo -e " ..found $COUNT RTMP URL(s)."
-
-urldecode(){
- echo -e "$(sed 'y/+/ /; s/%/\\x/g')"
-}
-
-FLASH=$(echo "$RTMPURLS" | grep flashvars | tail -n1)
-if test -n "$FLASH"; then
-
- RTMPURL=$(echo -ne "$FLASH" \
- | sed 's/^.*streamer=\([^&]*\)&.*$/\1/g' \
- | urldecode)
- PLAYPATH=$(echo -ne "$FLASH" \
- | sed 's/^.*file=\([^&]*\)&.*$/\1/g' \
- | urldecode)
- #echo "RTMP: $RTMPURL"
- #echo "FILE: $PLAYPATH"
-
-else
-
- # try high-qualty first
- PARAM=$(echo "$RTMPURLS" | grep Web-L)
- # fall-back to medium-qualty
- if test -z "$PARAM"; then
- PARAM=$(echo "$RTMPURLS" | grep Web-M)
- fi
- # 2nd fall-back: use any rtmp URL
- if test -z "$PARAM"; then
- PARAM=$(echo "$RTMPURLS" | tail -n 1 )
- fi
-
- RTMPURL=$(echo -ne "$PARAM" | sed 's/^.*"\(rtmp[t]*:[^"]*\)",.*$/\1/g')
- PLAYPATH=$(echo -ne "$PARAM" | sed 's/^.*"\(mp4:[^"]*\)"[),].*$/\1/g')
-fi
-
-test -z "$RTMPURL" && RTMPURL="rtmp://vod.daserste.de/ardfs/"
-
-if test -n "$GETURLONLY"; then
- PLAYPATH2=$(echo -ne "$PLAYPATH" | sed 's/^mp4://g')
- echo -n "$RTMPURL$PLAYPATH2"
- exit
-fi
-
-if test -z "$OUTFILE"; then
- OUTFILE=$(echo -ne "$PLAYPATH" | sed 's/^mp4:.*\/\([^\/?]*\)\?.*$/\1/g')
- OUTFILE=$(echo -ne "$OUTFILE" \
- | sed 's/^.*\///g' \
- | sed 's/\?.*$//g' \
- | sed 's/mp4://g' \
- | sed 's/\.f4v$//' \
- | sed 's/\.flv$//'\
- )
- OUTFILE="${OUTFILE}.flv"
-fi
-
-if test -z "$QUIET"; then
- echo
- echo "Parameters:"
- echo " RTMP-URL : $RTMPURL"
- echo " Playpath : $PLAYPATH"
- echo " Saving to: $OUTFILE"
- echo -n " PWD : "
- pwd
- echo
-fi
-
-if test -z "$PLAYPATH -o -z "$OUTFILE ; then
- echo "Error: empty playpath or blank output filename." >&2
- exit 1
-fi
-
-if test -e "$OUTFILE"; then
- echo "WARNING: output file "$OUTFILE" exists." >&2
- if test -n "$INTERACTIVE"; then
- echo -n "[A]bort/[d]elete it/[r]esume? [A/d/r]? "
- read -n 1 VAL
- echo
- if test "$VAL" == "d"; then
- rm -i "$OUTFILE";
- elif test "$VAL" == "r"; then
- RTMPDUMPOPTS+=" --resume"
- else
- exit;
- fi
- else # NON-INTERACTIVE
- echo "Error: file exists. bailing out."
- exit
- fi
-fi
-
-if test -n "$INTERACTIVE"; then
- echo "rtmpdump command-line:"
- echo " #$RTMPDUMP $RTMPDUMPOPTS -o \"$OUTFILE\" --playpath \"$PLAYPATH\" -r $RTMPURL"
- echo
-
- echo -n " Start Download ? [Y/n] "
- read -n 1 VAL
- echo
- if test "$VAL" == "n" -o "$VAL" == "N"; then
- exit;
- fi
-fi
-
-$RTMPDUMP $RTMPDUMPOPTS -o "$OUTFILE" --playpath "$PLAYPATH" -r $RTMPURL
-
-if test -z "$QUIET"; then
- echo
- ls -l "$OUTFILE"
-fi
diff --git a/cputemp b/temp_cpu
index 775727c..90b2bc9 100755
--- a/cputemp
+++ b/temp_cpu
@@ -12,3 +12,4 @@ for i in \
logger "Some CPU temp @$TEMP (/1000)!"
fi
done
+
diff --git a/hddtemp b/temp_hdd
index 250c34c..250c34c 100755
--- a/hddtemp
+++ b/temp_hdd
diff --git a/try-qlogin b/try_qlogin
index b939117..b939117 100755
--- a/try-qlogin
+++ b/try_qlogin
diff --git a/umount-crypt b/umount_crypt
index 54f7cc0..54f7cc0 100755
--- a/umount-crypt
+++ b/umount_crypt
diff --git a/updatepdf b/up_pdf
index d7613d4..d7613d4 100755
--- a/updatepdf
+++ b/up_pdf
diff --git a/pdflatexup b/up_pdflatex
index b9b141b..b9b141b 100755
--- a/pdflatexup
+++ b/up_pdflatex
diff --git a/upgrade-gentoo b/upgrade_gentoo
index 8d94da5..46bc154 100755
--- a/upgrade-gentoo
+++ b/upgrade_gentoo
@@ -5,8 +5,8 @@ rsync -avv portage/ portage_/
umount portage
rm portage.squashfs
mv portage_ portage
-perl-cleaner --reallyall
-python-updater
+#perl-cleaner --reallyall
+#python-updater
emaint --check all
emaint --fix all
emerge --sync
diff --git a/upgrade-kernel b/upgrade_kernel
index 1971a88..1971a88 100755
--- a/upgrade-kernel
+++ b/upgrade_kernel
diff --git a/yt2mp3 b/youtube_mp3
index 107f0f0..107f0f0 100755
--- a/yt2mp3
+++ b/youtube_mp3