Skip to content

Instantly share code, notes, and snippets.

View noestreich's full-sized avatar

noestreich

  • Berlin
View GitHub Profile
#!/usr/bin/python
#-*- coding: utf-8 -*-
import pygame, soco
from pygame.locals import *
### Sonos im Netzwerk finden
speakers = soco.discover()
### Sonos Status und Playlist-Infos
def is_playing(transport_info):
@noestreich
noestreich / rufnummern-mit-vorwahl.scpt
Last active August 21, 2018 13:21
AppleScript ergänzt Rufnummern die mit 0 starten mit Ländervorwahl +49
set vorwahl to "+49"
tell application "Contacts"
repeat with aPerson in people
set thePhones to phones of aPerson
if thePhones is not {} then
set errorList to {}
repeat with aPhoneNumber in thePhones
set theNumber to value of aPhoneNumber
if (characters 1 thru 1 of theNumber) as string is "0" then
@noestreich
noestreich / index.html
Created March 23, 2018 17:13
Teleweb - Einfache HTML-Seite zum Abspielen von TV Livestreams
<!doctype html>
<html lang="en">
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/open-iconic/1.1.1/font/css/open-iconic-bootstrap.css" rel="stylesheet">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="apple-mobile-web-app-capable" content="yes">
NAME COUNT
Alexander 439
Maximilian 368
Paul 363
Emil 338
Elias 316
Anton 294
Noah 286
Leon 278
Karl 252
@noestreich
noestreich / Berlin_2018_girls.csv
Last active February 13, 2019 22:17
First names (girls) in Berlin, Germany in 2018 - Data source: https://github.com/berlinonline/haeufige-vornamen-berlin/tree/master/data/cleaned
NAME COUNT
Marie 656
Sophie 541
Charlotte 467
Maria 439
Emilia 389
Anna 301
Emma 281
Mia 265
Johanna 256
@noestreich
noestreich / gqs.html
Created January 19, 2017 12:57
Fritz!Box LED-Schalter
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" type="image/x-ico" href="http://fritz.box/favicon.ico" />
<link rel="stylesheet" type="text/css" href="fbled.css" /> <title></title>
<script type="text/javascript">
function getQuerystring(key, default_) {
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
@noestreich
noestreich / fbled.css
Created January 19, 2017 12:58
Fritz!Box LED-Schalter
header {
width:100%;
position:relative;
top:0;
left:0;
background-color:#006ec0;
color:white;
font-size:50px;
text-align:center;
font-family:Arial;
@noestreich
noestreich / calzy.json
Created March 3, 2020 15:58
Apples response to: wget --header='User-Agent: iTunes/12.1.1' --header='Accept: /' 'https://apps.apple.com/de/app/calzy/id623690732'
{
"storePlatformData":{
"product-dv-product":{
"results":{
"623690732":{
"artwork":[
{
"width":170,
"height":170,
"url":"https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/12/b2/f6/12b2f6c7-4bcd-82e5-68e8-1effdbe7577d/AppIcon-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/170x170bb.png"
@noestreich
noestreich / local.RemapRightOptionToDeleteForward.plist
Last active March 25, 2020 20:19
A simple key remapping solution. Copy to ~/Library/LaunchAgents/ - Possible values are listed here: https://developer.apple.com/library/archive/technotes/tn2450/_index.html.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.RemapRightOptionToDeleteForward</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
@noestreich
noestreich / index.html
Last active May 31, 2021 10:09
Fritz!Box LED-Schalter
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>FritzBox LEDs an/aus</title>
<link rel="shortcut icon" type="image/x-ico" href="http://fritz.box/favicon.ico" />
<link rel="stylesheet" type="text/css" href="fbled.css" />
</head>
<body>
<header>
<img src="http://fritz.box/favicon.ico" width="32" height="32" alt="Keine Fritz!Box erkannt">Fritz!Box LED-Schalter