A joke script and GitHub CLI extension that checks githubstatus.com and reads the omens on whether GitHub is likely to fall over in the next hour.
chmod +x ./gh-omens ./omens
./omens
or run the main script directly:
./gh-omens
Example output:
nah she'll be right
risk score: 0
because: githubstatus.com says everything is operational
The extension executable is:
gh-omensWhen installed as a GitHub CLI extension, you run it as:
gh omens
Install it from GitHub with:
gh extension install sandermvanvliet-stack/gh-omens
For local testing, use a clone or directory named gh-omens:
git clone git@github.com:sandermvanvliet-stack/gh-omens.git gh-omens
cd gh-omens
gh extension install .
gh omens
If you installed an earlier version of the extension and see this error:
env: bash\r: No such file or directory
remove and reinstall the extension:
gh extension remove gh-omens
gh extension install sandermvanvliet-stack/gh-omens
The repo now includes .gitattributes to force LF line endings for the shell scripts, which avoids that issue on systems with Git core.autocrlf=true.
You just need:
bashcurl or wgetgrep, sed, awk, and trgh if you want to run it as an extensionIt pulls data from these GitHub Status API endpoints:
https://www.githubstatus.com/api/v2/status.jsonhttps://www.githubstatus.com/api/v2/incidents/unresolved.jsonhttps://www.githubstatus.com/api/v2/components.jsonhttps://www.githubstatus.com/api/v2/scheduled-maintenances/active.jsonhttps://www.githubstatus.com/api/v2/scheduled-maintenances/upcoming.jsonThen it adds up a silly little risk score based on:
If the score is 4 or higher, it declares that GitHub is likely to tank.
It also picks a random response from a pool of normal and extra-chaotic Aussie lines.
This is a gimmick, not a predictor. Please do not use this as the basis for life decisions, trading strategies, release trains, or spiritual guidance.
5 commits
Hacker News (2)
Shell
100.0%
A joke script and GitHub CLI extension that checks githubstatus.com and reads the omens on whether GitHub is likely to fall over in the next hour.
chmod +x ./gh-omens ./omens
./omens
or run the main script directly:
./gh-omens
Example output:
nah she'll be right
risk score: 0
because: githubstatus.com says everything is operational
The extension executable is:
gh-omensWhen installed as a GitHub CLI extension, you run it as:
gh omens
Install it from GitHub with:
gh extension install sandermvanvliet-stack/gh-omens
For local testing, use a clone or directory named gh-omens:
git clone git@github.com:sandermvanvliet-stack/gh-omens.git gh-omens
cd gh-omens
gh extension install .
gh omens
If you installed an earlier version of the extension and see this error:
env: bash\r: No such file or directory
remove and reinstall the extension:
gh extension remove gh-omens
gh extension install sandermvanvliet-stack/gh-omens
The repo now includes .gitattributes to force LF line endings for the shell scripts, which avoids that issue on systems with Git core.autocrlf=true.
You just need:
bashcurl or wgetgrep, sed, awk, and trgh if you want to run it as an extensionIt pulls data from these GitHub Status API endpoints:
https://www.githubstatus.com/api/v2/status.jsonhttps://www.githubstatus.com/api/v2/incidents/unresolved.jsonhttps://www.githubstatus.com/api/v2/components.jsonhttps://www.githubstatus.com/api/v2/scheduled-maintenances/active.jsonhttps://www.githubstatus.com/api/v2/scheduled-maintenances/upcoming.jsonThen it adds up a silly little risk score based on:
If the score is 4 or higher, it declares that GitHub is likely to tank.
It also picks a random response from a pool of normal and extra-chaotic Aussie lines.
This is a gimmick, not a predictor. Please do not use this as the basis for life decisions, trading strategies, release trains, or spiritual guidance.
Hacker News (2)
5 commits
Shell
100.0%