Skip to content

Instantly share code, notes, and snippets.

View hmalphettes's full-sized avatar

Hugues Malphettes hmalphettes

  • Standard Chartered Bank
  • Singapore
  • 05:06 (UTC +08:00)
View GitHub Profile
@hmalphettes
hmalphettes / Dockerfile
Created November 24, 2014 07:51
setup and run the dockerized virtual hosting demo
# Builds the goodbye world nodejs app
FROM google/nodejs-runtime
@hmalphettes
hmalphettes / DVStringFieldMapper.java
Created November 14, 2014 01:21
Extended StringFieldMapper to have a docvalues on an analyzed string
/**
* License: same than Elasticsearch: ASL-2.0.
* Source: copy and paste bits and pieces from the original Elasticsearch StringFieldMapper.
*/
package org.elasticsearch.docvalues.exporter;
import static org.elasticsearch.index.mapper.core.TypeParsers.parseField;
import static org.elasticsearch.index.mapper.core.TypeParsers.parseMultiField;
import java.io.IOException;
@hmalphettes
hmalphettes / macos_jenv_install.sh
Last active August 29, 2015 13:56
JDK8 on Macosx with http://jenv.be
# Install jenv with brew
brew tap jenv/jenv
brew install jenv
# I did not touch my .zshrc or my bashrc: the jenv binary is already on the PATH thanks to brew.
# Instead:
mkdir ~/.jenv/versions
# Download jdk8 from Oracle in a web browser: https://jdk8.java.net/download.html
# Then add it: