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 / StreamMP3_internalDAC.ino
Last active July 3, 2022 21:58
ESP streaming audio example for ESP32 adapted from ESP8266Audio example
#include <Arduino.h>
#ifdef ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include "AudioFileSourceICYStream.h"
#include "AudioFileSourceBuffer.h"
#include "AudioGeneratorMP3.h"
@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 / 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 / TextOnCylinder
Last active August 13, 2020 10:11
FreeCAD macro to wrap text on a cylinder
# Macro to put text on a cylinder. Select a cylinder and one or more
# ShapeStrings to place on the cylinder. You can edit the vertical
# and angular offset of the text in the TextOnCylinder properties.
#
# Michael Ang <http://github.com/mangtronix>
# http://michaelang.com
#
# TODO:
# - Split up the string and actually wrap it around the cylinder
@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 / 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 / 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 / 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.