Skip to content

Instantly share code, notes, and snippets.

View billerz's full-sized avatar
🏠
Working from home

billx billerz

🏠
Working from home
View GitHub Profile
API_KEY=
curl -s -H "X-CMC_PRO_API_KEY: $API_KEY" -H "Accept: application/json" -d "start=1&limit=5000&convert=USD" -G https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest > result.json
cat result.json | jq '.data[0].symbol'
cat result.json | jq '.data[0].quote.USD.price'
echo ""
cat result.json | jq '.data[1].symbol'
cat result.json | jq '.data[1].quote.USD.price'
echo ""
cat result.json | jq '.data[2].symbol'
# How to use
# Make sure you install curl. By running curl -v to test it.
# Provide your Gmail username and password and who you need to send email to.
# For password it is not your Gmail password but it is App passwords https://support.google.com/mail/answer/185833. Please go to your Gmail account setting and create it.
# chmod -R 777 send-email-gmail.com
# ./send-email-gmail.com
# Your Gmail username (email) (Required)
SENDER_GMAIL_USERNAME=
# Your App password (Required)