Skip to content

Instantly share code, notes, and snippets.

View emanuelschmoczer's full-sized avatar

Emanuel Schmoczer emanuelschmoczer

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
####### set custom path ##############
export PATH=$PATH:~/bin
export PATH=$PATH:~/usr/local
######################################
# export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home'
@ahacke
ahacke / Exiftool Cheats (for Synology Photostation).md
Last active July 28, 2023 02:15
Contains exiftool cheats and tricks, mostly used for Synology Photostation

Exiftool Cheats (for Synology Photostation).md

Contains scripts to modify exif metadata on media files. Generally, I used them for the synology photostation.

Another good reference with exif tricks: https://gist.github.com/rjames86/33b9af12548adf091a26

All of the commands or scripts require ExifTool by Phil Harvey.

Recommended Order of Running the Commands and Scripts

  1. Set CreateDate for Video-Media
  2. Set 'CreateDate' Based on FileName Supporting Different Formats
@bmhatfield
bmhatfield / .profile
Last active March 18, 2024 07:43
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active April 30, 2024 23:36
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName