- Download location history from accounts.google.com
- Convert to gpxtracks using https://github.com/Scarygami/location-history-json-converter
- Download and install Processing and http://unfoldingmaps.org/
- Run this script
- ???
- Profit!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_crc(crc_file, datafile) | |
expected_crc = File.read(crc_file).split(' ') | |
actual_crc = `cksum #{datafile}`.split(' ') | |
unless File.exist?(crc_file) | |
puts 'crc file missing' | |
return false | |
end | |
unless File.exist?(datafile) | |
puts 'datafile missing' | |
return false |
Piratebox on a cloud VM gives you a really quick setup to see what you get out of the box. We strip away the networking stack that it offers, and run the web frontend.
First of all we need a basic Debian 7.x VM. I've opted for Digital Ocean because it's cheap and simple to use, other providers are available.
Once the VM is built (60 seconds) we log in and ensure the package lists are up to date:
apt-get update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Download 2014 Road traffic accidents from Leeds City Council | |
// http://data.gov.uk/dataset/road-traffic-accidents/resource/4882af59-27c5-4148-9624-6cffee36c688 | |
// Remove the header line in an editor because we've not figured out how to do this in Spark yet | |
// Register the data | |
val data = sc.textFile("/home/akaerast/downloads/accidents2014.csv") | |
# Describe the class | |
case class Accident(reference: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT p.value AS __color__, | |
id AS ticket, summary, component, version, t.type AS type, | |
owner, status, | |
time AS created, | |
changetime AS _changetime, description AS _description, | |
reporter AS _reporter | |
FROM ticket t, enum p | |
WHERE status <> 'closed' | |
AND unix_timestamp(date_sub(now(), interval 10 day)) < changetime | |
AND p.name = t.priority AND p.type = 'priority' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import xmlrpclib | |
proxy = xmlrpclib.ServerProxy("https://lists.mydomain.org/mailman/RPC2") | |
def nicepass(alpha=6,numeric=2): | |
""" | |
returns a human-readble password (say rol86din instead of | |
a difficult to remember K8Yn9muL ) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#retrain_bogofilter.sh | |
#Version 2.0 | |
#jkv@unixcluster.dk - free for all | |
#kaerast at qvox - modifications, free for all | |
#Prerequisites: | |
# - formail | |
# - bogofilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$couch_dsn = "http://localhost:5984/"; | |
$couch_db = "inout"; | |
require_once "../lib/couch.php"; | |
require_once "../lib/couchClient.php"; | |
require_once "../lib/couchDocument.php"; | |
$client = new couchClient($couch_dsn,$couch_db); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$couch_dsn = "http://localhost:5984/"; | |
$couch_db = "inout"; | |
// libraries come from http://github.com/dready92/PHP-on-Couch | |
require_once "../lib/couch.php"; | |
require_once "../lib/couchClient.php"; | |
require_once "../lib/couchDocument.php"; | |
$client = new couchClient($couch_dsn,$couch_db); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://www.facebook.com/search/?ref=ffs&q=',l=d.location,e=encodeURIComponent,p=e(s)+'&o=2048&init=ffs',u=f+p;{a%20=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0); |
OlderNewer