Skip to content

Instantly share code, notes, and snippets.

@paultheman
paultheman / exiftool-rename
Last active August 11, 2024 13:56
Rename files with exiftool
exiftool -fileOrder datetimeoriginal -d "%Y%m%d_CUSTOMNAME_%%.3nc.%%e" "-Filename<DateTimeOriginal" -o Renamed/ .
Dry-run
exiftool -fileOrder datetimeoriginal -d "%Y%m%d_CUSTOMNAME_%%.3nc.%%e" "-testname<DateTimeOriginal" .
@paultheman
paultheman / mac_keyremapping.md
Last active April 17, 2025 06:33
Guide on how to remap Keyboard keys on macOS

Guide on how to remap Keyboard keys on macOS

Update 17.10.2024: macOS 15 no longer requires root privileges for hidutil, you need to add hidutil and Terminal to 'Input Monitoring' in Settings/Privacy & Security tab.

Update 13.04.2024: On macOS 14.2 hidutil requires root privileges.

If you have a mac with an INT (ISO) keyboard you might want to change the ± key to ~. During my research I found that the information on this topic is not at all centralized. I prefer this option because it does not involve installing new software.

With macOS 10.12 Sierra Apple introduced hidutil as a tool to remap keyboard keys. See TN2450.