Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bobbidigital
bobbidigital / gist:51704e6ddda8a58c7a9c
Created March 5, 2015 04:40
Convert email in Airmail2 to a task with the body of the message as a note.
tell application "Airmail 2"
set theMessage to selected message
tell theMessage
set theContent to htmlContent
set theSubject to subject
end tell
tell application "OmniFocus"
tell quick entry
set theRTFMessage to do shell script "echo " & quoted form of theContent & "|/usr/bin/textutil " & " -convert txt -stdin -stdout -format html"
make new inbox task with properties {name:theSubject, note:theRTFMessage}
@bobbidigital
bobbidigital / gist:f12e1156cb3b728b72fb
Created February 24, 2015 14:15
Generate a Signed URL that Expires (Python)
import boto
import boto.s3.connection
access_key = ''
secret_key = ''
conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
#is_secure=False, # uncomment if you are not using ssl
calling_format = boto.s3.connection.OrdinaryCallingFormat(),