Using Contacts.app with TextExpander v2: Objective-C and JavaScript

I was generally happy with how I was using Contacts.app with TextExpander to create snippets for my emails, phone numbers and addresses. However, as I eventually realized, I have to have Contacts.app running for it to work. When AppleScript and JavaScript talk to applications in OS X, they have to be running. That isn't the case for C and Objective-C libraries, so I decided to see how hard it was to use the Objective-C bindings for Javascript. [Read More]

2015-10-24

Category: Tech

Tags: scripting, textexpander, efficiency, javascript, objectivec


Adding Critical CSS in Pelican

As it turns out, adding critical css wasn't trivial, but didn't take as much effort as I had originally thought. My site's layout doesn't contain that much styling, and so I simply added all of my CSS as an inline style tag. The tricky part, was getting Jinja to play … [Read More]

Updated on 2017-01-05

Category: Tech

Tags: pelican, scripting, python


Improving Your Site's Load Times

While reading through my RSS feeds the other night, I came across this article from One Tap Less about what he did to improve load times on his site. My first thought was, "I use a static site, I don't need to worry about this" and dismissed it. Then I figured, why not just try out my site on Google's PageSpeed Insights. Turns out, I had some work to do. [Read More]

2015-09-12

Category: Tech

Tags: pelican, javascript, scripting


Backup Your Email with Getmail

It's always a good idea to keep backups of data you can't replace, including email. For the last few years, I've had a script that automatically backs up my Gmail account. Since switching to Fastmail, I figured I should continue doing the same thing. It turned out, it was pretty easy to set up another account. [Read More]

2015-09-06

Category: Tech

Tags: scripting, email, backup


Using Contacts.app with TextExpander

Changing your email or phone number isn't fun. You have to tell everyone, update all of your online accounts, and make sure your TextExpanders are up-to-date with the right information. One of the places I will always update is my contact information in Contacts.app, so why not just use that as the source of truth for TextExpander snippets? [Read More]

Updated on 2015-09-20

Category: Tech

Tags: scripting, textexpander, efficiency, javascript


Filling Forms with PDFPen and Javascript

My adventure with Mac Javascript Automation continues. Things still aren't easy and the documentation is poor, but I'm finding that it's still easier to write automation scripts in Javascript than it ever was with Applescript. [Read More]

2015-06-06

Category: Tech

Tags: scripting, efficiency, javascript, applescript


Automatically Attach tmux in SSH Session

I frequently work in ssh sessions and have found terminal multiplexers like tmux to be invaluable. The problem I was constantly facing was having to re-attach or create a new session each time I would ssh into a machine. Sometimes I would accidentally create a new session when one already existed and would then have to find where I had been working previously. [Read More]

2015-05-09

Category: Tech

Tags: scripting, efficiency, bash


Apple Watch for Cycling

I ride with a Garmin 810 with a cadence/speed sensor1. I wanted to compare the Garmin to the Apple Watch for a bike ride. [Read More]

2015-05-03

Category: Tech

Tags: cycling, applewatch


Download Paychecks from ADP with Python

If your employer uses ADP, you'll know how terrible their website is. I always dread having to go to the website, but I like to download my paychecks every two weeks. [Read More]

2015-04-05

Category: Tech

Tags: scripting, python, efficiency


How I use my Mac Mini Server on Macminicolo

I frequently get asked why I use Macminicolo and if it's worth it. It's a relatively expensive hobby, but it gives me so much benefit that at this point I couldn't live without it. Having an always-on Mac opens up a lot of opportunity and I'm always finding new things to use it for. [Read More]

2015-02-09

Category: Tech

Tags: Dropbox, efficiency, hazel, scripting

© Ryan M 2016. Built using Pelican. Hosted on Macminicolo