Skip to content

Instantly share code, notes, and snippets.

View marjoballabani's full-sized avatar
™️

Marjo Ballabani marjoballabani

™️
View GitHub Profile
@marjoballabani
marjoballabani / Extrect elasticsearch Data.md
Last active September 9, 2020 22:32
Extract elasticsearch data to json file
  1. Download transformEsData.py
  2. Open your terminal and go to downloaded path
  3. Copy this script and replace {your index path} with your index
  4. Replace username:password for Kibana
  5. Execute in terminal
curl -XGET -u username:password "http://localhost:9200/{your index path}/_search?filter_path=hits.hits._source" -H 'Content-Type: application/json' -d'{  "query": {    "match_all": {}  }}' | python transformEsData.py
@marjoballabani
marjoballabani / Nodejs-deap-learning.md
Last active November 17, 2017 14:54
Nodejs in deep

Nodej in deep

This article is for those who have basic knowledge of javascript

Javascript aside

Javascript thinks you should know to make sure you understand nodejs properly

  1. With functions you can do everythink you can do with other types because functions are First-Type
  2. Objects are a collection of name/value pairs
@marjoballabani
marjoballabani / RequestScannerErr
Created June 13, 2016 14:24
RequestScannerErr
package com.util;
import libs.Logs;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
@marjoballabani
marjoballabani / GenerateMessageSeq
Created June 13, 2016 14:20
GenerateMessageSeq
package com.util;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Project: qpsapi-huawei
* Package: com.util
* Author: Marjo
* Created Date: 02/06/2016 15:29
CREATE TABLE documentation(
NAME varchar2(200),
VALUE varchar2(500),
QUERY varchar2(200),
INSERTDATE DATE
);
INSERT INTO DOCUMENTATION (NAME, VALUE, QUERY, INSERTDATE)
VALUES('PLATFORM_NAME', (SELECT PLATFORM_NAME FROM V$DATABASE), 'SELECT PLATFORM_NAME FROM V$DATABASE', SYSDATE);
@marjoballabani
marjoballabani / JSOn
Created March 9, 2016 13:58
Output form
{
"schema": {
"type": "object",
"properties": {
"lrll1eiet_k7": {
"type": "object",
"title": "First section",
"key": "lrll1eiet_k7",
"properties": {
"h4pqdr7vwnwm": {
| ## username: root |
| ## password: oracle |
------------------------
- Komandat -
su - oracle
lsnrctl start
sqlplus '/ as sysdba'