Skip to content

Instantly share code, notes, and snippets.

@zlovatt
zlovatt / ! paperless-ngx Post-Consumption Data Extraction from Filename Script.md
Last active December 7, 2025 13:29
paperless-ngx post-consumption script to extract details from filename

paperless-ngx Post-Consumption Data Extraction from Filename Script

This is a paperless-ngx post-consumption script to extract document data based on the original filename.

It was initially developed by @gulpman and posted in this discussion thread. I've made further changes, detailed below.

Parsing

The script assumes the following pattern: {Date} - {Correspondent} - {Title}, and can parse the following cases:

blueprint:
name: "KNX - Expose binary_sensor state to KNX"
description: "Exposes a binary_sensor state on a KNX group address"
domain: automation
input:
binary_device:
name: "Entity which has the binary state"
description: 'Entity with binary state'
selector:
entity:
@Hermsi1337
Hermsi1337 / hermsi-docker-gc.sh
Created December 7, 2020 16:19
Docker Cleanup Script for Gitlab-Runners
#!/usr/bin/env bash
if [[ -n "${DEBUG}" ]]; then
set -x
fi
# Run container removal
CONTAINER_NAMES_TO_EXCLUDE=()
CONTAINER_NAMES_TO_EXCLUDE+=("gitlab-runner")
@geerlingguy
geerlingguy / molecule-3-up.sh
Last active January 15, 2021 13:52
Molecule 3.0 update script with all the little changes I had to make.
#!/bin/bash
#
# Update things to be compatible with Molecule 3.0.
#
# This script is NOT idempotent, and should never be run again.
exit 1
export LINT_STRING="lint: |
set -e
yamllint .