summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rwxr-xr-xshell/github-get-starred.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/github-get-starred.sh b/shell/github-get-starred.sh
new file mode 100755
index 0000000..4623986
--- /dev/null
+++ b/shell/github-get-starred.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+USER=${1:-pks}
+
+for PAGE in {0..9}; do
+ curl -sH "Accept: application/vnd.github.v3.star+json" "https://api.github.com/users/$USER/starred?per_page=100&page=$PAGE"|jq -r '.[]|[.starred_at,.repo.full_name]|@tsv'
+done