Skip to content

Instantly share code, notes, and snippets.

@3h4x
Created January 5, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3h4x/0aa6b000d198d9ec8222e720c8f0bfd3 to your computer and use it in GitHub Desktop.
Save 3h4x/0aa6b000d198d9ec8222e720c8f0bfd3 to your computer and use it in GitHub Desktop.
Checking Ubuntu AMI releases
python -c "import requests; import csv; import json; result = [row for row in csv.reader(requests.get('https://cloud-images.ubuntu.com/query/released.latest.txt').content.decode('utf-8').splitlines(), delimiter='\t')]; print(json.dumps({k[0]: k[3] for k in result}, indent=4))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment