This file contains hidden or 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
# Just put this in your ~/.zshrc or ~/.bashrc! | |
# Pretty format of json files. Usage: jless path/to/file.json | |
function jless { | |
python -mjson.tool "$1" | pygmentize -l json | less -Nr | |
} |
This file contains hidden or 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
[ | |
{ | |
"iconOff": "ic_power_settings_new", | |
"iconOn": "ic_power_switch", | |
"offColor": -10461088, | |
"onColor": -65536, | |
"payloadOff": "0", | |
"payloadOn": "1", | |
"enableIntermediateState": true, | |
"enablePub": true, |
This file contains hidden or 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
import logging | |
logging.basicConfig( | |
format="%(asctime)s %(levelname)s: %(message)s", | |
level=logging.getLevelName("INFO"), | |
) | |
logger = logging.getLogger() |
This file contains hidden or 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
tar -cf - INPUT_DIR | xz -0e -c > OUTPUT_FILE.tar.xz |
This file contains hidden or 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
example.com { | |
reverse_proxy keycloak:8080 { | |
# https://github.com/keycloak/keycloak/issues/12682 | |
# x-csrftoken is set by the Swagger UI | |
header_down +Access-Control-Allow-Headers "x-csrftoken" | |
} | |
} |
OlderNewer