Playing around with PeppermintOS on a "new " old laptop, and having fun. Its making me realize that tiny things can really work to impress. (Especially when you’re waiting on a ram upgrade, haha!)
Could be terminal based or GUI, I’m just curious—what tiny apps do you use that you think are neat? Things that don’t take up much storage or memory.
jq
for parsing/formatting/manipulating JSON, and itsyq
wrapper for YAML. Holy shit you can do powerful queries with them.Or the even faster successor gojq.
Not sure how big the JSON files are you’re messing with, but I’ve never had any noticeable delay using
jq
.When you’re dealing with log files that are on the order of 100 MB or 1+ GB in size,
jq
can, indeed, be a bit slow. Often I usegrep
as a first-pass filter, which speeds things up tremendously. I’ll have to givegojq
a try and see if it makes the initialgrep
unneeded. The downside is thatjq
is often already installed everywhere I need it (VMs, base docker images, etc.), butgojq
definitely is not (yet).I use
jq
for decoding base64 😂pbpaste | jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'
Big fan of gron and grep myself. Way easier if you’re not doing anything crazy.
For sure. Often I use
grep
as a first pass to find relevant entries in JSON-lines formatted log files, and then pass that throughjq
(oryq -y
if I want YAML output) for further filtering, processing, and formatting.