Shell Tools

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2025-05-22
12:27
Scan_adf.xsh: Make the scan resolution configurable. Pass the used resolution to img2pdf to have the proper PDF scale in the meta data. Leaf check-in: a68b5aad01 user: thomas tags: trunk
12:25
Scan_flatbed.xsh: Properly set the resolution in the img2pdf invocation. This makes the result PDF have the proper scale in the meta data. check-in: bd0c91d087 user: thomas tags: trunk
2025-05-17
12:55
scan_adf: Support full-width scans, by ensuring that the x_pos does not become negative. check-in: fa99eed55a user: thomas tags: trunk
2025-05-01
10:29
Scan scripts: Update year in the copyright header check-in: 4db6252e2e user: thomas tags: trunk
10:29
fetch_apt_signature.xsh: Add copyright and license header. Allow giving the filename with .gpg suffix, as that's how it is printed on screen by apt. check-in: 7f6cd237ea user: thomas tags: trunk
10:28
dl-nyaa.xsh: Add copyright and license header. Some minor code style cleanup. check-in: aa47ebc934 user: thomas tags: trunk
10:15
Scan scripts: Stop using the "convert" tool deprecated with imagemagick 7.0. Use "magick convert" instead. check-in: 840c0c7fcd user: thomas tags: trunk
10:13
Scan scripts: Use a lightweight intermediate image format, instead of PNG. This saves multiple PNG encoding passes, one by scanimage and one by imagemagick. The final PNG encoding is performed by optipng. check-in: 986c36b6fb user: thomas tags: trunk
2025-04-28
22:40
Implemented selectable, config-file backed presets for the scan scripts. Added image rotation option. All options can now be set via config file. check-in: e4d4b0f601 user: thomas tags: trunk
13:37
scan_adf: Only pass -black-threshold and -white-threshold to convert, if the parameter is non-zero. Closed-Leaf check-in: 41f8d60246 user: thomas tags: scan_profiles
12:12
Shorten option --clip-threshold-percent to --clip-threshold check-in: 2dc272b5a6 user: thomas tags: scan_profiles
09:36
Remove preset choices listing, since that is already done implicitly. check-in: a78de58af6 user: thomas tags: scan_profiles
09:35
Implement rotating scanned images in 90° steps check-in: 03cb24eac1 user: thomas tags: scan_profiles
09:14
Made clip threshold configurable via config file. check-in: bbe4e336f9 user: thomas tags: scan_profiles
08:58
Add option listing all available presets check-in: a512bd7c4d user: thomas tags: scan_profiles
08:29
Support disabling duplex scanning, if it is enabled via preset check-in: f05d46f2ac user: thomas tags: scan_profiles
08:16
Add duplex flag and default color mode configurable via config file. check-in: 351ff985bd user: thomas tags: scan_profiles
07:56
Support having incomplete profile specifications. Keys not present are loaded from the config file DEFAULT section check-in: 6971851c8a user: thomas tags: scan_profiles
2025-04-27
22:08
Bump versions by 1 minor revision check-in: d6e7da5222 user: thomas tags: scan_profiles
22:07
Remove an unused local variable check-in: 2e79b73b6b user: thomas tags: scan_profiles
22:05
Extract argument parser generation into a separate function. Perform two argument parsing passes. First pass extracts the preset, second pass then uses the defaults from the preset and is used as the script arguments. check-in: 731b9dad2e user: thomas tags: scan_profiles
21:43
Scan_adf: Use long-form options for the xargs call check-in: b90db69fa9 user: thomas tags: scan_profiles
21:39
Scan_flatbed: Remove dead code check-in: da418185cb user: thomas tags: scan_profiles
21:27
Remove unnecessary list() constructor use. check-in: ab7a19a681 user: thomas tags: scan_profiles
21:25
Use ArgumentParser choices= option for presets. check-in: 53e34b89b8 user: thomas tags: scan_profiles
21:23
Refactor scan_*.xsh scripts to allow having multiple presets. The config loader logic no longer strips additional sections in the config file. The argument parser got a --preset option. check-in: 28124bf1a1 user: thomas tags: scan_profiles
17:06
Adjust URLs for Penny and Kaufland Leaf check-in: 44c3c0cb72 user: thomas tags: fix_leaflet_bot
16:42
merge with trunk check-in: 491e2210b8 user: thomas tags: fix_leaflet_bot
2025-04-26
16:59
Port scan_adf and scan_flatbed from appdirs to platformdirs. Unsure why the legacy module was even used to write this in the first place. check-in: 544ae00a56 user: thomas tags: trunk
2025-04-10
14:42
Add script for duplex printing on a simplex printer check-in: c0f2853dec user: thomas tags: trunk
14:14
Add old script for ripping DVDs check-in: ce83f8916e user: thomas tags: trunk
2025-03-30
13:04
Add script fetch_apt_signature.xsh, which updates Ubuntu PPA repository signing keys. check-in: ea669d3c18 user: thomas tags: trunk
2025-03-15
11:49
Revert [6dc36e8009674c7d] check-in: 989bb2dc12 user: thomas tags: fix_leaflet_bot
2025-03-08
14:58
Refactor PDF construction in the PennyDownloader. Instead of telling img2pdf to output to a temp dir, and then read from output, directly use the capability to output totandard output. check-in: 08e23aacef user: thomas tags: fix_leaflet_bot
14:48
Adjust URL path for Penny leaflets check-in: 6dc36e8009 user: thomas tags: fix_leaflet_bot
2025-03-04
19:41
Fix issues with the leaflet downloader script. check-in: 915dfa873d user: thomas tags: trunk
19:39
Fix Netto downloader. Fail earlier during the PDF path discovery whenever some expected value is not found. Adjust the HTML tree path for the downloader button to reflect changes in the website. check-in: 5ea3e847e9 user: thomas tags: fix_leaflet_bot
19:22
Adjust the numerical parameter in the Lidl downloader. Also assert that downloaded PDFs must be at least 100KiB, which aborts failed downloads early. check-in: 89804fb8bd user: thomas tags: fix_leaflet_bot
19:20
Up the retry interval to 6h. This spreads the 5 retries over a 30 hr period, increasing likelihood of handling delayed publishing. check-in: cab853039a user: thomas tags: fix_leaflet_bot
2025-02-23
13:10
scan_flatbed.xsh: Skip calling img2pdf, if no files are scanned to prevent the script from hanging in that case. check-in: 4d9ac83574 user: thomas tags: trunk
2025-02-22
22:02
scan_adf: Adjusted positioning. Removed 5mm offset, and simplified centering logic. check-in: b1a2df449a user: thomas tags: trunk
2025-02-14
20:15
Fix Netto downloader. The previously assumed constant ID was not constant. Extract the correct PDF path from the website. check-in: 17dae30cd2 user: thomas tags: fix_leaflet_bot
19:03
Fix the NettoScottie downloader. The assumed-constant hex id was not actually a constant. The new approach asks the REST API for all catalogs for a hopefully constant dealer/shop id, then fetches the proper leaflet from there. check-in: 72e475d494 user: thomas tags: fix_leaflet_bot
2025-02-13
11:35
backup-paperless.xsh: Restore missing --exclude-from parameter in bup index call. Ignoring unwanted stuff works again check-in: 6de5461709 user: thomas tags: trunk
2025-02-11
15:46
Fix udev rule to only trigger on device plug-in, and not on disconnect check-in: f7c49f3685 user: thomas tags: trunk
15:13
run-in-gui: Use udev with systemd user services to run GUIs on USB device plugin. Currently for Yubico Yubikey USB FIDO2/TOTP hardware security devices. check-in: 8a7abc964e user: thomas tags: trunk
11:26
Add a bot that manages leaflets in a Paperless-ngx installation. Consists of - A download script that downloads leaflets as PDF and adds them to a Paperless-ngx installation - Weekly systemd timers to trigger downloads - A cleanup script that moves outdated leaflets to the trash bin - A monthly systemd timer for monthly-released magazines check-in: 51cddc81ff user: thomas tags: trunk
2025-02-06
21:44
Add a bunch of docstrings to methods. Closed-Leaf check-in: 30a6b647c0 user: thomas tags: paperless_leaflet_bot
19:30
Add missing correspondent in config.ini check-in: 1140a6dfc0 user: thomas tags: paperless_leaflet_bot
19:28
Implemented downloading from Penny. Construct a PDF from a sequence of PNGs offered by the website check-in: d0ab51466c user: thomas tags: paperless_leaflet_bot