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
| // 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. |
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, 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. | |
| // |