diff options
| author | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 | 
|---|---|---|
| committer | Patrick Simianer <p@simianer.de> | 2014-10-09 20:44:15 +0100 | 
| commit | ca41eddfdc979955105cce572e659941544d6f6d (patch) | |
| tree | bf446902e8323e58c6fc14dce808b9719da7d3f6 | |
| parent | 0aae427eb3838297f6e204c2961739ef834762cf (diff) | |
alles neu macht der mai
| -rwxr-xr-x | 256colors | 63 | ||||
| -rw-r--r-- | README.md | 17 | ||||
| -rwxr-xr-x | aptitude_safe_upgrade (renamed from aptitude-safe-upgrade) | 0 | ||||
| -rwxr-xr-x | backup_2pac (renamed from backup-2pac) | 0 | ||||
| -rwxr-xr-x | blink | 43 | ||||
| -rwxr-xr-x | chromium_real_user_agent (renamed from chromium-real-user-agent) | 0 | ||||
| -rwxr-xr-x | dd_bench (renamed from ddbench) | 0 | ||||
| -rwxr-xr-x | ebay-template | 36 | ||||
| -rwxr-xr-x | ebay_template | 36 | ||||
| -rwxr-xr-x | find_by_keyword (renamed from find-by-keyword) | 0 | ||||
| -rwxr-xr-x | fn_f7 (renamed from fn-f7) | 0 | ||||
| -rwxr-xr-x | forward_ports (renamed from forward-ports) | 0 | ||||
| -rw-r--r-- | func.zsh | 1 | ||||
| -rwxr-xr-x | gallery | 42 | ||||
| -rwxr-xr-x | jpegtran_rotate_lossless (renamed from jpegtran-rotate-lossless) | 0 | ||||
| -rwxr-xr-x | kill_wifi (renamed from killwifi) | 0 | ||||
| -rwxr-xr-x | magnet | 6 | ||||
| -rwxr-xr-x | mdstat | 6 | ||||
| -rwxr-xr-x | mount_crypt (renamed from mount-crypt) | 0 | ||||
| -rwxr-xr-x | net_profile (renamed from net-profile) | 0 | ||||
| -rwxr-xr-x | offlineimap_switch (renamed from offlineimap-switch) | 0 | ||||
| -rwxr-xr-x | spark | 89 | ||||
| -rwxr-xr-x | strip-tags | 2 | ||||
| -rwxr-xr-x | tatort-dl | 211 | ||||
| -rwxr-xr-x | temp_cpu (renamed from cputemp) | 1 | ||||
| -rwxr-xr-x | temp_hdd (renamed from hddtemp) | 0 | ||||
| -rwxr-xr-x | try_qlogin (renamed from try-qlogin) | 0 | ||||
| -rwxr-xr-x | umount_crypt (renamed from umount-crypt) | 0 | ||||
| -rwxr-xr-x | up_pdf (renamed from updatepdf) | 0 | ||||
| -rwxr-xr-x | up_pdflatex (renamed from pdflatexup) | 0 | ||||
| -rwxr-xr-x | upgrade_gentoo (renamed from upgrade-gentoo) | 4 | ||||
| -rwxr-xr-x | upgrade_kernel (renamed from upgrade-kernel) | 0 | ||||
| -rwxr-xr-x | youtube_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"; @@ -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 @@ -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/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ß 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ß 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/forward-ports b/forward_ports index c991a0f..c991a0f 100755 --- a/forward-ports +++ b/forward_ports @@ -1,4 +1,3 @@ -  check_root()  {    if [ `whoami` != root ]; then echo "Run this script  as root, exiting!"; exit; fi @@ -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öß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öß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 @@ -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" - @@ -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 @@ -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 @@ -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 @@ -12,3 +12,4 @@ for i in \      logger "Some CPU temp @$TEMP (/1000)!"    fi  done + diff --git a/umount-crypt b/umount_crypt index 54f7cc0..54f7cc0 100755 --- a/umount-crypt +++ b/umount_crypt 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 | 
