Skip to content

Instantly share code, notes, and snippets.

View NixImagery's full-sized avatar

Nick Hood NixImagery

View GitHub Profile
""" A Python script to walk a directory tree, renaming .jpg and .JPG files.
Written for a client who had a directory containing multiple directories, each containing
zero or more (up to 100) image files. Most of the images were named abitrary1.jpg or arbitrary2.JPG.
The clinet wanted each folder's images to be numbered 001.jpg to nnn.jpg for some further process.
nick@cullaloe.net
Available under the MIT License:
Copyright (c) 2018 Nick Hood
@NixImagery
NixImagery / Missing pandoc defaults file.md
Last active April 15, 2024 08:57
pandoc throws "file not found" for defaults.yml

Occurs in visual studio code, using pandoc citer extension. Typing '@' in the editor throws an error, reporting the file 'default.yml' is missing.

Resolution is to provide the file. First, find the pandoc data directory:

% pandoc -v
pandoc 3.1.12.3
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/dave/.local/share/pandoc