Skip to content

Instantly share code, notes, and snippets.

@levigroker
levigroker / JSON Format.sh
Last active November 16, 2023 22:00
BBEdit Text Filter to "pretty print" JSON
#!/bin/bash
# JSON Format - BBEdit Text Filter to "pretty print" JSON
# https://gist.github.com/levigroker/3777091
# 2023-11-16
JQ_E="jq"
which "$JQ_E" >/dev/null 2>&1
[ $? == 0 ] || { echo "ERROR: Please ensure '$JQ_E' is installed. 'brew install $JQ_E' (see https://jqlang.github.io/jq/ )" >&2; exit 1; }
$JQ_E --sort-keys --tab .
@levigroker
levigroker / URLDecode.sh
Last active June 27, 2023 21:40
A BBEdit Text Filter script to take textual input and produce URL decoded text of the same.
#!/bin/bash
#
# URL Decode
# https://gist.github.com/levigroker/892fd435d701b4e8f56bfcec819d5ef2
#
# A BBEdit Text Filter script to take textual input and produce URL decoded text of the same.
# See https://www.bbeditextras.org/text-filters/
# Levi Brown
# @levigroker
# [email protected]
@levigroker
levigroker / URLEncode.sh
Last active August 14, 2024 22:21
A BBEdit Text Filter script to take textual input and produce URL encoded text of the same.
#!/bin/bash
#
# URL Encode
# https://gist.github.com/levigroker/36525010ba0bce15450c89fe6a5f36b1
#
# A BBEdit Text Filter script to take textual input and produce URL encoded text of the same.
# See https://www.bbeditextras.org/text-filters/
# Levi Brown
# @levigroker
# [email protected]