This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module example.com/alert-rule-experiment | |
go 1.23.6 | |
require github.com/prometheus/prometheus v0.301.0 | |
require ( | |
github.com/beorn7/perks v1.0.1 // indirect | |
github.com/cespare/xxhash/v2 v2.3.0 // indirect | |
github.com/dennwc/varint v1.0.0 // indirect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/dash | |
ego=${1:-frioux} | |
count=0 | |
for repo in $(git hub repos --raw $ego); do | |
inner_count=$(git hub stars $repo --raw | grep -v $ego | wc -l) | |
count=$(($count + $inner_count)) | |
echo "$repo: $inner_count" | |
done |