Feb 022016
 

I use screen capture.  A lot.  I use it to capture reminders.  I use it to capture technical information that I might need later.  I use it to capture images of bills I have paid online…  You get the idea.  On more than one occasion, I’ve wanted to review an image I captured when I was away from my computer.  What a pain.  So I got thinking about how I could use iCloud document sharing to synchronize the images between devices.  The image files aren’t particularly large.  I use Dropbox for just about everything, so the 5GB of free Apple storage is more than enough.  I’m not terribly worried if Apple changes something with .mac, (I mean .me, I mean iCloud) and deletes all my shit… While I love their (older) computers, their cloud “services” seem to be getting worse and worse in the post Jobs era.

Back on topic, the process to accomplish this was fairly easy, but did require 3rd party software.

I first attempted to save the screen shots directly to the iCloud Documents folder (technically a folder called ‘screenshots’ that I had created there), but no dice.  So I figured I’d just have the screen captures saved in the ‘screenshots’ folder I created in the Pictures folder.  Then use something monit to watch the folder and call a shell script when it sees new files added.

So I got about 5 minutes into that and then remember that I had a copy of Hazel.  Mashing buttons in the shell demonstrates computer ninja skills.  But if you just want to get shit done in a hurry (or you don’t know shit), nothing better than a solid GUI to serve up that command line power.Hazel Rule

You can see the path info in the picture.  But just in case you’ve got those “progressive bifocals” it looks like this:

NOTE:  I added screenshots to keep the root folder clean.

I know, a GUI solution is totally cheating.  You could do it for free with monit….  Whatevs…  Here’s what it looks like on the phone:

Screenshots in iCloud

Sep 222015
 

So I’ve been getting a tremendous amount of spam lately, which is really annoying, since my e-mail is filtered through my own mail server.  Absentmindedly, I’ve been moving the spam into the appropriate “spam” folder each day so that Spamtrainer can do it’s work, and make spamassassin  smarter.  Only spamassassin doesn’t appear to be getting any smarter…  So it occurs to me that I should just make my own rule to deal with the onslaught.  Since most of what I’m seeing slip through the filter – How?  I don’t know! – has ASCII characters used to draw emphasis to the phishing scam of the day, I setup some super basic rules as follows:

NOTE: I had to update the rules to ensure rule names begin with a letter and also escape out any characters reserved for use by regex.   Oops.