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
| --- | |
| version: '2' | |
| services: | |
| liferay: | |
| image: mdelapenya/liferay-portal:7.1-ce-beta2-tomcat-hsql | |
| ports: | |
| - 8080:8080 | |
| - 11311:11311 |
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
| ELASTIC_VERSION=6.3.0 |
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
| ELASTIC_VERSION=5.6.9 | |
| #ELASTIC_VERSION=6.3.0 |
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
| # Data | |
| DELETE latest-connection | |
| POST _bulk | |
| { "index" : { "_index" : "latest-connection", "_type" : "_doc"} } | |
| { "client": "10.10.10.10", "version": "1.3", "timestamp": "2018-05-01T12:10:30Z" } | |
| { "index" : { "_index" : "latest-connection", "_type" : "_doc"} } | |
| { "client": "20.20.20.20", "version": "1.5", "timestamp": "2018-05-01T12:10:30Z" } | |
| { "index" : { "_index" : "latest-connection", "_type" : "_doc"} } | |
| { "client": "10.10.10.10", "version": "1.4", "timestamp": "2018-05-02T12:10:30Z" } | |
| { "index" : { "_index" : "latest-connection", "_type" : "_doc"} } |
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
| DELETE companies | |
| PUT companies | |
| { | |
| "mappings": { | |
| "company" : {}, | |
| "employee" : { | |
| "_parent": { | |
| "type": "company" | |
| } |
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
| DELETE my_index | |
| PUT my_index | |
| { | |
| "mappings": { | |
| "my_type": { | |
| "properties": { | |
| "last_viewed": { | |
| "type": "date", | |
| "format": "dd/MM/YYYY||YYYY/MM/dd" | |
| } |
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
| #!/bin/bash | |
| response=200 | |
| i=1 | |
| while [[ response -eq 200 ]] | |
| do | |
| curl -u '<username>:<token>' "https://api.github.com/repos/<account>/<repository>/issues?filter=all&state=all&per_page=100&page=${i}" > issues${i}.json | |
| response=$(curl --write-out %{http_code} --silent --output /dev/null -u '<username>:<token>' "https://api.github.com/repos/<account>/<repository>/issues/$((i*100))") | |
| ((i++)) | |
| done |
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
| DELETE my_index | |
| PUT my_index | |
| { | |
| "mappings": { | |
| "my_type": { | |
| "properties": { | |
| "type": { | |
| "type": "keyword" | |
| } |
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
| GET /raffle/_search | |
| { | |
| "size": 1, | |
| "query": { | |
| "function_score": { | |
| "functions": [ | |
| { | |
| "random_score": { } | |
| } | |
| ], |
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
| Verifying that +xeraa is my blockchain ID. https://onename.com/xeraa |