This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |