This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: ./remove_orphans.sh [-f] | |
# | |
# Run this after moving / removing media files on a Synology NAS. | |
[ "$1" = "-f" ] && REMOVE=1 | |
IFS=' | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print a list of possible Python OS error codes together with the symbolic | |
# name in `errno` and the related human readable error message. The output | |
# uses Trac Wiki syntax so it can be copied and pasted in a Wiki document | |
# for later reference. | |
# | |
# The output depends on platform and language settings. | |
import errno | |
import os | |
print('||=code =||=symbol =||=message =||') |
OlderNewer