Skip to content

Instantly share code, notes, and snippets.

@stephenamills
Last active September 18, 2024 05:15
Show Gist options
  • Save stephenamills/9dc7a73cdffb794413a90196eaff7ccf to your computer and use it in GitHub Desktop.
Save stephenamills/9dc7a73cdffb794413a90196eaff7ccf to your computer and use it in GitHub Desktop.
Packages for different programming languages
ghsr --language go
ghsc --filename 'go.mod' 'kube'
curl --compressed -s https://formulae.brew.sh/api/formula.json | jq '.[] | .name + "\n" + .desc + "\n" + .homepage + "\n"' -r
curl --compressed -s https://formulae.brew.sh/api/formula.json | jq '.[] | select((.name + " " + .desc) | ascii_downcase | contains("terra")) | "brew " + "\"" + .name + "\"" + " # " + .desc' -r
curl --compressed -s https://formulae.brew.sh/api/cask.json | jq '.[] | select((.token + " " + .desc) | ascii_downcase | contains("present")) | "brew " + "\"" + .token + "\"" + " # " + .desc' -r
gh api \
'/search/code?q=@radix-ui&per_page=100' \
| jq '.items[] | .repository.html_url + " # " + .repository.description' -r
ghsc --filename 'package.json' '@astrojs/tailwind' --json repository -L 1000 | jq '.[] | .repository.nameWithOwner + " - " + .repository.url' -r
npm search 'keyword' --searchlimit 2500 --json | jq '.[] | .name + "\n" + .description + "\n" + .links.homepage + "\n"' -r
apt search capirca
nix search nixpkgs nodejs --quiet
ghsc --filename 'flake.nix' 'mkYarnPackage'
curl -s 'https://aur.archlinux.org/rpc/v5/search/FIXME:KEYWORD?by=name-desc' | jq '.results[] | .Name + ": " + .Description' -r
echo 'i /keyword/' | cpan
ghsr --language python
pypisearch -p 1-5 'keyword'
cargo search 'keyword'
counter=1; for file in $(ls | sort); do new_file_name=$(printf "%02d-%s" "$counter" "${file#*-}"); mv "$file" "$new_file_name"; ((counter++)); done
ghsr --language bash
ghsc 'com.apple.security.virtualization' --json path,repository -L 1000 | jq '.[] | .repository.nameWithOwner + " " + .path' -r | align
ghsr --language swift
curl --compressed -s https://raw.githubusercontent.com/SwiftPackageIndex/PackageList/main/packages.json | jq '.[] | select(contains("0111b"))' -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment