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 glob | |
import gpxpy | |
import gpxpy.gpx | |
from geojson import Feature, LineString, FeatureCollection | |
from datetime import datetime | |
class GpxToGEOJsonConverter: | |
def to_timestamp(self, dt, epoch=datetime(1970, 1, 1)): | |
td = dt - epoch |
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
# http://code.activestate.com/recipes/259177-crc64-calculate-the-cyclic-redundancy-check/ | |
# | |
# Initialisation | |
# 32 first bits of generator polynomial for CRC64 | |
# the 32 lower bits are assumed to be zero | |
POLY64REVh = 0xd8000000L | |
CRCTableh = [0] * 256 | |
CRCTablel = [0] * 256 | |
isInitialized = False |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://pl.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://pl.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse |
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
#Install on each Node | |
$ su | |
#Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set. | |
$ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl | |
#download Tsung | |
#http://tsung.erlang-projects.org/dist/ |
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 id, created_at, text FROM statuses " | |
"WHERE user_id = %s ORDER BY created_at DESC LIMIT %s | |
http://10.1.1.10:8888/statuses/home_timeline.json?screen_name=marquise.stromanb |