Skip to content

Instantly share code, notes, and snippets.

@DrI-T
Last active July 5, 2021 07:26
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 DrI-T/1db756f5858b0e9f0c83c6f594b79c35 to your computer and use it in GitHub Desktop.
Save DrI-T/1db756f5858b0e9f0c83c6f594b79c35 to your computer and use it in GitHub Desktop.
Nightingale

nightingale (NFT)

When an image can sing ...

With a few bash commands you can make this image sing :)

requirements:

  • /bin/sh
  • curl
  • convert from ImageMagick
  • ffplay from fffmpeg tools

nightingale

tokenid=18791618300568609234455454998567998769890912531854579616928177998140807315457
api_url="https://api.opensea.io/api/v1/assets?offset=0&limit=1&token_ids=$tokenid"
name="$(curl -s $api_url | jq -r .assets[0].name)"
echo "--- # $name"
echo "this is the $name NFT from doctor I T" | speak
png="$(curl -s $api_url | jq -r .assets[0].image_url)=s0"
curl -s $png | convert png:- ppm:- | tail +4 | ffplay -
tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
author Anonymous <anonymous@mailinator.com> 1625434253 +0200
committer Anonymous <anonymous@mailinator.com> 1625434253 +0200
#
tokenid=18791618300568609234455454998567998769890912531854579616928177998140807315457
api_url="https://api.opensea.io/api/v1/assets?offset=0&limit=1&token_ids=$tokenid"
name="$(curl -s $api_url | jq -r .assets[0].name)"
echo "--- # $name"
echo "this is the $name NFT from doctor I T" | speak
png="$(curl -s $api_url | jq -r .assets[0].image_url)=s0"
curl -s $png | convert png:- ppm:- | tail +4 | ffplay -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment