Skip to content

Instantly share code, notes, and snippets.

@zlovatt
zlovatt / ! paperless-ngx Post-Consumption Data Extraction from Filename Script.md
Last active April 9, 2025 16:44
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:

@fnky
fnky / ANSI.md
Last active April 20, 2025 19:37
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27