Skip to content

Instantly share code, notes, and snippets.

View uuklanger's full-sized avatar

uuklanger

View GitHub Profile
@uuklanger
uuklanger / setup_alternatives.sh
Last active October 28, 2020 00:48
setup_alternatives.sh
# ---------------------------------------------------------------
# If you are setting up a clean (never used) system, you can run this full batch
# Otherwise, I suggest running this line by line (copy/paste).
#
# Show if java, javac, or jar are already setup. Run these commands before running the rest
#
JDK_VERSION='jdk1.8.0_271'
echo "==============================================================="
echo "Processing Aternatives for "${JDK_VERSION}
@uuklanger
uuklanger / remove_old_alternative.sh
Last active November 11, 2020 23:08
remove_old_alternative.sh
# ---------------------------------------------------------------
# If you are setting up a clean (never used) system, you can run this full batch
# Otherwise, I suggest running this line by line (copy/paste).
#
# Show if java, javac, or jar are already setup. Run these commands before running the rest
#
JDK_VERSION='jdk1.8.0_261'
echo "==============================================================="
echo " Processing Aternatives for "${JDK_VERSION}

Overview

If you want to reformat JSON output from a single line to a nicely formatted document, you can use the following trick.

cat boring.json | python3 -m json.tool > pretty.json
@uuklanger
uuklanger / helpful_shell_commands.md
Last active August 18, 2021 02:46
Helpful Shell Commands

Helpful Command Cheet Sheet

These are commands that I forget regularly and need to look up.

Format JSON output as pretty

cat boring.json | python3 -m json.tool > pretty.json
@uuklanger
uuklanger / tilda.inputrc
Created June 29, 2021 13:18
Turn off bash bell sound in Terminal
# ~/.inputrc or /etc/inputrc
set bell-style none