Skip to content

Instantly share code, notes, and snippets.

@nl5887
nl5887 / elasticsearch.repo
Last active April 23, 2019 22:52
install elasticsearch on centos / amazon linux
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=http://packages.elastic.co/elasticsearch/5.x/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
@nl5887
nl5887 / decode.go
Last active March 9, 2026 01:21
Golang implementation for RFC 1342: Non-ASCII Mail Headers
package main
import (
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"mime/quotedprintable"
"regexp"
"strings"
@nl5887
nl5887 / gist:bc19080baca8890e3a1712ffacc57db6
Last active August 3, 2017 02:17
clang dump abstract syntax tree (ast)
clang -Xclang -ast-dump -fsyntax-only test.c
@nl5887
nl5887 / readme.md
Created April 29, 2016 08:17
Modern.IE Windows XP download
@nl5887
nl5887 / readme.md
Last active October 12, 2020 16:11
Install oclHashCat on Ubuntu 16.04
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

apt-get install build-essential

sh ./NVIDIA-Linux-x86_64-367.27.run

# this will remove nouveau module during boot

update-initramfs -u
diff --git a/plugins/cloud-aws/pom.xml b/plugins/cloud-aws/pom.xml
index d8cb824..a6f3c72 100644
--- a/plugins/cloud-aws/pom.xml
+++ b/plugins/cloud-aws/pom.xml
@@ -16,7 +16,7 @@
<properties>
<elasticsearch.plugin.classname>org.elasticsearch.plugin.cloud.aws.CloudAwsPlugin</elasticsearch.plugin.classname>
- <amazonaws.version>1.10.33</amazonaws.version>
+ <amazonaws.version>1.11.18</amazonaws.version>
@nl5887
nl5887 / gist:5d8cf409387d326718ef22ede27a2839
Created November 10, 2016 15:09
Contributor License Agreement
Contributor License Agreement
The following terms are used throughout this agreement:
You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
Project - is an umbrella term that refers to any and all Dutchcoders open source projects.
Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Dutchcoders, contributors or maintainers.
1. Grant of Copyright License.
Subject to the terms and conditions of this agreement, You grant to the Projects’ maintainers, contributors, users and to Dutchcoders a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sub
@nl5887
nl5887 / minio.conf
Last active November 23, 2016 01:38
# install go
cd /usr/local/go/
curl https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz | tar vxfz -
yum install -y monit git jq
set -x GOPATH /home/ec2-user/.gopath
mkdir /opt/minio/
@nl5887
nl5887 / README.md
Created November 23, 2016 03:31
Minio install as a service instructions (Windows)

Running Minio as a service on Windows

Download and install the (Windows Server 2003 Resource Kit Tools)[https://www.microsoft.com/en-us/download/details.aspx?id=17657]. It is old, but still works on recent Windows versions.

Start cmd.exe and install the Minio service:

sc create Minio binPath="C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe" DisplayName="Minio Cloudstorage"
fix for too_many_clause error elasticsearch / kibana
query:queryString:options -> { "analyze_wildcard": true, "rewrite": "top_terms_13" }