Skip to content

Instantly share code, notes, and snippets.

View mathieue's full-sized avatar

Mathieu Elie mathieue

View GitHub Profile
@mathieue
mathieue / index.html
Created September 8, 2014 17:36
My block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
stroke: #fff;
stroke-width: 1.5px;
}
.link {
We couldn’t find that file to show.
function updatearc() {
var point = [45.337, -0.472];
var point2 = [49.045, 2.153];
pathArcs.attr("d", function (d) {
var source = map.latLngToLayerPoint(new L.LatLng(point[0], point[1]));
var target = map.latLngToLayerPoint(new L.LatLng(point2[0], point2[1]));
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"store" : { "compress" : { "stored" : true, "tv": true } }
}
}
}
@mathieue
mathieue / make-d3-node-no-appends.js
Created November 11, 2013 10:02
make a d3.js element node without appending (create)
var detached = d3.select(document.createElement("div"));
@mathieue
mathieue / install_mosh.mkd
Created October 29, 2013 13:21
install mosh on ubuntu

install mosh on ubuntu

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:keithw/mosh
sudo apt-get update

sudo apt-get install mosh

@mathieue
mathieue / install_mosh.mkd
Created October 29, 2013 13:16
install mosh on ubuntu : remote shell on steroids !

install mosh on ubuntu

sudo apt-get install python-software-properties sudo add-apt-repository ppa:keithw/mosh sudo apt-get update sudo apt-get install mosh

@mathieue
mathieue / do-it.sh
Last active December 22, 2015 02:59
graphite + statsd install with chef-solo
# install chef-solo one line !
curl -L https://www.opscode.com/chef/install.sh | bash
# cookbooks have their rep: check the dir name == cookbook name
mkdir -p /opt/cookbooks
git clone https://github.com/hw-cookbooks/graphite
git clone https://github.com/opscode-cookbooks/apache2.git
git clone https://github.com/opscode-cookbooks/python.git
git clone https://github.com/opscode-cookbooks/runit.git
git clone https://github.com/opscode-cookbooks/memcached.git
####################################
# 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
@mathieue
mathieue / logstash.sh
Last active December 15, 2015 22:58
logstash init.d
#! /bin/sh
### BEGIN INIT INFO
# Provides: logstash-shipper
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.