Skip to content

Instantly share code, notes, and snippets.

@mangtronix
mangtronix / BLEreconnect.scpt
Created April 13, 2024 06:13
Automatically click Connect for a BLE MIDI device on MacOS
-- Automatically click Connect for a BLE MIDI device
-- Runs in a loop - hit stop to end
-- The Bluetooth Configuration window must be open
-- Audio MIDI Setup->MIDI Studio->Open Bluetooth Configuration
-- Enter the device name below and run the script
-- Accessibility control must be enabled for the script to click the button
-- Written with ChatGPT
-- Michael Ang @mangtronix
@mangtronix
mangtronix / uninstall_motu.sh
Last active July 2, 2023 06:26
Disable MOTU Ultralite mk5 driver on MacOS
#!/bin/sh
# Getting multisecond dropouts using Motu Ultralite mk5 drivers
# After disabling the driver and using as class compliant the interface
# still sometimes stops playing audio from the computer and has
# to be hard rebooted :(
# MBP Intel i9, MacOS Ventura
# This needs to be run with SIP disabled
# See https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection
@mangtronix
mangtronix / stylegan2-colab-train.ipynb
Last active October 5, 2020 10:30
StyleGAN2-Colab-Train.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / stylegan2-google-colab-example.ipynb
Last active August 31, 2021 09:38
StyleGAN2 Colab Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / sckit-ffmpeg-video-writing.ipynb
Created August 1, 2020 20:19
Sckit FFmpeg video writing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / flask-on-colab.ipynb
Created August 1, 2020 17:42
Flask on Colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / ganspace.ipynb
Last active August 1, 2020 20:21
Ganspace.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / cifar10_keras_gpu.ipynb
Last active August 1, 2020 20:21
CIFAR10_Keras_GPU.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / stylegan2-google-colab-example.ipynb
Last active July 27, 2020 20:12
StyleGAN2 Google Colab Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mangtronix
mangtronix / oscP5_multicast.pde
Created April 12, 2019 05:42
Example of using OSC multicast with Processing / oscP5
/**
* oscP5multicast by andreas schlegel
* example shows how to send osc via a multicast socket.
* what is a multicast? http://en.wikipedia.org/wiki/Multicast
* ip multicast ranges and uses:
* 224.0.0.0 - 224.0.0.255 Reserved for special Òwell-knownÓ multicast addresses.
* 224.0.1.0 - 238.255.255.255 Globally-scoped (Internet-wide) multicast addresses.
* 239.0.0.0 - 239.255.255.255 Administratively-scoped (local) multicast addresses.
* oscP5 website at http://www.sojamo.de/oscP5
*