This is a messy hack - feel free to improve (& share)
save the script
tell snmpd where it is (using pass
) and away you go
#!/usr/bin/env bash | |
/usr/bin/curl -L https://gist.githubusercontent.com/troykelly/69183166ed24f136b41d9f82cf3eec46/raw/logformat.conf -o /etc/nginx/conf.d/logformat.conf | |
pip install -r https://zopefoundation.github.io/Zope/releases/master/requirements-full.txt |
some_other_service_username=USERNAME | |
some_other_service_password=PASSWORD | |
LOCAL_application_namespace=local.example.com | |
CLOUD_application_namespace=cloud.example.com | |
LOCAL_APPWRITE_ENDPOINT=https://local.example.com/v1 | |
LOCAL_APPWRITE_SESSION=a_session_console_legacy=keykeykeykey | |
LOCAL_APPWRITE_PROJECT_ID=local-project-id |
--- | |
version: "3.8" | |
x-default-opts: &default-opts | |
logging: | |
driver: gelf | |
options: | |
gelf-address: udp://${LOG_SERVER:-gelfserver.local}:12201 | |
gelf-compression-type: none | |
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}" | |
labels: purpose,site |
async function streamToArrayBuffer(stream, streamSize) { | |
let result = new Uint8Array(streamSize); | |
let bytesRead = 0; | |
const reader = stream.getReader(); | |
while (true) { | |
const { | |
done, | |
value | |
} = await reader.read(); | |
if (done) { |
#!/usr/bin/env zsh | |
# Check if ffmpeg is installed | |
if ! [ -x "$(command -v ffmpeg)" ]; then | |
echo 'Error: ffmpeg is not installed.' >&2 | |
exit 1 | |
fi | |
# Check if ffprobe is installed | |
if ! [ -x "$(command -v ffprobe)" ]; then |
#!/bin/ash | |
# | |
# To run this as a one liner inside your emby container | |
# wget -O /nvidia-fix https://gist.githubusercontent.com/troykelly/4e759dd29a12d4cf2e25f3a1c73e4ed8/raw/nvidia-fix-emby.sh && chmod +x /nvidia-fix && /nvidia-fix | |
# | |
# Get NVIDIA version from /usr/lib64/libcuda.so.X.Y.Z file | |
NVIDIA_VERSION=$(ls /usr/lib64/libcuda.so.* | sed -E 's/.*libcuda\.so(\.1|\.)?//' | tr -d \\n) | |
# Create links |
#!/bin/ash | |
# | |
# To run this as a one liner inside your emby container | |
# wget -O /nvidia-fix https://gist.githubusercontent.com/troykelly/4e759dd29a12d4cf2e25f3a1c73e4ed8/raw/nvidia-fix-emby.sh && chmod +x /nvidia-fix && /nvidia-fix | |
# | |
# Get NVIDIA version from /usr/lib64/libcuda.so.X.Y.Z file | |
NVIDIA_VERSION=$(ls /usr/lib64/libcuda.so.* | sed -E 's/.*libcuda\.so(\.1|\.)?//' | tr -d \\n) | |
# Create links |
# This is not a script - this is reference for copy pasta | |
# | |
# | |
# Take portainer down and clean up | |
docker-compose -f ~/all-portainer.yaml down && \ | |
docker stop $(docker ps -aq); \ | |
yes | docker system prune --all | |
# Clean up docker |
version: '3.8' | |
x-default-opts: | |
&default-opts | |
logging: | |
driver: gelf | |
options: | |
gelf-address: udp://${GELF_SERVER}:12201 | |
gelf-compression-type: none | |
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}" | |
labels: sy3,traefik |