Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created November 8, 2013 16:23
Show Gist options
  • Select an option

  • Save ingydotnet/7373585 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/7373585 to your computer and use it in GitHub Desktop.
GitHub ETag still busted
> curl --request GET 'https://api.github.com/users/diakopter' --dump-header head --output out --silent; sha1sum out; echo "$(grep -Ec '^ *\{' out) followers"; grep -E '^(Status|ETag):' head; echo
e31e960f81c09c2e42d2d903f8d0f8ca7874b9b6 out
1 followers
Status: 200 OK
ETag: "0eb4a70d45390a53bcf157300ec99dd4"
> git hub follow diakopter
'git hub follow' command successful
> curl --request GET 'https://api.github.com/users/diakopter' --dump-header head --output out --silent; sha1sum out; echo "$(grep -Ec '^ *\{' out) followers"; grep -E '^(Status|ETag):' head; echo
c374f6afea25a7d483b1c95270726ba1675bb84e out
1 followers
Status: 200 OK
ETag: "0eb4a70d45390a53bcf157300ec99dd4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment