Skip to content

Instantly share code, notes, and snippets.

@sasasin
Last active March 3, 2023 08:16
Show Gist options
  • Save sasasin/95832fe78636fea526a82ee797e276e6 to your computer and use it in GitHub Desktop.
Save sasasin/95832fe78636fea526a82ee797e276e6 to your computer and use it in GitHub Desktop.
https://github.com/awsdocs の全リポジトリの Atom の URL を得るやつ
#!/bin/bash
set -eo pipefail
# https://github.com/awsdocs の全リポジトリの Atom の URL を得るやつ
# たぶん全部 main ブランチ
gh repo list awsdocs --no-archived --limit 500 \
| cut -f 1 \
| sort -u \
| awk '{print "https://github.com/" $1 "/commits/main.atom"}'
#!/bin/bash
set -eo pipefail
cat - \
| awk 'BEGIN{print "<?xml version=\"1.0\" encoding=\"utf-8\"?><opml version=\"1.0\"><head><title>My Feeds</title></head><body>"}{print "<outline text=\"\" htmlUrl=\"\" type=\"rss\" xmlUrl=\""$1"\"/>"}END{print "</body></opml>" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment