Skip to content

Instantly share code, notes, and snippets.

@sefsh
sefsh / Exiftool Canonize
Created February 1, 2021 21:34 — forked from jmuspratt/mediaName
exiftool : rename files in current dir to YYYY-MM-DD-HH-MM-SS-1.ext
# Rename image and MOV files according to EXIF capture date, using YYYY-MM-DD-HH-MM-SS.ext
format.
# Files shot within the same second get copy number added (-1,-2, etc.).
# Video files require a different, so we run exiftool 3 times:
# 1. Exclude MOV files and rename the image files with <CreateDate>.
# 2. Target MOV files and rename them with MediaCreateDate (for iPhone videos).
# 3. Target MOV files and rename them with DateTimeOriginal (for Fuji camera videos).
# Requirements: install the package manager Homebrew (http://brew.sh), then install exiftool (type brew install exiftool in Terminal.app).
# Now open Terminal.app, cd to the relevant directory, and run the command.
#!/bin/bash
# The MIT License (MIT)
# Copyright (c) 2013 Alvin Abad
if [ $# -eq 0 ]; then
echo "Git wrapper script that can specify an ssh-key file
Usage:
git.sh -i ssh-key-file git-command
"
#! /bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# This script configures which GPIO pins of the Raspberry Pi will be #
# available and in which direction (read or write). It also takes some #
# actions if someone interacts with the selected pins. #
# #
# More info about the GPIO: http://elinux.org/RPi_Low-level_peripherals #
# #
@sefsh
sefsh / .bash_profile
Last active December 27, 2015 20:23 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management