Skip to content

Instantly share code, notes, and snippets.

View kyleneideck's full-sized avatar

Kyle Neideck kyleneideck

View GitHub Profile
@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.
//