Skip to content

Instantly share code, notes, and snippets.

View mathieue's full-sized avatar

Mathieu Elie mathieue

View GitHub Profile
from django.conf import settings
from django.utils.translation import string_concat, ugettext_lazy
from django.utils.html import strip_tags
from haystack import indexes, site
from cms.models.managers import PageManager
from cms.models.pagemodel import Page
from cms.models.pluginmodel import CMSPlugin
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
####################################
sudo apt-get update
wget http://launchpad.net/graphite/1.0/0.9.10/+download/graphite-web-0.9.10.tar.gz
wget http://launchpad.net/graphite/1.0/0.9.10/+download/carbon-0.9.10.tar.gz
wget http://launchpad.net/graphite/1.0/0.9.10/+download/whisper-0.9.10.tar.gz
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"store" : { "compress" : { "stored" : true, "tv": true } }
}
}
}
@mathieue
mathieue / arcs.csv
Last active August 29, 2015 14:06 — forked from mhkeller/arcs.csv
source_lng source_lat target_lng target_lat
-99.5606025 41.068178502813595 -106.503961875 33.051502817366334
-99.5606025 41.068178502813595 -97.27544625 34.29490081496779
-99.5606025 41.068178502813595 -92.793024375 34.837711658059135
-99.5606025 41.068178502813595 -100.3076728125 41.85852354782116
-99.5606025 41.068178502813595 -104.6143134375 43.18636214435451
-99.5606025 41.068178502813595 -106.152399375 45.57291634897
-99.5606025 41.068178502813595 -105.5811103125 42.3800618087319
-99.5606025 41.068178502813595 -74.610651328125 42.160561343227656
-99.5606025 41.068178502813595 -78.148248984375 40.20112201100485