Skip to content

Instantly share code, notes, and snippets.

@marco79cgn
marco79cgn / spon_no_paywall.js
Last active March 2, 2018 18:46
Spon_Paywall_Disabler
// ==UserScript==
// @name Spiegel Online: Adblock Wall entfernen
// @namespace https://greasyfork.org/en/users/8981-buzz
// @description Entfernt die nervige Anti-Adblock-Meldung von SPON.
// @author buzz - modified 0.4 by marco79
// @locale de
// @require https://code.jquery.com/jquery-2.2.0.min.js
// @version 0.4
// @license GPLv2
// @match http://www.spiegel.de/*
@marco79cgn
marco79cgn / userbouquet.favorites.tv
Last active June 22, 2018 17:05
arte Concert Hurricane, Southside and Hellfest 2018 (for Enigma2 Linux Receiver)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:https://arteevent04-lh.akamaihd.net/i/arte_event04@308879/master.m3u8?sd=10&rebase=on:Hurricane
#DESCRIPTION Hurricane
#SERVICE 4097:0:1:0:0:0:0:0:0:0:https://arteevent03-lh.akamaihd.net/i/arte_event03@305298/master.m3u8?sd=10&rebase=on:Southside
#DESCRIPTION Southside
#SERVICE 4097:0:1:0:0:0:0:0:0:0:https://arteevent01-lh.akamaihd.net/i/arte_event01@395110/master.m3u8?sd=10&rebase=on:Hellfest
#DESCRIPTION Hellfest
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@marco79cgn
marco79cgn / dash.py
Created June 29, 2018 13:19
Amazon Dash Button Script
import datetime
import logging
import urllib2
import time
# Constants
timespan_threshhold = 3
# Globals
lastpress = datetime.datetime(1970,1,1)
## Instructions
##
## Copy this file to /etc/dnsmasq.d/03-bypass.conf
##
## Set your tag and dns server like this:
## dhcp-option=tag:YOURTAGHERE,6,IPADDRESSOFDNSSERVER
##
## My tag 'smartdns' will go straight to SmartDNSProxy Servers
dhcp-option=tag:smartdns,6,54.93.173.153,81.17.17.170
@marco79cgn
marco79cgn / Makefile
Created March 28, 2018 22:02
Makefile for Istio101 using Minikube on macOS (see https://github.com/thesandlord/Istio101)
# Copyright 2018, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Keybase proof

I hereby claim:

  • I am marco79cgn on github.
  • I am marco79 (https://keybase.io/marco79) on keybase.
  • I have a public key ASDiC_ljy_4ix0SzSupfJNMOLbPKTjmp58AbRo0dewuUcAo

To claim this, I am signing this object:

@marco79cgn
marco79cgn / apple-event.js
Last active September 15, 2020 20:01
Widget which opens the Apple Event Stream on YouTube
let widget = new ListWidget()
widget.setPadding(0,0,0,0)
widget.url = "https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/m3u8/main.m3u8"
widget.backgroundColor = new Color("#FFFFFF")
await loadImage("https://cdn.vertexreport.com/wp-content/uploads/2020/09/Apple-Event-September.jpg")
Script.setWidget(widget)
Script.complete()
@marco79cgn
marco79cgn / bbc1-radio.js
Created September 16, 2020 17:56
Scriptable widget that plays BBC1 radio on Sonos
let param = args.widgetParameter
let widget = new ListWidget()
widget.setPadding(0,0,0,0)
// the node sonos http api base url
let sonosBaseUrl = "http://192.168.178.10:5005"
widget.backgroundColor = new Color("#FFFFFF")
await loadImage("https://mytuner.global.ssl.fastly.net/media/tvos_radios/BFcU2vjUXh.png")
await playOnSonos()
Script.setWidget(widget)
@marco79cgn
marco79cgn / free-call-a-bikes.js
Last active October 9, 2020 07:30
Shows the amount of free rental bikes of my home station
// your DB Bahn Developer API token
// https://developer.deutschebahn.com/store/apis/info?name=Flinkster_API_NG&version=v1&provider=DBOpenData
const bahnApiToken = "xxx"
// the longitude and latitude of your desired station
const latitude = "50.95209"
const longitude = "6.91907"
// optional: the area uid of your desired station (for 100% accurate results)
const areaUid = ""