Skip to content

Instantly share code, notes, and snippets.

@johnkpaul
johnkpaul / app.js
Created August 4, 2012 18:45
IE9- and Backbone.history's pushState
//in your application, rather than using window.location to get the current url
App.getLocation = function(){
return window.location.protocol + '//' + window.location.host
+ '/' + Backbone.history.options.root + Backbone.history.getFragment()
}
@mikluko
mikluko / zz-backup
Created April 6, 2011 12:59
duplicity wrapper
#!/bin/bash
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export PASSPHRASE=
LOCATION=
BACKUP_OPTIONS="
--exclude=**/.cache \
--include=/etc \