Skip to content

Instantly share code, notes, and snippets.

@oPromessa
oPromessa / .bash-login.md
Last active January 16, 2023 23:17
exiftool related functions simplify repetitive tasks.

Place this on your ~/.bash_login file so that functions are available on your BASH upon every login.

###############################################################################
#
# Standard Alias: Uncomment the ALIASES entries you elect to use from this section
#
###############################################################################
#alias vibashl='vi ~/.bash_login'

#alias ll='ls -lisahG'
@oPromessa
oPromessa / .exiftool_bash_aliases
Last active October 20, 2018 15:33
Helpful bash exiftool related functions to set various EXIF and date/time values on pics and movies files.
###############################################################################
#
# EXIFTOOL related commands
#
###############################################################################
if [ ! -f ~/EXIF_format.fmt ]
then
cat > ~/EXIF_format.fmt << EOF
#[HEAD]Directory|FileName|Make|DateTimeOriginal|FileModifyDate|CreateDate|Keywords|Subject|ImageOrientation|Caption-Abstract|ModifyDate|Description
\$Directory|\$FileName|\$Make|\$DateTimeOriginal|\$FileModifyDate|\$CreateDate|\$Keywords|\$Subject|\$ImageOrientation|\$Caption-Abstract|\$ModifyDate|\$Description
#!/usr/bin/env python
"""
by oPromessa, 2018
flickrapi login example (python 2.7 and 3.6 compatible)
"""
import sys
import os
import logging
import flickrapi