Skip to content

Instantly share code, notes, and snippets.

View ystoneman's full-sized avatar

Yann Stoneman ystoneman

View GitHub Profile
@ystoneman
ystoneman / get-csv-contents.sh
Created December 11, 2022 03:17
How to get a CSV file bigger than 1MB from GitHub
# replace vnd.github+json with vnd.github.raw+json when a file is bigger than 1MB
curl \
-H "Accept: application/vnd.github.raw+json" \
-H "Authorization: Bearer TOKEN"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ystoneman/hotel-bookings/contents/hotel_bookings.csv