Commit fbb87693 by Amir Aharon

add s'more

parent f147b803
......@@ -60,3 +60,20 @@ https://docs.npmjs.com/getting-started/fixing-npm-permissions
[react-native]
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
[influx-db]
from inside the instance:
connect:
influx -database mcx_db -host 'localhost' -port '8086'
show measurements:
show measurements
delete until certain date:
delete from "speed" where time < '2019-07-17'
[orientdb]
./bin/console.sh
CONNECT REMOTE:localhost/MCX admin admin
- import
IMPORT DATABASE /orientdb/backup/MCX-orientdb-72.gz -preserveClusterIDs=true
......@@ -2,6 +2,8 @@
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html
https://www.elastic.co/guide/en/kibana/5.5/_configuring_kibana_on_docker.html
# show indices and size
curl 172.16.1.72:9200/_cat/indices?v
#create index with mapping
curl -XPUT "http://localhost:9200/activityidx" -d'{ "mappings": { "activity": { "properties": { "metaData.loc": { "type": "geo_point" } } } } }'
......
......@@ -48,3 +48,25 @@ search:
[ if /etc/default/docker have no affect]
sudo docker -d --insecure-registry 172.16.1.5:5000 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
[disconnecting a container from network]
docker network disconnect -f [network] [contaoiner]
e.g:
docker network disconnect -f docker_backend docker_orientdb_1
[clean all]
Kill all running containers:
# docker kill $(docker ps -q)
Delete all stopped containers
# docker rm $(docker ps -a -q)
Delete all images
# docker rmi $(docker images -q)
Remove unused data
# docker system prune
And some more
# docker system prune -af
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