Skip to content

Instantly share code, notes, and snippets.

Just Coding!

Mendel Greenberg chabad360

Just Coding!
View GitHub Profile
View keybinding_PM1945144702920.json
"0": {
"name": "Default",
"default_map": "Default",
"Default": {
"is_using_matrix": true,
"red_led": 1,
"green_led": 0,
"blue_led": 0,
"matrix": {
chabad360 /
Last active Dec 23, 2019
Keybase Github Proof

Keybase proof

I hereby claim:

  • I am chabad360 on github.
  • I am chabad360 ( on keybase.
  • I have a public key whose fingerprint is 4BCF 3BA4 BE9F C819 4C6F F7BC 0A6B E3C9 CD4A 46F4

To claim this, I am signing this object:

chabad360 /
Last active Apr 9, 2019
Prints a file in a easy to find format, useful for logging config files (Uses colors!)
# Function usage 'output ./test.txt "Test File"'
function output () {
TITLE=$2 NAME=${3:-$(echo "$1" | grep -o '\([^\/\\]\+\.\w\+\)$')} awk 'BEGIN{print "\033[1;36m" ENVIRON["TITLE"] \
":\n\033[0;31m" ENVIRON["NAME"] "\t|\033[1;31m ------------------------------------------------------------------------\033[0m"} \
{print "\033[0;31m" ENVIRON["NAME"] "\t| \033[0m" $0} END{print "\033[0;31m" \
ENVIRON["NAME"] "\t|\033[1;31m ------------------------------------------------------------------------\033[0m\n"}' $1