Skip to content

Instantly share code, notes, and snippets.

View hamstu's full-sized avatar

Hamish Macpherson hamstu

View GitHub Profile
##### starting test path_mismatch.
$ source "$rvm_path/scripts/rvm"
$ : test no error
$ rvm use 1.9.3 --install
Using /Users/hamstu/.rvm/gems/ruby-1.9.3-p448
# passed: status = 0
$ rvm version
rvm 1.21.14 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
@hamstu
hamstu / dabblet.css
Created March 4, 2013 00:33
Design Test for Verses
/**
* Design Test for Verses
*/
@import url(http://fonts.googleapis.com/css?family=PT+Serif);
body {
background: #f3f3f3;
font-family: PT Serif, serif;
color: #333;
@hamstu
hamstu / emailer.py
Created January 12, 2013 01:16
Email a photo/file from your computer, with Python! Usage: emailer.py [file] Made for: http://www.reddit.com/r/raspberry_pi/comments/16esrj/how_do_i_send_email_on_motion_trigger/
#!/usr/bin/python
"""
emailer.py | Script to send attachments via a Gmail account
- Based on http://codecomments.wordpress.com/2008/01/04/python-gmail-smtp-example/
- Fixed small bugs and cleaned up the formatting, etc.
USAGE:
emailer.py [file1, file2, ...]