Skip to content

Instantly share code, notes, and snippets.

View korbexmachina's full-sized avatar
🦀
Rust is pretty cool!

Korben Tompkin korbexmachina

🦀
Rust is pretty cool!
View GitHub Profile
@korbexmachina
korbexmachina / brewstats.sh
Created January 6, 2024 10:02
Get homebrew stats for the last 365 days for formulae that match the pattern passed as an argument.
#!/bin/bash
# This script gets homebrew download stats for the last 365 days
# for formulae that match a given pattern
# The pattern is passed as the first argument to the script
# Usage: ./brewstats.sh <pattern>
# Output: CSV data of the form <formula>,<downloads>
# Check that there is exactly one argument
if [ $# -ne 1 ]; then
echo "Usage: ./brewstats.sh <pattern>"

Keybase proof

I hereby claim:

  • I am korbexmachina on github.
  • I am korbexmachina (https://keybase.io/korbexmachina) on keybase.
  • I have a public key ASBHIxv1R99w6pBR2t2ot45SLPs8WvNjwbYyXBXSv74N2wo

To claim this, I am signing this object: