This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eTEuo pipefail | |
function get_pgid() { | |
cut -d " " -f 5 < "/proc/$$/stat" | tr ' ' '\n' | |
} | |
pgid="$(get_pgid)" | |
if [[ "$$" != "$pgid" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eEuo pipefail | |
MARKER_FILE_NAME="${DOCKER_PRUNER_MARKER:-DOCKER-PRUNER-MARKER-FILE}" | |
DOCKER_PATH="${DOCKER_PATH:-/var/lib/docker/overlay2}" | |
function _used_dirs() { | |
for docker_obj in $(docker ps -aq) $(docker image ls -aq); do | |
lowerdir="$(docker inspect "$docker_obj" | jq '.[].GraphDriver.Data.LowerDir' -r)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xterm*background: rgb:15/15/19 | |
xterm*foreground: white | |
XTerm*locale: true | |
xterm*VT100.Translations: #override \ | |
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\ | |
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Based on https://public.opendatasoft.com/explore/dataset/correspondance-code-insee-code-postal/download/?format=json&timezone=Europe/Berlin&lang=fr | |
# The JSON file must be argv[1] | |
import json | |
import sys | |
class City(): | |
token_stats = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#config.py | |
import json | |
from elasticsearch import Elasticsearch | |
es = Elasticsearch( | |
["127.0.0.1"], | |
http_auth=None, # http_auth=('user', 'secret') | |
scheme="http", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id iitc-plugin-ingressdataextract@LeCoon | |
// @name IITC plugin: Ingress Data Extractor | |
// @category Keys | |
// @version 0.0.0.1 | |
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion | |
// @description Data Extractor | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* |