Skip to content

Instantly share code, notes, and snippets.

Keith Murray kdmurray

Block or report user

Report or block kdmurray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kdmurray
kdmurray / organize-photos.py
Created May 17, 2015
Photo management script to move folders from a generic import location to a hierarchical set of folders organized by year and month.This script was originally written by Dr. Drang: http://www.leancrew.com/all-this/2013/10/photo-management-via-the-finder/ I've added support to detect Nikon Raw (.nef) files and to create the directories it needs i…
View organize-photos.py
#!/usr/bin/python
import os, shutil
import subprocess
import os.path
from datetime import datetime
######################## Functions #########################
def photoDate(f):
View update-dns.sh
#!/bin/sh
# Modified by kdmurray from the source at https://gist.github.com/mhussain/2634050
# - Removed the comparison to the old WAN IP, forces an update each time the script is run
# - Added the touch command to an empty hidden file (~/.last-linode-ddns-refresh) to show
# when the last DDNS update took place.
LINODE_API_KEY=your-linode-api-key
DOMAIN_ID=your-domainid
RESOURCE_ID=your-domain-resourceid
You can’t perform that action at this time.