Skip to content

Instantly share code, notes, and snippets.

@AndrewPaglusch
Created May 2, 2021 01:12
Show Gist options
  • Select an option

  • Save AndrewPaglusch/da69bec02241c64e976157cfa67684be to your computer and use it in GitHub Desktop.

Select an option

Save AndrewPaglusch/da69bec02241c64e976157cfa67684be to your computer and use it in GitHub Desktop.
Export All GitHub Gists for a User - One Liner
curl -s 'https://api.github.com/users/AndrewPaglusch/gists' | grep -oP '(?<=raw_url\":[ ]\")[^(\",)]+' | while read i; do filename=$(grep -oP '(?<=\/)[^\/]+$' <<< $i); echo "Downloading $filename..."; curl -Lso "$filename" "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment