Skip to content

Instantly share code, notes, and snippets.

View AVVS's full-sized avatar

Vitaly Aminev AVVS

View GitHub Profile
@AVVS
AVVS / Example.json
Last active December 15, 2015 11:29
{
"Grundfos" : [
{ "name": "GTR", "type": "facility", "children": [
{"name": "Cooling System", "type": "system", "children": [
{"name" : "Pumps", "type" : "assetType", "children": [
{"name": "Heating pump xQ", "type": "asset", "mac": "XX-XX-XX-XX"}
]}
}]
]}
]
@AVVS
AVVS / es.sh
Last active December 15, 2015 11:19
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@AVVS
AVVS / conf.coffee
Created March 18, 2013 16:36
Работа с ElasticSearch из node.js
esc = require 'elasticsearchclient'
###
Elastic search module
###
serverOptions =
host: process.env.esHost || 'localhost'
port: 9200
secure: false