Skip to content

Instantly share code, notes, and snippets.

@alanwhite
alanwhite / log.ascii
Created December 22, 2021 12:29
Trying to install libusbmuxd
==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/m4/blobs/sha256:e0fec6a49fd80cc7279c71f319d70d01ed49e894b53cd91e39f170288232fa93
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:e0fec6a49fd80cc7279c71f319d70d01ed49e894b53cd91e39f
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/automake/blobs/sha256:ae77a247a13ea860236a29b02769f5327395f712413f694d8a8d20cb6c21332d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ae77a247a13ea860236a29b02769f5327395f712413f694d8a8
######################################################################## 100.0%
@alanwhite
alanwhite / Indigesturing.java
Last active March 4, 2024 08:19
Sample code to capture MacOS touchpad gestures
package xyz.arwhite.swing;
import java.awt.Dimension;
import java.awt.HeadlessException;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseAdapter;
import javax.swing.JFrame;
import javax.swing.JPanel;
@alanwhite
alanwhite / Indigesturing.java
Created June 2, 2022 20:34
Example Mac OSX Magnify and Rotate gestures in a Swing app that will compile on all platform but only work on Mac (help with other platforms welcome)
package xyz.arwhite.swing;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
@alanwhite
alanwhite / miclist.java
Created September 26, 2023 07:45
List microphones in java
package xyz.arwhite;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;