Skip to content

Instantly share code, notes, and snippets.

View kyleneideck's full-sized avatar

Kyle Neideck kyleneideck

View GitHub Profile
@kyleneideck
kyleneideck / scrolladaptive.swift
Created August 13, 2026 11:37
UTM - Workaround for macOS guest hangs when scrolling with trackpad
// Permission to use, copy, modify, and/or distribute this software for
// any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
// WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
// FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
// AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
// OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@kyleneideck
kyleneideck / Dockerfile
Last active March 3, 2023 06:02
DRAFT: AppArmor profile for running AUTOMATIC1111's Stable Diffusion web UI in a Docker container
FROM nvidia/cuda:12.0.1-base-ubuntu22.04
RUN apt-get update
RUN apt-get install -y wget git python3 python3-venv vim ffmpeg libsm6 libxext6
RUN useradd --uid 4000 -ms /bin/bash diffuser
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /webui && \
chown -R diffuser:diffuser /webui
@kyleneideck
kyleneideck / headphones-detect.c
Created November 19, 2017 12:10
Runs a command when headphones are plugged in to or unplugged from the built-in audio device.
//
// headphones-detect.c
// Kyle Neideck, kyle@bearisdriving.com
//
// Compile with:
// clang -framework CoreAudio -framework CoreFoundation -o headphones-detect headphones-detect.c
//
// Runs a command when headphones are plugged in to or unplugged from the
// built-in audio device.
//