Skip to content

Instantly share code, notes, and snippets.

@jcstein
Created August 6, 2024 22:51
Show Gist options
  • Save jcstein/48e04cfb8503c3332d1eda9e52520bb3 to your computer and use it in GitHub Desktop.
Save jcstein/48e04cfb8503c3332d1eda9e52520bb3 to your computer and use it in GitHub Desktop.
TOTAL_BLOBS=$(curl -s https://api.celenium.io/v1/head | jq '.total_blobs_size')
SIZE_IN_GB=$(echo "scale=3; $TOTAL_BLOBS / (1024 * 1024 * 1024)" | bc)
echo "Total blobs size in gigabytes: ${SIZE_IN_GB} GB"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment