View mover.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mvr() { | |
spath="/MEDIASHARE/Serien/" | |
select d in $spath*/; do | |
test -n "$d" && break; | |
echo ">>> Invalid Selection"; | |
done | |
mv "$@" "$d" | |
ls | |
} |
View last.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import commands | |
import datetime | |
import time | |
import sys | |
user = commands.getoutput('echo $USER') | |
last = commands.getoutput('last -F $USER | grep ":0 .* :0" | sed "s/\s\s*/ /g" | grep -v "(00:00)"').split('\n') | |
last = [x.replace('%s :0 :0 ' % user, '') for x in last] |
View droppi2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dropbox import client, rest, session | |
import os,sys | |
#Const | |
APP_KEY = '' | |
APP_SECRET = '' | |
ACC_KEY = '' | |
ACC_SECRET = '' | |
ACCESS_TYPE = 'dropbox' | |
folder_to_sync = '/' |
View link_parser.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyquery import PyQuery as pq | |
import sys | |
doc = pq(url=sys.argv[1]) | |
links = doc(sys.argv[2]) | |
for link in links: | |
print(link.get('href')) |
View picraf.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" == "" ]]; then | |
to=1440 | |
else | |
to=$1 | |
fi | |
if [[ "$2" == "" ]]; then | |
waitsek=60 | |
else |
View flickrstats.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires: curl, jq, xargs, sed, bc, convert and t | |
# Flickr + Twitter User | |
FUSER='mperlet' | |
TUSER='@mperlet_' | |
# User Info URL | |
DATA=$(curl http://flickrit.pboehm.org/photos/$FUSER) |
View pdfsites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pdfsites() { | |
echo "Seitenanzahl: " $(pdfinfo $1 | grep Pages: | cut -d":" -f2 | awk '{$1=$1}{ print }') | |
echo "Farbseiten: " $(ghostscript -o - -sDEVICE=inkcov $1 | grep -v "^ 0.00000 0.00000 0.00000" | grep "^ " | wc -l) | |
} |
View mary_tts_wav_2_mp3_webservice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from flask import send_file | |
from urllib.request import urlopen | |
import random, string | |
import os, glob | |
app = Flask(__name__) | |
@app.route("/<tts>") | |
def hello(tts): |
View random 9gag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while : | |
do | |
xdotool key "r" | |
sleep 3 | |
done |
View gist:d9f9563d7c1f8a7d5d69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Es ist 12:30Uhr. Draussen sind es 8 grad. Es regnet nicht äüöäüö |
OlderNewer