Skip to content

Instantly share code, notes, and snippets.

View platypython's full-sized avatar

Derrick platypython

View GitHub Profile
@koenbollen
koenbollen / punch.py
Created July 5, 2010 19:10
Proof of Concept: UDP Hole Punching
#!/usr/bin/env python
#
# Proof of Concept: UDP Hole Punching
# Two client connect to a server and get redirected to each other.
#
# This is the client.
#
# Koen Bollen <meneer koenbollen nl>
# 2010 GPL
#
@schlamar
schlamar / processify.py
Last active December 4, 2025 10:37
processify
import os
import sys
import traceback
from functools import wraps
from multiprocessing import Process, Queue
def processify(func):
'''Decorator to run a function as a process.
Be sure that every argument and the return value
#!/bin/sh
# Install:
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/michaeldever/4be94b7dac9add53cc2025522d620ec7/raw/1297ba9b60542e5dd70ab107951ce1c2fac94185/install.sh)"
# References:
# https://gist.github.com/bradp/bea76b16d3325f5c47d4
# https://gist.github.com/CliffordAnderson/817777b5dc0e67769e4b
# https://gist.github.com/codeinthehole/26b37efa67041e1307db
# https://github.com/thoughtbot/laptop/blob/master/mac
@m1no
m1no / motu-bridge.js
Last active November 20, 2025 18:25
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.