Skip to content

Instantly share code, notes, and snippets.

View jleader's full-sized avatar

Jeremy Leader jleader

View GitHub Profile
@hoel-zr-o
hoel-zr-o / go.mod
Created April 24, 2025 21:55
PromQL → JSON AST tool
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
@frioux
frioux / ego-boost.sh
Created January 7, 2016 19:01
How many stars do you have in total?
#!/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