Commit 463af0a1 by Amir Aharon

new ports, accounts and local jenkins on 68

parent 0e2d85b1
common/docs/\.~lock\.Accounts\.odt#
No preview for this file type
...@@ -27,3 +27,13 @@ then su gallery ...@@ -27,3 +27,13 @@ then su gallery
[CableColor] [CableColor]
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 cassi@205.240.200.55 ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 cassi@205.240.200.55
pass: g@ll3r&15 pass: g@ll3r&15
[Docker]
- docker viewer: docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer
- Connect securely to remote docker host: https://docs.docker.com/engine/security/https/#create-a-ca-server-and-client-keys-with-openssl
- rancher app key in digitalocean:
2eea41fb3801935540ba6ec42a1105360c1c1a4daa8306d7eee53dacdfd300bc
#create index with mapping
curl -XPUT "http://localhost:9200/activityidx" -d'{ "mappings": { "activity": { "properties": { "metaData.loc": { "type": "geo_point" } } } } }'
# delete kibana settings
curl -XDELETE http://localhost:9200/.kibana
#delete all on elastric
curl -XDELETE http://localhost:9200/*
# query less then date # query less then date
curl -XPOST 'http://172.16.1.72:9200/activityidx/activity/_search' -d '{ curl -XPOST 'http://172.16.1.72:9200/activityidx/activity/_search' -d '{
"query": { "query": {
...@@ -33,7 +41,116 @@ curl -XGET "http://localhost:9200/activityidx/activity/_search" -d' ...@@ -33,7 +41,116 @@ curl -XGET "http://localhost:9200/activityidx/activity/_search" -d'
} }
}' }'
// multi fields match
POST /activityidx/activity/_search
{
"query": {
"bool": {
"must": [
{"match" : {"type" : "thing/traffic-lane"}},
{"match" : {"userId":"chicago/traffic-lane/380" }}
],
"filter": {
"range": {
"creationTime": {
"gte": 1514797422000,
"lte": 1515335771000
}
}
}
}
}
}
// query with prefix
POST /activityidx/activity/_search
{
"from" : 0, "size" : 50,
"query": {
"bool": {
"must": [
{ "query_string":{ "query":"userId:ge\\/env\\/TEMPERATURE\\/" } }
],
"filter": {
"range": {
"creationTime": {
"gte": 1514797422000,
"lte": 1515335771000
}
}
}
}
}
}
POST /activityidx/activity/_search
{
"from" : 0, "size" : 50,
"query": {
"bool": {
"must": [
{ "query_string":{ "query":"type:thing\\/traffic" } }
],
"filter": [{
"range": {
"published": {
"gte": 1514797422000,
"lte": 1515335771000,
"format": "epoch_millis"
}
}},
{
"geo_distance" : {
"distance" : "200km",
"metaData.loc" : {
"lat" : 32.72278,
"lon" : -117.16296
}
}
}]
}
}
}
POST /activityidx/activity/_search
{
"from" : 0, "size" : 50,
"query": {
"bool": {
"must": [
{ "query_string":{ "query":"type:thing\\/traffic" } }
],
"filter": [{
"range": {
"published": {
"gte": 1514797422000,
"lte": 1515335771000,
"format": "epoch_millis"
}
}},
{
"geo_polygon" : {
"metaData.loc" : {
"points" : [
"32.72278, -117.16296",
"32.72278, -116.16296",
"31.72278, -116.16296",
"31.72278, -117.16296"
]
}
}
}]
}
}
}
///CSV ///CSV
pip install es2csv pip install es2csv
......
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA7xWT1kLzRDOtWemz6ScCtgTWxrtjCZqeEJBehB6B1EUGzSJrH4QPTX7ZIiT+
zon8PXI1on+5gjx9WTwknzDp1qOuyVI3uZ8WXeUuuZdLVhab7aE6cGRwjuqwwFlbv2wNPziXM21E
FUn+wXkaaLMV51gT/+HZyK35ZwpDOpby4GXFkaWr1oHvT8anO2PJmgO6/qPBdriJF39D+Y0Xawmu
j2Gaqd19OovSMa3MXXUs9hpy0CnKyaBlhNIvMlWcMgqva9MUGpOB7UGzBm6hMHT3hssKkUikiMhg
7M8zOtSZnwlKre74OnSok9cDuE6mmpm9B4qL2OjLkhzMZiqevFI0/wIDAQABAoIBAQDm5PPNbQL6
zt2Pg//YH3Ci0LGLY9UVpVkZrhNZjQzdL3yOB7tkyGju8p5IN2pNlT0hKndZ4/gIKtrznv3PL7Hl
NFbM3rYqcdVsALXLTq3XCia0q4yAlr+NhmIEoUfV6kgw0jpT1CZ4WOnLd2Vlz+5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8S
-----END RSA PRIVATE KEY-----
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment