Skip to content

Instantly share code, notes, and snippets.

View ryanfeeley's full-sized avatar

Ryan Feeley ryanfeeley

View GitHub Profile
@ryanfeeley
ryanfeeley / tesseractops.sh
Created January 22, 2018 17:45
Shell Script for macOS Automator Workflow to OCR Images to Set Finder Comments
for f in "$@"
do
/usr/local/bin/tesseract "$f" stdout | xargs -0 osascript -e 'on run {f, c}' -e 'tell app "Finder" to set comment of (POSIX file f as alias) to c' -e end "$f"
done

Keybase proof

I hereby claim:

  • I am ryanfeeley on github.
  • I am ryanfeeley (https://keybase.io/ryanfeeley) on keybase.
  • I have a public key ASDrvFlLXODgQwcJwZmckPf4RIYNaHi0HuUPopDkD_Jdfgo

To claim this, I am signing this object:

@ryanfeeley
ryanfeeley / gist:176348
Created August 27, 2009 15:04
Education of Single Click
<script type="text/javascript" language="javascript">
document.ondblclick = function() { alert(”We noticed that you just double-clicked a link on this web page. Please be advised that from the very first web browser only single clicks are acceptable. Save your strength.”); }
</script>
@ryanfeeley
ryanfeeley / TTC Print CSS Citizen Hack.css
Created August 18, 2009 21:06
TTC Print CSS Citizen Hack
/*
Reduced font size optimized for printing and switched to sans-serif
*/
body {
font-family: sans-serif;
font-size: 0.76em;
}
/*
Made the words Toronto Transit Commission white as a hack to hide them