Skip to content

Instantly share code, notes, and snippets.

View pavax's full-sized avatar

Patrick D. pavax

  • schaltstelle
  • Bern, Switzerland
View GitHub Profile
@pavax
pavax / nsfw.oisd.nl
Created December 29, 2024 17:52
nsfw.oisd.nl having the ctag=user_child applied
This file has been truncated, but you can view the full file.
[Adblock Plus]
! Version: 202412291713
! Title: oisd nsfw
! Description: Block. Don't break.
! Syntax: Adblock Plus Filter List
! Entries: 329315
! Last modified: 2024-12-29T17:13:57+0000
! Expires: 1 hours
! License: https://github.com/sjhgvr/oisd/blob/main/LICENSE
! Maintainer: Stephan van Ruth
@pavax
pavax / update-mkv.sh
Last active February 8, 2025 13:13
script to check for optical drive changes and update docker-compose files
#!/bin/sh
# Path to the Docker Compose file
DOCKER_COMPOSE_FILE="/volume2/mkv/makemkv-docker/docker-compose.yml"
find_device_paths_from_compose() {
echo "Searching for device paths in the Docker Compose file..."
device_path_sr=$(grep -o '/dev/sr[^:"]*' "$DOCKER_COMPOSE_FILE" | head -n1)
device_path_sg=$(grep -o '/dev/sg[^:"]*' "$DOCKER_COMPOSE_FILE" | head -n1)