Skip to content

Instantly share code, notes, and snippets.

@dfsnow
dfsnow / json-exporter-config.yaml
Last active October 5, 2025 03:21
Export Jellyfin playback statistics to Prometheus and Grafana. See https://sno.ws/jellyfin-stats for more info
modules:
jellyfin:
headers:
# The Token value here needs to be an API key generated from the
# Jellyfin admin panel. It's hard-coded here but I'm sure there's
# a better way
Authorization: MediaBrowser Token=ADD_TOKEN_HERE
Content-Type: application/json
accept: application/json
@tobz
tobz / steps.md
Last active April 22, 2026 17:54
Migrate Radarr from SQLite to Postgres

Migration steps

  1. Upgrade Radarr to at least v4.1.0.6133 or newer. This brings in support for Postgres. This will also ensure that all of your SQLite tables have the latest schema migrations applied before we migrate to Postgres. If you want to upgrade further, that's fine too, but make sure you've completed all upgrades first before continuing.
  2. Create your Postgres databases (one for the "main" database and one for the "logs" database) and configure Radarr with the relevant Postgres credentials. Both databases need to be owned by/accessible from the same Postgres user.
  3. Restart Radarr, and ensure it connects to Postgres and runs all schema migrations.
  4. Once all schema migrations have been applied, and no other activity is occurring, stop Radarr.
  5. Copy the SQLite databases from the Radarr instance/pod, both the main database and logs database. For this guide, we'll assume these files are called radarr.db and logs.db.
  6. Using pg_dump -s, dump the schema for the main Radarr database . P
@ytingyeu
ytingyeu / 1-mongo-docker-tls-snyology.md
Last active January 27, 2025 03:28
Run MongoDB with TLS in Docker on Synology NAS

Summary

A note to run MongoDB with TLS in Docker on Synology NAS.

Pre-setup

Ignore any step if you have already done.

Install Docker via DSM Packages

Do I need to explain?

image text

How to

Material for 6 gates

lights

  1. 6x 2mm string LED, green, blue and pink are bright colors, where green is the brightest one. (12e) I can confirm that are to bright in my case, I still need to fix it.

tube

  1. I used 10m of 10x12 Polyamide(PA or PA12) tube but PE or PEXa material also work, can be found in some specialized store.
  2. Some long straight 20cm outer diameter tube used for the structure, easy to be found in any local store. I use about 7-8m (20cm each leg and 50cm or 30cm for the body)