View RasplexMon.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
#!/usr/bin/env python | |
import datetime | |
import time | |
import urllib2 | |
import xml.etree.ElementTree as ET | |
from os.path import expanduser | |
import logging | |
import logging.handlers | |
import httplib | |
import urllib |
View osx-for-hackers.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/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
View osx-for-hackers.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/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
View itunes_festival.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 urllib2 | |
import re | |
url = '' | |
host='http://streaming.itunesfestival.com' | |
def get_token(): | |
sub = url.find('?token=') | |
return url[sub:] |
View DriveNow-Statusboard.php
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
<?php | |
##config for homelocation and radius (in meter) | |
$myhomelat = "52.49993"; | |
$myhomelng = "13.39190"; | |
$myradius = "300"; | |
## get the drive now json | |
$driveURL = "https://www.drive-now.com/php/metropolis/json.vehicle_filter?cit=6099"; | |
$process = curl_init($driveURL); | |
curl_setopt($process, CURLOPT_HEADER, false); |
View bvg-table.php
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
<?php | |
## set timezone | |
date_default_timezone_set('EUROPE/Berlin'); | |
## set date and time + 8minutes walking distance to the train station | |
$zeit = date('H:i', strtotime("+8 minutes")); | |
$tag = date('d.m.y', strtotime("+8 minutes")); | |
## set trainstation ID (find ID here: http://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?rt=0& ) and a transtation name or abbriviation as you like | |
$bahnhof ='9120001'; |
View hue-dimmer-sonos-control.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
#!/usr/bin/env python | |
import urllib, json, datetime, time, os, soco | |
# HUE Bridge IP | |
url = 'http://192.168.1.48/api/newdeveloper' | |
response = urllib.urlopen(url) | |
data = json.loads(response.read()) | |
button = data['sensors']['3']['state']['buttonevent'] | |
klickzeit = data['sensors']['3']['state']['lastupdated'] | |
klickzeitunix = time.mktime(datetime.datetime.strptime(klickzeit, "%Y-%m-%dT%H:%M:%S").timetuple()) | |
timestamp = int(time.time()) |
View Rio 2016 Stream-Adressen
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
#ZDF | |
http://zdf0304-lh.akamaihd.net/i/de03_v1@392855/master.m3u8?dw=0 | |
http://zdf0304-lh.akamaihd.net/i/de04_v1@392856/master.m3u8?dw=0 | |
http://zdf0506-lh.akamaihd.net/i/de05_v1@392857/master.m3u8?dw=0 | |
http://zdf0506-lh.akamaihd.net/i/de06_v1@392858/master.m3u8?dw=0 | |
http://zdf0708-lh.akamaihd.net/i/de07_v1@392868/master.m3u8?dw=0 | |
http://zdf0708-lh.akamaihd.net/i/de08_v1@392869/master.m3u8?dw=0 | |
#NDR Spezial | |
http://ndr_spezial-lh.akamaihd.net/i/spezial_1@119227/master.m3u8 | |
http://ndr_spezial-lh.akamaihd.net/i/spezial_2@119228/master.m3u8 |
View karabiner.json
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
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"right_option": "delete_forward" | |
} | |
} | |
] |
View find-all-albums.scpt
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
tell application "Photos" | |
activate | |
-- Add the photo you want to search for to a top level album as the first item in the album | |
set resultcaption to "Searching for: " | |
try | |
set sel to selection | |
if sel is {} then error "The selection is empty" -- no selection | |
OlderNewer