Skip to content

Instantly share code, notes, and snippets.

View seedifferently's full-sized avatar

Seth Davis seedifferently

View GitHub Profile
@seedifferently
seedifferently / sshid3.rb
Created December 23, 2011 00:31
Read ID3 info over SSH via Ruby
require 'net/sftp'
require 'mp3info'
require 'stringio'
io = StringIO.new
Net::SFTP.start('host.com', 'username', :password => 'password', :port => 22) do |sftp|
f = sftp.file.open("/path/to/file.mp3", "r")
begin
@seedifferently
seedifferently / Amazon_SES.py
Created February 1, 2011 19:34
Simple example email wrapper for Boto's SES
"""
Example code for sending emails using boto's SES module. Its main purpose is to
show how easy it is to build multipart text/html emails.
Unfortunately, at this time Amazon's SES doesn't seem to allow you to add
attachments to messages, but if it does in the future it would probably look
like the code that I've commented out below the exception.
The SES module of the Boto package isn't quite finalized yet, but I currently
have this code running using Harry Marr's implementation which is available at: