Skip to content

Instantly share code, notes, and snippets.

@timrettop
timrettop / unraid-container-healthcheck-io.sh
Created November 29, 2025 16:07
Unraid Container Healthcheck. Checks docker service for the status of all containers besides Blacklist array, attempts to start any down containers, and reports to Unraid if any fail. Also checks in to healthchecks.io unless any down containers don't start, so healthchecks.io will alert if a checkin hasn't occurred.
#!/bin/bash
# Checks docker service for the status of all containers besides Blacklist,
# attempts to start any down containers, and reports to Unraid if any fail.
# Also checks in to healthchecks.io unless any down containers don't start, so
# healthchecks.io will alert if a checkin hasn't occurred.
# Healthchecks.io API endpoint
url="https://hc-ping.com/<your_healthcheck_endpoint>"
max_attempts=2
attempt=1
This file has been truncated, but you can view the full file.
sia-hostd | 2025-06-14T14:46:00-05:00 INFO loaded config file {"path": "/data/hostd.yml"}
sia-hostd | 2025-06-14T14:46:00-05:00 INFO hostd {"version": "v2.3.2-beta.1", "network": "mainnet", "commit": "dd3589a", "buildDate": "2025-06-14T10:46:34-05:00"}
sia-hostd | 2025-06-14T14:46:00-05:00 DEBUG sqlite3 using deprecated hostd.db {"path": "/data/hostd.db"}
sia-hostd | 2025-06-14T14:46:00-05:00 DEBUG sqlite3 database initialized {"sqliteVersion": "3.49.1", "schemaVersion": 40, "path": "/data/hostd.db"}
sia-hostd | 2025-06-14T14:46:00-05:00 DEBUG checking for v2 commitment migration
sia-hostd | 2025-06-14T14:46:00-05:00 DEBUG tip block commitment matches parent state -- no migration needed {"tip": "00000000000000000f5de7819fec4410f79a33a9e9d0ed960a2df5b76e611408", "commitment": "5ccd76f57cfc55ce751ec16c3b83a4c5db50c1b4ac02fdef7d23d32d7c5ff196", "expected": "5ccd76f57cfc55ce751ec16c3b83a4c5db50c1b4ac02fdef7d23d32d7c5ff196"}
sia-hostd | 2025-06-14T14:46:00-05:00 DEBUG starting syncer {"syncer address": "127
@timrettop
timrettop / gist:86cf674dc4743dca99ee7e9a30dc6f6b
Created January 7, 2024 06:15
Slackware builds libde265/libheif and dependencies for imagemagick heic/heif support
Slackware package install scripts
mkdir /src && cd /src
#Prepare libheif
wget https://slackbuilds.org/slackbuilds/15.0/libraries/libheif.tar.gz
tar xzvf libheif.tar.gz
cd libheif
wget https://github.com/strukturag/libheif/releases/download/v1.17.6/libheif-1.17.6.tar.gz
chmod +x libheif.SlackBuild
@timrettop
timrettop / gist:8dc3350df8be00d38993606daa061d76
Created January 6, 2024 21:20
Run alpine docker and build imagemagick with heic support
docker run -it --mount type=bind,src="$(pwd)",target=/src alpine:latest
apk add --update alpine-sdk libheif-dev libde265-dev
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick
cd ImageMagick/
#Optional change to a specific version
git checkout tags/7.1.1-22
./configure --with-heic=yes --with-jpeg=yes
make -j4