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

single host ansible playbook

for those times when you just want to run the playbook against a single host in the group … --limit hostname make sure that the host can be found in the inventory.

November 3, 2019 · sulrich

TIL: github publishes your public keys for you

today i learned, github publishes everyone’s public keys at https://github.com/username.keys. handy for bootstrapping a machine. mine

October 28, 2019 · sulrich

foo-lab topology building

overview to build a virtualized network topology from the most base elements it’s as simple as starting a virtual machine with the necessary number of virtualized interfaces and interconnecting these virtual interfaces to other virtual machines or physical interfaces. while there are tools1 which will nicely automate the creation of topologies and handle the lifecycle of VMs. all of these are effectively placing a nice wrapper around the following process....

May 20, 2019 · sulrich

microsoft reinvention

this bloomberg article re: microsoft under nadella is totally worth the read. it’s really difficult to recognize the microsoft from the ballmer era vs. what we see today. the products and the stuff coming out of microsoft is actualy pretty exciting. their hardware is decent, their cloud presence and developer support (hello, github.) is first rate and they’re consistently chipping away at AWS in the cloud space. 20 years ago, if you would have told me that they’d be sticking a linux layer into their OS and you’d have something approximating a useful unix userspace environment in your PC, i would have thought you were quite high....

May 6, 2019 · sulrich