Skip to content

Instantly share code, notes, and snippets.

@truthadjustr
Created January 24, 2019 10:40
Show Gist options
  • Save truthadjustr/463eb5c8a9c0ac31df020195869d33ed to your computer and use it in GitHub Desktop.
Save truthadjustr/463eb5c8a9c0ac31df020195869d33ed to your computer and use it in GitHub Desktop.
yml tip
pip install pyyml
python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < docker-compose.yml > /tmp/docker-compose.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment