Skip to content

Instantly share code, notes, and snippets.

View Anamon's full-sized avatar
💭
I may be slow to respond.

Daniel Saner Anamon

💭
I may be slow to respond.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am anamon on github.
* I am dms (https://keybase.io/dms) on keybase.
* I have a public key whose fingerprint is 3C6C 2EF0 01DC C01E 34A6 B479 C6FA 8DE4 DAC6 FE6C
To claim this, I am signing this object:
@Anamon
Anamon / Turntable Lab autoplay.user.js
Created June 14, 2022 13:12
Turntable Lab autoplay userscript
// ==UserScript==
// @name Turntable Lab autoplay
// @namespace https://www.turntablelab.com/
// @version 0.1
// @description Play all audio samples automatically.
// @author Daniel Saner
// @match https://www.turntablelab.com/products/*
// @icon https://www.google.com/s2/favicons?domain=turntablelab.com
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@Anamon
Anamon / ampel.py
Last active December 13, 2022 07:38
Update USB traffic light by Teams status
#!".venv\Scripts\python.exe"
"""
Sets the red, yellow, and green LEDs of a USB traffic light, depending on Teams status.
The hard-coded VID/PID and hex strings work with the "USB Tisch-Ampel" by Cleware GmbH.
Note: The script determines Teams status by reading the local Teams logfile, and checks which tray icon was last set.
It's easily confused, e.g. when a status change was not reflected in the tray symbol because the "New Activity"
icon was active.