Skip to content

Instantly share code, notes, and snippets.

View masonoise's full-sized avatar

Mason Jones masonoise

View GitHub Profile
@masonoise
masonoise / keybase.md
Created July 15, 2015 22:58
keybase.md

Keybase proof

I hereby claim:

  • I am masonoise on github.
  • I am masonoise (https://keybase.io/masonoise) on keybase.
  • I have a public key whose fingerprint is 23DE 3506 201B 7BB8 4746 BA51 3F36 B807 1D70 B942

To claim this, I am signing this object:

@masonoise
masonoise / MailgunS3Attachment.rb
Created May 21, 2013 23:58
Wrapper class to enable using AWS S3 objects as attachments when sending mail via the Mailgun REST interface using RestClient. This allows reading directly from the S3 object instead of creating an intermediate temp file.
#
# This class will wrap an S3 object and provide the methods that the Mailgun library expects in order
# to use the S3 object for sending a mail attachment.
#
# Use as follows:
#
# data = Multimap.new
# data[:from] = "My Self <no-reply@example.com>"
# data[:subject] = "Subject"
# data[:to] = "#{recipients.join(', ')}"