Skip to content

Instantly share code, notes, and snippets.

View tarraschk's full-sized avatar

Maxime Alay-Eddine tarraschk

View GitHub Profile
@tarraschk
tarraschk / Leetchi.java
Created March 5, 2013 17:08
Java - Play Framework - Leetchi API
package controllers;
import java.io.*;
import java.net.*;
import java.security.*;
import java.security.spec.*;
import sun.misc.BASE64Encoder;
import play.*;
import play.mvc.*;
@tarraschk
tarraschk / gist:5371869
Last active December 16, 2015 03:39
Hi Bonsai.io, we got this error when we try to create index with defined analyzer : 'francais' => array( 'type' => 'custom', 'tokenizer' => 'standard', 'filter' => array('lowercase', ' asciifolding', ' elision', 'substring', 'stop_francais'), ), 'francais_boule' => array( 'type' => 'snowball', 'language' => 'French', ), The error has been pasted…
Error :
RemoteTransportException[[Grant, Greer][inet[/10.31.165.243:9300]][indices/mapping/put]];
nested: MapperParsingException[Analyzer [francais_boule] not found for search_analyzer setting on root type [user]];
@tarraschk
tarraschk / uflex_hash_to_md5.php
Last active August 29, 2015 14:27
Finds md5 from a sample of uFlex hashes
<?php
/*******************************************************************************************************/
/* uFlex experimentation - Cyberwatch SAS © 2015 */
/* Maxime Alay-Eddine — @TarraschK */
/* --- Finds md5 from uFlex hashes --- */
/* */
/* Released under The MIT License (MIT) */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining a copy */