Skip to content

Instantly share code, notes, and snippets.

View alexlegg's full-sized avatar

Alex Legg alexlegg

  • Sydney, Australia
View GitHub Profile
@alexlegg
alexlegg / gist:966099
Created May 11, 2011 08:17
USYD Library Proxy Bookmarklet
javascript:(function(){
var loc=window.location.href;
var dom=document.domain;
var s=loc.substring(0,loc.indexOf(dom));
var f=loc.substring(s.length + dom.length,loc.length);
window.location.href=s+dom+'.ezproxy2.library.usyd.edu.au'+f;
})();
@alexlegg
alexlegg / backup.py
Created April 6, 2012 01:23
Read iPhone Message backup
#!/bin/python
import sqlite3
from datetime import datetime
conn = sqlite3.connect('backup')
c = conn.cursor()
print """
<html>
<head>