CLI Tools

  1. tut: TUI for Mastodon with vim inspired keys
  2. sampler: Tool for shell commands execution, visualization and alerting
  1. Gather Linux system info with CPU-X
  2. Free up space on your Linux system with this open source tool
  3. 5 Factors When Considering FreeBSD vs. Linux: Packages

Tip of the Week

Working with data formats:

# create json with https://github.com/jpmens/jo
% foo="$(jo -p cities=$(jo boston=ma miami=fl seattle=wa))"

# interact with json with https://github.com/noahgorstein/jqp
% echo "$foo" | jqp

# read and manipulate json with https://github.com/stedolan/jq
% echo "$foo" | jq '.cities.boston'
"ma"

# convert json to yaml with https://github.com/kislyuk/yq
% echo "$foo" | yq -y .
cities:
  boston: ma
  miami: fl
  seattle: wa

# convert json to xml
% echo "$foo" | yq -x .
<cities>
  <boston>ma</boston>
  <miami>fl</miami>
  <seattle>wa</seattle>
</cities>

# covert toml to json to yaml
% cat << EOF > /tmp/toml
[servers]

[servers.alpha]
ip = "10.0.0.1"
role = "frontend"

[servers.beta]
ip = "10.0.0.2"
role = "backend"
EOF

% cat /tmp/toml | tomlq -c | yq -y .
servers:
  alpha:
    ip: 10.0.0.1
    role: frontend
  beta:
    ip: 10.0.0.2
    role: backend