Skip to content

Instantly share code, notes, and snippets.

View maximTarleckiy's full-sized avatar

Maksims Tarleckis maximTarleckiy

View GitHub Profile
@goldmar
goldmar / Elasticsearch Problem
Last active August 29, 2015 14:14
Elasticsearch IllegalArgumentException[TokenStream expanded to 257 finite strings. Only <= 256 finite strings are supported]
# Remove old data
curl -XDELETE "http://localhost:9200/testindex"
# Create index with mapping
curl -XPOST "http://localhost:9200/testindex/" -d '
{
"mappings" : {
"testtype" : {
"properties" : {
"available_for_client" : {
@dbalabka
dbalabka / .phpdebug
Last active January 11, 2019 09:47
!!! Script is migrated to https://github.com/torinaki/phpdebug-cli !!! XDebug PHP CLI debugging helper console commands with PhpStorm, NetBeans support.
# Installation steps:
# 1. Put this file under ~/.phpdebug
# $ curl https://gist.githubusercontent.com/torinaki/9059015/raw/.phpdebug > ~/.phpdebug
# 2. Put following lines into ~/.bashrc:
# # Get the aliases and functions
# if [ -f ~/.phpdebug ]; then
# . ~/.phpdebug
# fi
# 3. (optional) Script will try to autodetect your machine IP where runs IDE or use 127.0.0.1 otherwise.
# If automatic detection doesn't work for you, set ip directly via IDE_IP enviroment variable: