removing snaps from ubuntu 20.04 LTS

# list the snaps installed by default % snap list # remove these 1 by 1 % sudo snap remove <snap-name-from-above> # remove any snap directories % sudo rm -rf /snap /var/snap # purge snapd from the system % sudo apt purge snapd

April 25, 2020 · sulrich

flatten json to paths

the following will take the output from a json object and flatten it into a key-value path. this is particularly handy when you’re looking to parse out the supported paths in a given device. note: you need to remove the \s from this output and put the entire jq string on the same line. jq '[leaf_paths as $path \ | {"key": $path | join("/"), "value": getpath($path)}] \ | from_entries' foo.json alias to make life happy....

December 16, 2019 · sulrich