Linking to the raw version of a gist.
To return the first file from a gist:
curl -L https://gist.github.com/[gist_user]/[gist_id]/raw/
- Example: https://gist.github.com/atenni/5604522/raw/
- Works even when you change the filename.
To get a file from multi–file gist:
curl -L https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
(via: http://stackoverflow.com/a/14529686)
curl https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
https://gist.github.com/raw/[ID]/[REVISION]/[FILE]
or
https://gist.githubusercontent.com/raw/[ID]/[REVISION]/[FILE]
[ID] is necessary
[REVISION]
can be omitted to get the latest revision [FILE] can be omitted to get the first file
curl -L https://raw.github.com/gist/[gist_id]
OR
curl -L https://gist.github.com/[user_name]/[gist_id]/raw
'''
(which is more likely to be an unique URI.)
returns first file from the gist.
For gist with multiple files, ```curl -L https://raw.github.com/gist/[gist_id]/[file_name]```
The url works even when you change the filename.
e.g.
curl -L https://raw.github.com/gist/4636655 https://raw.github.com/gist/4636655/imdb-getglue.js
---