Skip to content

Instantly share code, notes, and snippets.

@ajthemacboy
ajthemacboy / movedigiphotos.bash
Last active May 2, 2017 23:59 — forked from jvhaarst/movedigiphotos.bash
Bash script to move images, based on exif data and file timestamp
#!/bin/bash
# Reads EXIF creation date from all .JPG files in the
# current directory and moves them carefully under
#
# $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/
#
# ...where 'carefully' means that it does not overwrite
# differing files if they already exist and will not delete
# the original file if copying fails for some reason.
@ajthemacboy
ajthemacboy / checker.py
Created March 18, 2016 19:12
Sucky checker script
from mcstatus import MinecraftServer
with open('serverlist.txt') as f:
for line in f:
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234)
server = MinecraftServer.lookup(line)
try:
# 'status' is supported by all Minecraft servers that are version 1.7 or higher.
status = server.status()
@ajthemacboy
ajthemacboy / checker.py
Created March 18, 2016 19:12
Sucky checker script
from mcstatus import MinecraftServer
with open('serverlist.txt') as f:
for line in f:
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234)
server = MinecraftServer.lookup(line)
try:
# 'status' is supported by all Minecraft servers that are version 1.7 or higher.
status = server.status()