Skip to content

Instantly share code, notes, and snippets.

View bluemaex's full-sized avatar

Max Stockner bluemaex

View GitHub Profile
'''
Based on:
- Read this for EC2 setup info and the approach - http://www.dikant.de/2010/10/08/setting-up-a-vpn-server-on-amazon-ec2/
- https://gist.github.com/1130401
- EC2 fabric bits via - https://github.com/slacy/fabric-ec2
'''
import boto
@bluemaex
bluemaex / latitude.py
Created December 7, 2012 18:58
Convert a Google Latitude JSON-File to a GPX-File
import os
import simplejson
import subprocess
import datetime
f = open('latitude.json', 'r')
locdata = simplejson.loads(f.read());
fd = open('latitude.gpx', 'w')
fd.write("""# <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
@bluemaex
bluemaex / gist:1043460
Created June 23, 2011 19:51
profileme
alias profileme='history | awk '\''{print $2}'\'' | awk '\''BEGIN{FS="|"}{print $1}'\'' | sort | uniq -c | sort -n | tail -n 20 | sort -nr'