Skip to content

Instantly share code, notes, and snippets.

@seza443
seza443 / nginx-kibana.conf
Last active May 10, 2019 08:25 — forked from dmajorel/nginx-kibana.conf
Proxy server - Nginx configuration for Kibana-ElasticSearch read-only access
# Config: /etc/nginx/conf.d/kibana.conf
server {
listen 80;
server_name PROXY_URL;
# Read only access to Kibana
# deny other than get/post/options/head
# allow post when used with _search/_msearch/_mget
# allow get/options/head
set $posting 11;
@seza443
seza443 / apkdebug.sh
Last active December 1, 2018 14:34 — forked from PofMagicfingers/apkdebug.sh
Enable debugging flag on an APK using apktool. Can be useful to debug cordova, etc on already compiled apps
#!/bin/sh
command -v apktool >/dev/null 2>&1 || { echo >&2 "I require apktool but it's not installed. Aborting."; exit 1; }
command -v keytool >/dev/null 2>&1 || { echo >&2 "I require keytool but it's not installed. Aborting."; exit 1; }
command -v jarsigner >/dev/null 2>&1 || { echo >&2 "I require jarsigner but it's not installed. Aborting."; exit 1; }
TMPDIR=`mktemp -d 2>/dev/null || mktemp -d -t 'apkdebug'`
APK=$1
DEBUG_APK="${APK%.*}.debug.apk"
if [ -f $APK ]; then