Skip to content

Instantly share code, notes, and snippets.

@plasticine
Last active April 30, 2020 12:15
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 plasticine/f06be5e0f55793ca05104a833fbfa861 to your computer and use it in GitHub Desktop.
Save plasticine/f06be5e0f55793ca05104a833fbfa861 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
plasticine() {
[[ -z ${ITS_ME:-} ]] && {
echo "MAKING A NETWORK CALL!!!"
ITS_ME=$(curl -sSL https://api.github.com/users/plasticine)
}
plasticine() {
echo ${ITS_ME:-} | jq -r "$1"
}
plasticine "$1"
}
plasticine ".name"
plasticine ".bio"
plasticine ".avatar_url"
MAKING A NETWORK CALL!!!
Justin Morris
Code @ferocia, previously @buildkite & @conversation
https://avatars0.githubusercontent.com/u/18076?v=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment