Skip to content

Instantly share code, notes, and snippets.

View clvx's full-sized avatar

Luis Michael Ibarra clvx

View GitHub Profile
with import <nixpkgs> {};
let
#makeShell returns is assigned a _python_ function which returns a derivation
# which is defined between parenthesis ()
makeShell = python: (mkShell {
name = "python-venv";
buildInputs = with python.pkgs; [
ipython
venvShellHook
#Had to organize my photos based on EXIF metadata.
#Visualize tags per group. It provides the tag name as command for further actions:
exiftool -a -G [file]
#To move/rename photos based on CreateDate EXIF tag use:
exiftool -o . '-Directory<CreateDate' -d /path/%Y/%m -r [pics_to_organize] 2> error.log
# -o .: copies instead of moving. Get rid of it if you want to move instead.
# -d /path/%Y/%m: it will create a year/month directory if it doesn't exist based on the CreateDate file EXIF metadata.