Skip to content

Instantly share code, notes, and snippets.

View hynek2001's full-sized avatar

hynek2001

View GitHub Profile
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>obecne</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
answers:
1. It is part of project, to visualise communication between processes on server. I am
coming to freelancer, because i need visualisation layer.
example of usage:
1)userX will open web page (i am puting as example what popotojs shared)http://www.popotojs.com/live/simple-graph/index.html .
library will take as parameter cypher query, and will show graph`
indenpendently on step 1
neo4j db is continously updated by external processes
if there is some change, database shall triger event towards all connected web clients.
@hynek2001
hynek2001 / test.py
Created October 25, 2016 09:48
kibana last 24
"""
curl
"http://172.21.168.120:5601/elasticsearch/_msearch?timeout=0&ignore_unavailable=true&preference=1477387351450" - H
"Origin: http://172.21.168.120:5601" - H
"Accept-Encoding: gzip, deflate" - H
"Accept-Language: en-US,en;q=0.8,cs;q=0.6,sk;q=0.4" - H
"kbn-version: 4.4.2" - H
@hynek2001
hynek2001 / solarwindsUtils.py
Created August 29, 2016 13:45
solarwinds example
import requests
import json
from requests.packages.urllib3.exceptions import InsecureRequestWarning
def main():
ele=getNeDataFromSolarwinds(ip="11.1", username="asdada", password="sdsdf")
with open('elements.json', 'w') as outfile:
@hynek2001
hynek2001 / inter.py
Last active August 27, 2016 18:21
script to filter interfaces
"""
lets assume,
1.
we have file elements.json in same directory as script below
structure of elements.json is :
[{"vendor": "HUAWEI Technology Co.,Ltd", "DisplayName": "AAAAAAAAA", "IP": "1.1.1.1."},]
element is NE40
@hynek2001
hynek2001 / neinfo.py
Created August 27, 2016 16:16
solarwinds get elements info
import requests
import json
def main():
ele=getNeDataFromSolarwinds(ip="1.1.1.1", username="x", password="x")
with open('elements.json', 'w') as outfile:
json.dump(ele, outfile)
def getNeDataFromSolarwinds(username="",password="",ip=""):