Skip to content

Instantly share code, notes, and snippets.

View jonathanslenders's full-sized avatar

Jonathan Slenders jonathanslenders

View GitHub Profile
@m1no
m1no / motu-bridge.js
Last active January 18, 2026 00:51
MOTU Ultralite-mk5 API Bridge
// MOTU Ultralite-mk5 API Bridge
// Author: mino
// Date: 2023-02-22
// License: MIT
//
// Description:
// ------------
// I was looking for a easy way to mute and umute my main speakers via a Stream Deck button on the MOTU Ultralite-mk5.
// Unfortunately, Motu does not provide an HTTP API for this series, this feature is only available on the AVB devices.
// But with a bit of tinkering and reverse engineering of the Motu CueMix 5 app, it is possible to understand the used protocols and to send arbitrary commands.
@vxgmichel
vxgmichel / telnet-python.py
Last active October 30, 2020 09:23
Serving ptpython using telnet
#!/usr/bin/env python
"""
Serving ptpython using telnet
I ran into several issues when writing this piece of code, both with ptpython
and prompt_toolkit. Find below a short description for each of them.
Ptpython issues:
----------------
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@theSage21
theSage21 / regex-engine.py
Created May 14, 2016 07:24
A very simple regular expression engine for learning purposes
# Define some special things
SPECIAL = '*|'
ALPHABET = '10'
EPSILON = None
# functions
def automaton_print(automaton):
"Neatly prints the automaton"
states, alphabet, start, final, transfer = automaton
print('STATES : ', states)
@XVilka
XVilka / TrueColour.md
Last active June 14, 2026 20:56
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!