Skip to content

Instantly share code, notes, and snippets.

View ncolomer's full-sized avatar

Nicolas Colomer ncolomer

View GitHub Profile
@ncolomer
ncolomer / clubhouse.py
Last active July 20, 2018 11:15
Clubhouse Sprint Summarizer
#!/usr/bin/env python
'''
Print all user stories for a given label, grouped by epic.
See https://app.clubhouse.io/settings/account/api-tokens to
generate your clubhouse api token.
You need to run `pip install docopts requests` to be able
to execute this binary.
@ncolomer
ncolomer / install-es.sh
Created October 7, 2015 15:30
Install elasticsearch on any Linux
#!/bin/bash
[[ "$UID" -ne "$ROOT_UID" ]] && echo "You must be root to do that!" && exit 1
VERSION=${1:-"1.1.1"}
IP=$(ifconfig eth0 | grep -oP 'inet addr:\K\S+')
apt-get update
apt-get install -y screen unzip wget nmon openjdk-7-jdk
@ncolomer
ncolomer / main.cpp
Created February 16, 2015 12:29
Platformio issue
#include <Arduino.h>
#include <RHReliableDatagram.h>
#include <RH_NRF24.h>
#include <SPI.h>
void setup() {}
void loop() {}
@ncolomer
ncolomer / README.md
Last active August 29, 2015 14:13
Elasticsearch gauss decay function issue

Edit: there is no issue!

The score number was not correctly parsed by the bash script. Indeed, a double number can be returned result as its scientific notation such as 4.06E-05 in JSON. This happens when normal notation is not precise enough to display all significant numbers (eg.0.0000406).

The following script correctly parses elasticsearch results. In addition, I added the raw output in the results.ok.tsv file.

ES_HOST=localhost
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip
# Install unzip if you don't have
yum install unzip
@ncolomer
ncolomer / DummyTest.java
Created August 19, 2013 22:28
MapDB - This test fail (MapDB throws an ArrayStoreException)
package me.nco.test;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.impls.mapdb.MapDBGraph;
import org.junit.Before;
import org.junit.Test;
import org.mapdb.DBMaker;