• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jez/stargaze: Gaze at repos you've starred

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

jez/stargaze

开源软件地址:

https://github.com/jez/stargaze

开源编程语言:

Shell 100.0%

开源软件介绍:

stargaze

stargaze - gaze at repos you've starred

usage:
  stargaze fetch <github-user>   fetch (or refetch) your starred repos
  stargaze random [<n>]          fetch <n> random starred repos [default: 1].

This is a simple command line script to fetch random repos that you've starred on GitHub. It's useful as inspiration for finding hack ideas, passing the time, and rediscovering nifty projects I'd been meaning to revisit.

Example

$ stargaze random
https://github.com/carols10cents/rustlings
Small exercises to get you used to reading and writing Rust code

$ stargaze random
https://github.com/sobolevn/git-secret
:busts_in_silhouette: A bash-tool to store your private data inside a git repository.

Installation

It's just a simple bash script. Download stargaze and put it on your PATH.

Alternatively, there's a Homebrew formula if you're on macOS:

brew install jez/formulae/stargaze

If you want to take it up a notch, you can even add an alias like this in your bashrc/zshrc:

alias bored='stargaze random'

Dependencies

This script requires that jq and shuf or gshuf is on your PATH. If it's not check the installation instructions for your system:

Usage

We're using the GitHub API, which means you can run into rate limiting issues. For this reason, requests to the GitHub API are cached, and only read from the cache.

First: initialize the cache:

stargaze fetch GITHUB_USER

This dumps a file to $XDG_CACHE_HOME/stargaze/starred-repos.json.

Whenever you feel like updating the cache (i.e., you've starred a bunch of new repos), just re-run stargaze fetch GITHUB_USER

Second: ask for a random repo:

stargaze random

Alternatively, you can ask for more than one at a time:

stargaze random 10

LICENSE

MIT License




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap