Skip to content

Instantly share code, notes, and snippets.

@datadavev
datadavev / keeganize
Last active October 10, 2016 15:42
BASH script to automate image evaluation using Keegan.
#!/bin/sh
##
# Keegan is a very nice AI image evaluation tool.
# https://keegan.regaind.io/
#
# Keeganize automates processing of an image and capturing the results.
# https://gist.github.com/vdave/9506b3ba1988f7cea0434ec7a8ac49f5
#
# Output is stored as a finder comment in the metadata for the image file.
# Note that there's no error checking so things can go fubar
@datadavev
datadavev / comment
Last active October 10, 2016 15:31
Set from stdin or get OS X finder comment for file
#!/usr/bin/env /usr/bin/python
#https://gist.github.com/vdave/b6289c7edcd831b3ba75c6d11347e4ff
#
# Manages structured content in Finder Comments
#
# The finder comment is treated as a block of text with a section treated
# as a JSON object. The JSON section is delimited in a manner similar to
# ssl certificates with a BEGIN and END line delimiting the JSON object.
#