This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// headphones-detect.c | |
// Kyle Neideck, [email protected] | |
// | |
// 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. | |
// |