(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/sh | |
echo "\n --- delete index" | |
curl -X DELETE 'http://localhost:9200/' | |
echo "\n --- create index and put mapping into place" | |
curl -X POST 'http://localhost:9200/myindex/' -d '{ | |
"mappings" : { | |
"person" : { | |
"properties" : { |
requests.put('http://localhost:9200/site/', data=json.dumps({ | |
'settings': { | |
'analysis': { | |
'analyzer': { | |
'ru': { | |
'type': 'custom', | |
'tokenizer': 'standard', | |
"filter": ['lowercase', 'russian_morphology', 'english_morphology', 'ru_stopwords'], | |
}, | |
}, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Win + Alt + P
{bash}
with the following settings:
/icon "%CMDER_ROOT%\cmder.exe"
/icon "C:\Program Files (x86)\Git\etc\git.ico"
"C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
Pretty simple once you know how. | |
Step 1: In IntelliJ, create a new remote debug configuration. Name it something ElasticSearchy. All of the default values should be fine. The only thing you need to change is the Host value. If ElasticSearch is gonna be running locally, just use "localhost", otherwise use the IP address of the remote machine ElasticSearch is gonna run on | |
Step 2: When starting ElasticSearch, just add a -D argument with the standard java remote debug values like so: | |
bin/elasticsearch -D "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" | |
ElasticSearch will start and if suspend is set to 'y', it'll pause execution until you have attached the IntelliJ debugger. | |
Step 3: In IntilliJ, run the remote debug configuration you created in step 1. |
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py | |
$ cd <download location> | |
$ sudo -H python ./get-pip.py | |
Installing pip also installs Python3 | |
To run Python3 | |
$ python3 | |
Install pip3 by just executing the same file as in the step above, but this time using Python3 | |
$ sudo -H python3 ./get-pip.py |