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 / 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.
@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

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 / radio-paradise-now-playing.js
Last active November 5, 2020 16:53
Scriptable Radio Paradise Widget
let stationName = "flac"
let stationId = getConfiguredStationId()
let nowPlaying = await loadNowPlaying(stationId)
let widget = await createWidget(nowPlaying)
Script.setWidget(widget)
Script.complete()
widget.presentSmall()
async function createWidget(nowPlaying) {
@marco79cgn
marco79cgn / top_500_albums_widget.js
Last active February 21, 2024 03:26
A scriptable widget that shows a random Top 500 album and opens it in Spotify
// insert your Spotify client id and secret here
let clientId = "xxx"
let clientSecret = "xxx"
// use your spotify country iso code to optimize search results
let spotifyCountry = "DE"
// optional: the ip of your node-sonos-http-api and room name; use "sonos" as parameter in your widget settings to activate it
let sonosUrl = "http://192.168.178.10:5005/Kitchen"
@marco79cgn
marco79cgn / die_drei_???_widget.js
Last active December 4, 2021 07:12
A scriptable widget that shows a random episode of "Die drei ???" and opens it in Spotify or Sonos
// insert your Spotify client id and secret here
let clientId = "xxx"
let clientSecret = "xxx"
// optional: the ip of your node-sonos-http-api and room name; use "sonos" as parameter in your widget settings to activate it
let sonosUrl = "http://192.168.178.10:5005/Arbeitszimmer"
let openWith = args.widgetParameter
let widget = new ListWidget()
// widget.setPadding(0,0,0,0)