Skip to content

Instantly share code, notes, and snippets.

@j4velin
j4velin / ocr.sh
Last active January 20, 2022 14:30
Script to run ocrmypdf on new pdf files and move the ocr'ed version to the paperless input directory
#/bin/bash
workdir=/home/pi/ocr.work
scaninput=/home/pi/scaninput
outdir=/home/pi/paperless.consume
inotifywait -m -e close_write -e moved_to $scaninput |
while read -r path action file; do
echo "Waiting for $file..."
sleep 10
@Manouchehri
Manouchehri / rfc3161.txt
Last active May 3, 2024 21:50
List of free rfc3161 servers.
https://rfc3161.ai.moda
https://rfc3161.ai.moda/adobe
https://rfc3161.ai.moda/microsoft
https://rfc3161.ai.moda/apple
https://rfc3161.ai.moda/any
http://rfc3161.ai.moda
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
@willurd
willurd / web-servers.md
Last active May 4, 2024 07:22
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000