Skip to content

Instantly share code, notes, and snippets.

epifanio

Block or report user

Report or block epifanio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-compose.yml
version: '3.5'
services:
solr:
container_name: metsis_solr
image: epinux/metsis-solr
environment:
VIRTUAL_HOST: ${SOLR_VIRTUAL_HOST}
VIRTUAL_PORT: 8983
NETWORK_ACCESS: internal
LETSENCRYPT_HOST: ${SOLR_VIRTUAL_HOST}
View schema.json
{"responseHeader":{"status":0,"QTime":373},"schema":{"name":"nbs","version":1.5,"uniqueKey":"id","fieldTypes":[{"name":"_bbox_coord","class":"solr.TrieDoubleField","stored":false,"docValues":true,"precisionStep":"8"},{"name":"alphaOnlySort","class":"solr.TextField","omitNorms":true,"sortMissingLast":true,"analyzer":{"tokenizer":{"class":"solr.KeywordTokenizerFactory"},"filters":[{"class":"solr.LowerCaseFilterFactory"},{"class":"solr.TrimFilterFactory"},{"class":"solr.PatternReplaceFilterFactory","pattern":"([^a-z])","replace":"all","replacement":""}]}},{"name":"bbox","class":"solr.BBoxField","geo":"true","numberType":"_bbox_coord","distanceUnits":"kilometers"},{"name":"binary","class":"solr.BinaryField"},{"name":"boolean","class":"solr.BoolField","sortMissingLast":true},{"name":"currency","class":"solr.CurrencyField","currencyConfig":"currency.xml","defaultCurrency":"USD","precisionStep":"8"},{"name":"date","class":"solr.TrieDateField","positionIncrementGap":"0","precisionStep":"0"},{"name":"double","class":"
View schema.json
{"responseHeader":{"status":0,"QTime":373},"schema":{"name":"nbs","version":1.5,"uniqueKey":"id","fieldTypes":[{"name":"_bbox_coord","class":"solr.TrieDoubleField","stored":false,"docValues":true,"precisionStep":"8"},{"name":"alphaOnlySort","class":"solr.TextField","omitNorms":true,"sortMissingLast":true,"analyzer":{"tokenizer":{"class":"solr.KeywordTokenizerFactory"},"filters":[{"class":"solr.LowerCaseFilterFactory"},{"class":"solr.TrimFilterFactory"},{"class":"solr.PatternReplaceFilterFactory","pattern":"([^a-z])","replace":"all","replacement":""}]}},{"name":"bbox","class":"solr.BBoxField","geo":"true","numberType":"_bbox_coord","distanceUnits":"kilometers"},{"name":"binary","class":"solr.BinaryField"},{"name":"boolean","class":"solr.BoolField","sortMissingLast":true},{"name":"currency","class":"solr.CurrencyField","currencyConfig":"currency.xml","defaultCurrency":"USD","precisionStep":"8"},{"name":"date","class":"solr.TrieDateField","positionIncrementGap":"0","precisionStep":"0"},{"name":"double","class":"
View schema.json
{"responseHeader":{"status":0,"QTime":373},"schema":{"name":"nbs","version":1.5,"uniqueKey":"id","fieldTypes":[{"name":"_bbox_coord","class":"solr.TrieDoubleField","stored":false,"docValues":true,"precisionStep":"8"},{"name":"alphaOnlySort","class":"solr.TextField","omitNorms":true,"sortMissingLast":true,"analyzer":{"tokenizer":{"class":"solr.KeywordTokenizerFactory"},"filters":[{"class":"solr.LowerCaseFilterFactory"},{"class":"solr.TrimFilterFactory"},{"class":"solr.PatternReplaceFilterFactory","pattern":"([^a-z])","replace":"all","replacement":""}]}},{"name":"bbox","class":"solr.BBoxField","geo":"true","numberType":"_bbox_coord","distanceUnits":"kilometers"},{"name":"binary","class":"solr.BinaryField"},{"name":"boolean","class":"solr.BoolField","sortMissingLast":true},{"name":"currency","class":"solr.CurrencyField","currencyConfig":"currency.xml","defaultCurrency":"USD","precisionStep":"8"},{"name":"date","class":"solr.TrieDateField","positionIncrementGap":"0","precisionStep":"0"},{"name":"double","class":"
View MMD_solr_schema.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View schema.json
{"responseHeader":{"status":0,"QTime":373},"schema":{"name":"nbs","version":1.5,"uniqueKey":"id","fieldTypes":[{"name":"_bbox_coord","class":"solr.TrieDoubleField","stored":false,"docValues":true,"precisionStep":"8"},{"name":"alphaOnlySort","class":"solr.TextField","omitNorms":true,"sortMissingLast":true,"analyzer":{"tokenizer":{"class":"solr.KeywordTokenizerFactory"},"filters":[{"class":"solr.LowerCaseFilterFactory"},{"class":"solr.TrimFilterFactory"},{"class":"solr.PatternReplaceFilterFactory","pattern":"([^a-z])","replace":"all","replacement":""}]}},{"name":"bbox","class":"solr.BBoxField","geo":"true","numberType":"_bbox_coord","distanceUnits":"kilometers"},{"name":"binary","class":"solr.BinaryField"},{"name":"boolean","class":"solr.BoolField","sortMissingLast":true},{"name":"currency","class":"solr.CurrencyField","currencyConfig":"currency.xml","defaultCurrency":"USD","precisionStep":"8"},{"name":"date","class":"solr.TrieDateField","positionIncrementGap":"0","precisionStep":"0"},{"name":"double","class":"
View gist:98698db4f23a7cc9f4b97d2cb1d13ba7
name = 'n'
type = 't'
stored = 'true'
data = '{\n "add-field":{\n "name":"%s",\n "type":"%s",\n "stored":%s }\n}' % (name, type, stored)
data
View gist:8b1ee901e29334bdeab599cf39105b58
>>> f = open('/var/log/tomcat8/localhost_access_log.2019-10-02.txt', 'r')
>>> st = f.read()
>>> urllib.parse.unquote(st)
'157.249.176.156 - - [02/Oct/2019:07:56:52 +0000] "GET /ometa/ometa?query={\n++++++++++++++++findAllAttributes(\n++++++++++++++++++datasetId:+"S2A_MSIL1C_20190827T105621_N0208_R094_T32VLQ_20190827T130152",+collection:+"nbs-l1"\n++++++++++++++++++++)+{\n++++++++++++++++++++++++name+value\n++++++++++++++++++++++++\n++++++++++++++++++++}\n+++++++++++++++} HTTP/1.0" 200 2593\n157.249.176.156 - - [02/Oct/2019:07:56:52 +0000] "GET /ometa/ometa?query={\n++++++++++++++++findAllVariables(\n++++++++++++++++++datasetId:+"S2A_MSIL1C_20190827T105621_N0208_R094_T32VLQ_20190827T130152",+collection:+"nbs-l1"\n++++++++++++++++++++)+{\n++++++++++++++++++++++++name\n+++++++++++++++++++++++++++++attributes+{\n+++++++++++++++++++++++++++++++name+value\n++++++++++++++++++++++++++++++++}\n++++++++++++++++++++}\n+++++++++++++++} HTTP/1.0" 200 37660\n157.249.176.156 - - [02/Oct/2019:08:16:19 +0000] "GET /ometa/omet
View gist:93665aebabb8ba97d47138b4d4c0fdf3
cat /var/log/tomcat8/localhost_access_log.2019-10-02.txt
157.249.176.156 - - [02/Oct/2019:07:56:52 +0000] "GET /ometa/ometa?query=%7B%0A++++++++++++++++findAllAttributes%28%0A++++++++++++++++++datasetId%3A+%22S2A_MSIL1C_20190827T105621_N0208_R094_T32VLQ_20190827T130152%22%2C+collection%3A+%22nbs-l1%22%0A++++++++++++++++++++%29+%7B%0A++++++++++++++++++++++++name+value%0A++++++++++++++++++++++++%0A++++++++++++++++++++%7D%0A+++++++++++++++%7D HTTP/1.0" 200 2593
157.249.176.156 - - [02/Oct/2019:07:56:52 +0000] "GET /ometa/ometa?query=%7B%0A++++++++++++++++findAllVariables%28%0A++++++++++++++++++datasetId%3A+%22S2A_MSIL1C_20190827T105621_N0208_R094_T32VLQ_20190827T130152%22%2C+collection%3A+%22nbs-l1%22%0A++++++++++++++++++++%29+%7B%0A++++++++++++++++++++++++name%0A+++++++++++++++++++++++++++++attributes+%7B%0A+++++++++++++++++++++++++++++++name+value%0A++++++++++++++++++++++++++++++++%7D%0A++++++++++++++++++++%7D%0A+++++++++++++++%7D HTTP/1.0" 200 37660
157.249.176.156 - - [02/Oct/2019:08:16:19 +0000] "GET /ometa
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDKdZkBSUcQPlpuwcUUWv605i/f72G/7RwrJGt7wD28CItMjYSsZgkW2lhnXbQAO/+gXDVYaEAhGTHScdBnJJ6Ws2xc7RWpW7nCs+afLsR+PtjpogD2Oonc24VyC08wgJL62AFJwgmUx/T2G4ouyUIHakqiBZsPqwXbYssn+GfjnwI3BzGnsFE7Bi8h4el+5hE+1e7ndcdyS8UMs3DsiTedNDC4Kz5SpyaWYEitwsWjtiruzosHNiECxV10pVBQZQ8VAAVkzB3b9hrjZt1/AE+j6vlhf/i0hLiWmPMYth/qoO7sQzVm7XgwT5AZaRKH7NIfeSG6IyUAv6p1Dao2QVOGLVMQIBMhEjGCXz2UTsSMkSbzEJrZ+fx104HqjF8Xep9IDKmvOs9EkOhcR/k0w2R6Qc64Jcd8eQEgUsiY+0Ku1MhNM8NY08GFXGWwN3Uc6c1E+TZ2BQMlf+gO+z/cprwmMPkVO+G3eE168CuNgpFI3KpX4k0F96cFd0JjNa3B4C7/NholKuNPTceIQBX705rfw98EpMV18fqElbAtobpyud2ACLNYAJKVmFtZDVy1bKcGU3un66D4pjvWL8DsyxqZ6r8GnB2THx3uwaSotiYw92ilHqEtfIINoRq7HIJFMU6/2mj2ityQl2Y2+oeoJVi4p4j53iGgUbkwlZllCjnX7w== epiesasha@me.com
You can’t perform that action at this time.