Skip to content

Instantly share code, notes, and snippets.

import json
def compare_json_keys(file1, file2):
def get_keys(d, parent_key=''):
keys = []
for k, v in d.items():
new_key = f"{parent_key}.{k}" if parent_key else k
if isinstance(v, dict):
keys.extend(get_keys(v, new_key))
else:
# rancher as docker replacement
# avoid conflict with rancher installation
brew uninstall helm kubectl nerdctl docker docker-compose
# install rancher
brew install --cask rancher
brew install docker-compose
brew install docker-credential-helper