This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" : { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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: |