Skip to content

Instantly share code, notes, and snippets.

@rakshazi
Created July 2, 2019 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakshazi/d6da2edba6bc160f8f6a87e647aeb266 to your computer and use it in GitHub Desktop.
Save rakshazi/d6da2edba6bc160f8f6a87e647aeb266 to your computer and use it in GitHub Desktop.
Check your repos with stars on GitHub
$ stars.sh
8       titanium-codes/LocGetter
5       titanium-codes/docker-compose
5       frameworkwtf/skeleton
3       titanium-codes/yandex-tts-processor
2       titanium-codes/cibu
2       titanium-codes/bump.sh
2       rakshazi/getSetTrait
2       rakshazi/digestauth
2       rakshazi/ansible-skeleton
2       frameworkwtf/rest
2       frameworkwtf/orm
2       frameworkwtf/core
1       titanium-codes/ro-ru-transliterator
1       titanium-codes/retrofit-2-call-preprocessor
1       titanium-codes/docker-swagger-php
1       titanium-codes/docker-phpunit
1       titanium-codes/docker-curl
1       titanium-codes/docker
1       titanium-codes/Blog
1       rakshazi/nvim
1       rakshazi/NotaterGo
1       rakshazi/docker-sentry-cli
1       rakshazi/docker-atom
1       frameworkwtf/middleware-filters
1       frameworkwtf/html
1       frameworkwtf/generator
1       frameworkwtf/framework.wtf
1       frameworkwtf/docker
1       frameworkwtf/auth
1       forestguild/website
#!/bin/bash
# replace SOURCES list with your values
SOURCES=("users/rakshazi" "orgs/frameworkwtf" "orgs/titanium-codes" "orgs/forestguild")
for repo in "${SOURCES[@]}"; do
table=$(curl -sH "Accept: application/vnd.github.v3.star+json" "https://api.github.com/${repo}/repos"|jq -r '.[]|[.stargazers_count,.full_name]|@tsv' | sed '/^0/d')
REPOS="${REPOS}\n${table}"
done
printf "$REPOS" | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment