Skip to content

Instantly share code, notes, and snippets.

View zholmquist's full-sized avatar
🌐
OrcaPanda.

Zach Holmquist zholmquist

🌐
OrcaPanda.
View GitHub Profile
@zholmquist
zholmquist / Hazel + Evernote Logging
Last active May 19, 2017 00:39
Hazel Embedded AppleScript that logs filename to Evernote. I use this in a script that cleans up my Desktop and Downloads and files everything away.
tell application "Evernote"
tell application "Finder" to set file_name to (name of theFile)
set time_string to do shell script "date '+%H:%M:%S'"
set date_string to do shell script "date '+%Y-%m-%d'"
set message to "<p><b>" & time_string & "</b> | Moved <em>" & file_name & "</em></p>"
set matches to find notes date_string & " notebook:Log"
if (count of matches) is 1 then
set the_note to item 1 of matches
@zholmquist
zholmquist / gist:8501698
Created January 19, 2014 07:36
Using Launch Center Pro, Clear and TextExpander for my daily rituals.

// TextExpander Snippet Abbreviation: Take Medicine, Wallet, iPad, Laptop, Workout, Load Podcasts, Load RSS, Turn OFF front light Content: Take Medicine, Wallet, iPad, Laptop, Workout, Load Podcasts, Load RSS, Turn OFF front porch light.

// The URL clearapp://list/create?listName=[[list|Morning=Morning%20Ritual&tasks={{<>}}|Evening=Evening%20Ritual&tasks={{<>}}|Gym Morning=Gym%20Morning%20Ritual&tasks={{<><>}}]]

@zholmquist
zholmquist / gist:8749020
Created February 1, 2014 06:57
Launch Center Pro + Google Maps to get Transit Times.
comgooglemaps://?saddr=[[list|To Home=Main+Street+@+450+S,+Salt+Lake+City,+UT&daddr=Grandville+Ave.+@+10605+S,+South+Jordan,+UT&daddr=Grandville+Ave.+@+10605+S,+South+Jordan,+UT|To Work=Grandville+Ave.+@+10605+S,+South+Jordan,+UT&daddr=224+S+200+W,+Salt+Lake+City,+UT]]&directionsmode=transit
### Keybase proof
I hereby claim:
* I am zholmquist on github.
* I am zholmquist (https://keybase.io/zholmquist) on keybase.
* I have a public key whose fingerprint is 9DE7 C498 8525 A97B 0DAD 7709 8769 E197 FC8D D602
To claim this, I am signing this object:
@zholmquist
zholmquist / brivo.py
Created July 6, 2017 16:44
Slack Command + Brivo Access Control
import requests
import urlparse, boto3, json, base64
from slacker import Slacker
class BrivoAPI(object):
def __init__(self, *args, **kwargs):
self.access_token = None
self.api_key = args[0]
self.client_id = args[1]

Gmail Filters

Catch newsletters and junk

Matches: ("opt-out" OR unsubscribe OR "viewing the newsletter" OR "privacy policy" OR enews OR "edit your preferences" OR "email notifications" OR "update profile" OR smartunsubscribe OR secureunsubscribe OR yahoogroups OR "manage your account" OR "group-digests") Do this: Skip Inbox, Apply label "Work/Newsletters"

Keep pesky calendar invites out of inbox

Matches: (subject:("invitation" OR "accepted" OR "rejected" OR "updated" OR "canceled event" OR "declined") when where calendar who organizer) Do this: Skip Inbox, Apply label "GTD/Follow up"

Keep 90% of Sales emails out of Inbox