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 | |
function cget(){ | |
curl $* --silent --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0" | |
} | |
# | xargs wget -nc -q -P /home/hendrik/roboton | |
station=${@:-https://www.sputnik.de/programm/programmschema} | |
#showpage="http://www.sputnik.de/musik/sendungen/sputnik-roboton-mi-22-00-23-00-cet" | |
showpage=$(cget $station --silent | sed -n 's/.*href="\(http[^"]*\).*/\1/p' | grep roboton) | |
shows=$(cget $showpage --silent | sed -n 's/.*href="\(http[^"]*\).*/\1\n/p' | grep mp3) |
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 | |
# Programm Bashtuner | |
# Autor Karsten Weidenfeld | |
# OS Linux Mint 14, Ubuntu 12.04 | |
# Abhängigkeiten curl, vlc, zenity, streamripper | |
# Bashtuner ist ein Radio Abspielprogramm das wahlweise Sender aus einer lokalen Favouritenliste | |
# oder einer Onlineliste abspielt. Es können auch Sender aus der Onlineliste übernommen werden. |
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 | |
station=${@:-Slub} | |
exec 6<> /dev/tcp/widgets.vvo-online.de/80 | |
printf "GET /abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=$station&vz=0 HTTP/1.0 | |
Host: widgets.vvo-online.de | |
User-Agent: Ach ja, die 61 | |
Connection: close\n\n" >&6 | |
#cat <&6 | grep '\[\[' | sed -e 's/\],\[/\n/g' -e 's/\[\[\|\]\]//g' -e 's/\",\"/ /g' -e 's/\"//g' |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
NewerOlder