Check These Out
Change the original date set by camera :
Create Date : 2020:08:21 13:26:24.63 //Operating System: Date Created (ie: sdcard)
Date/Time Original : 2020:08:21 13:26:24.63 // Set by camrea when you point and click for photo
Modify Date : 2020:08:21 13:26:24.63 //Operating System: Modified (ie: sdcard)
Exif argument examples are :
exiftool.exe ā-DateTimeOriginal+=0:0:0 5:30:0ā filename.jpg (add 5 hours and 30 minutes to the Exif Date/Time Original)
exiftool.exe" "-modifydate-=0:0:0 0:25:0" filename.jpg (reduce the Exif Modify Date to 25 minutes)
exiftool.exe ā-AllDates+=Y:M:D h:m:sā filename.jpg (Change all exif date values to Y:M:D h:m:s)
Source:
http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2008-04/msg00068.html
To check if the table-of-content in a LaTeX document is up-to-date, copy it to a backup before running LaTeX and compare the new .toc to the backup. If they are identical, it is updated. If not, you need to run LaTeX again.
replaces "\n" with "+"
Converts any number of seconds into days, hours, minutes and seconds.
sec2dhms() {
declare -i SS="$1"
D=$(( SS / 86400 ))
H=$(( SS % 86400 / 3600 ))
M=$(( SS % 3600 / 60 ))
S=$(( SS % 60 ))
[ "$D" -gt 0 ] && echo -n "${D}:"
[ "$H" -gt 0 ] && printf "%02g:" "$H"
printf "%02g:%02g\n" "$M" "$S"
}
You might want to secure your AWS operations requiring to use a MFA token. But then to use API or tools, you need to pass credentials generated with a MFA token.
This commands asks you for the MFA code and retrieves these credentials using AWS Cli. To print the exports, you can use:
`awk '{ print "export AWS_ACCESS_KEY_ID=\"" $1 "\"\n" "export AWS_SECRET_ACCESS_KEY=\"" $2 "\"\n" "export AWS_SESSION_TOKEN=\"" $3 "\"" }'`
You must adapt the command line to include:
* $MFA_IDis ARN of the virtual MFA or serial number of the physical one
* TTL for the credentials
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"