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
@seza443
seza443 / GSGPrefs.xml
Created December 1, 2018 14:33
Megajump GSGPrefs with 9999999 MPs
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="com.getsetgames.megajump.powerup.umbrella_owned" value="true" />
<boolean name="com.getsetgames.megajump.char.android_owned" value="true" />
<int name="mp" value="9999999" />
<boolean name="com.getsetgames.megajump.stage.1_owned" value="true" />
<boolean name="howto" value="true" />
<boolean name="FirstRun" value="true" />
<boolean name="com.getsetgames.megajump.powerup.magnet_owned" value="true" />
<int name="hiscore" value="24081" />
@seza443
seza443 / bash
Created December 5, 2017 13:20
[MongoDB import database] #mongodb #restore #import #database
mongorestore /path/to/backup
@seza443
seza443 / bash
Created December 5, 2017 13:19
[MongoDB Dump database] #mongodb #dump #database
mongodump --host hostmongodb --port port --username "username" --password "password" --db database-name --out /path/to/export/backup
@seza443
seza443 / cli
Created November 16, 2017 10:33
[Elastic Beanstalk change active environment] #eb #environment
eb use environment-name
@seza443
seza443 / bash
Created October 5, 2017 12:38
[NodeJS follow logs] #nodejs #log
tail -f /var/log/nodejs/nodejs.log
@seza443
seza443 / bash
Created September 22, 2017 09:23
[Elastic Beanstalk deploy] #eb #deploy
eb deploy
@seza443
seza443 / bash
Created September 20, 2017 13:31
[Elastic Beanstalk show environment variables] #eb #variable #environment
eb printenv
@seza443
seza443 / bash
Created September 20, 2017 11:29
[NPM lock packages version] #npm #lock #shrinkwrap
Generate `npm-shrinkwrap.json`.
This file should be versionned.
npm shrinkwrap