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/bash | |
set -Eeuo pipefail | |
# | |
# 20191001 | tatze | |
# ------------------------------------------ | |
# programs needed: | |
# - ffmpeg | |
# - youtube-dl | |
# ------------------------------------------ | |
# ------------------------------------------ |
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/bash | |
set -Eeuo pipefail | |
# | |
# 20190822 | tatze | |
# ------------------------------------------ | |
# programs needed: | |
# - ffmpeg | |
# - imagemagick | |
# ------------------------------------------ | |
# ------------------------------------------ |
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
</dev/urandom tr -dc 'A-Za-z0-9!#$%&\()*+,-./:;<=>?@[\]^_{|}' | head -c 20 ; echo |
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
find . -iname '._*' -exec rm -rf {} \; |
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
# add trailing timestamps when missing | |
# needs: exiftool | |
# | |
# Regular files | |
find . -iregex '.*\.jpe?g$' -not -regex '.*/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9].*' -exec exiftool -q -d "%Y%m%d_%H%M%S-%%f.%%e" "-filename<createdate" {} \; | |
find . -iregex '.*\.mp4$' -not -regex '.*/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9].*' -exec exiftool -q -d "%Y%m%d_%H%M%S-%%f.%%e" "-filename<createdate" {} \; | |
# | |
# Apple files | |
find . -iregex '.*\.HEIC$' -not -regex '.*/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9].*' -exec exiftool -q -d "%Y%m%d_%H%M%S-%%f.%%e" "-filename<createdate" {} \; | |
find . -iregex '.*\.mov$' -not -regex '.*/[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9][0-9][0-9].*' -exec exiftool -q -d "%Y%m%d_%H%M%S-%%f.%%e" "-filename<creationdate" {} \; |