Skip to content

Instantly share code, notes, and snippets.

View igor-kupczynski's full-sized avatar

Igor Kupczyński igor-kupczynski

View GitHub Profile
@igor-kupczynski
igor-kupczynski / Dockerfile
Created November 11, 2018 20:06
Dockerizing windwos java 32 bit JNI app
FROM ubuntu:18.10
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y wine32 && \
apt-get clean -y
COPY jdk-8u191-windows-i586.exe /app/jdk.exe
RUN chmod +x /app/jdk.exe && wine /app/jdk.exe /s
@igor-kupczynski
igor-kupczynski / keybase.md
Created October 3, 2016 06:37
keybase.md

Keybase proof

I hereby claim:

  • I am igor-kupczynski on github.
  • I am ikupczynski (https://keybase.io/ikupczynski) on keybase.
  • I have a public key ASDmnp_hldUpJqXBs18nHb4gsAFz3owhY_qCX2tn8q84VQo

To claim this, I am signing this object:

$ time curl -XGET localhost:8008
{
"status" : 200,
"name" : "X-Ray",
"version" : {
"number" : "1.3.5",
"build_hash" : "4a50e7df768fddd572f48830ae9c35e4ded86ac1",
"build_timestamp" : "2014-11-05T15:21:28Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
@igor-kupczynski
igor-kupczynski / analysis.yaml
Created October 22, 2014 21:59
How to implement good search on product name in Elasticsearch. http://igor.kupczynski.info/2014/10/22/search-for-product-name.html
analyzer:
generic_name_analyzer:
type: "custom"
tokenizer: "icu_tokenizer"
filter: ["word_split", "icu_folding", "english_stop"]
trigram_name_analyzer:
type: "custom"
tokenizer: "icu_tokenizer"
filter: ["icu_folding", "english_stop", "trigram_filter"]