Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefan Ames sames

  • Leopoldshöhe, Germany
View GitHub Profile
View enable_trim.sh
#!/bin/bash
#
# Enable TRIM support for 3rd Party SSDs. Works for Mountain Lion, should work on earlier OSes too.
# Tested on 10.8.2, checked for proper operation on 10.8.0, but never booted with the modified kext.
#
# Original source: http://digitaldj.net/2011/07/21/trim-enabler-for-lion/
set -e
set -x
@sames
sames / glacier.py
Created Aug 23, 2012 — forked from fsultan/glacier.py
Amazon Glacier from Python. Based on Boto, will contribute to Boto when it's a little more finished if it's any good at that point :)
View glacier.py
# Thomas Parslow http://almostobsolete.net
# Just a work in progress and adapted to what I need right now.
# It does uploads (via a file-like object that you write to) and
# I've started on downloads. Needs the development version of Boto from Github.
#
# Example:
#
# glacierconn = GlacierConnection(AWS_ACCESS_KEY, AWS_SECRET_ACCESS_KEY)
# writer = GlacierWriter(glacierconn, GLACIER_VAULT)
# writer.write(somedata)
You can’t perform that action at this time.