Skip to content

Instantly share code, notes, and snippets.

openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt
#:: CZ
#:: Prague
#:: Mrackova
#:: Whatever You Need
#::
#:: domain.cz
#:: email@domain.com
@jhettler
jhettler / metric_data_loader.py
Created August 2, 2019 20:06
Get metric data from Qlik Sense dashboard and publish it to Amundsen Neo4j
import re
import json
from databuilder.utils.pyqlikengine import pyqlikengine
from functools import wraps
from unidecode import unidecode
url = 'qlik-1'
user_directory = 'xxx'
user_id = 'xxxxx'
ca_certs = './example/scripts/qlik-1_root.pem'
@jhettler
jhettler / dashboard_data_loader.py
Created August 2, 2019 19:40
Get dashboard info from Qlik Sense QRS API and load it to Amundsen Neo4j
"""
This is a example script which demo how to load data into neo4j without using Airflow DAG.
"""
import json
import logging
import os
from pyhocon import ConfigFactory
from unidecode import unidecode
from databuilder.extractor.generic_extractor import GenericExtractor
@jhettler
jhettler / gist:bfcb4f9857ce87e18bb51dff4dc3c4e6
Last active April 9, 2019 13:43
OSM overpass API requests
http://overpass-turbo.eu/#
https://wiki.openstreetmap.org/wiki/Tag:boundary=administrative
//relation["admin_level"="6"]["name"="Plzeňský kraj"];
//(._;>;);
//out body;
area[admin_level=2][name="Česko"]->.search;(way(area.search)[admin_level=6];rel(area.search)[admin_level=6];);/*added by auto repair*/(._;>;);/*end of auto repair*/out body;
curl \