Skip to content

Instantly share code, notes, and snippets.

View samnang's full-sized avatar
🚀

Samnang Chhun samnang

🚀
View GitHub Profile
#!/usr/bin/env bash
# This script clones all repos in a GitHub org
# It requires the GH CLI: https://cli.github.com
# It can be re-run to collect new repos and pull the latest changes
set -euo pipefail
USAGE="Usage: gh-clone-org <user|org>"
@samnang
samnang / cgrates.md
Created December 11, 2025 03:53 — forked from dwilkie/cgrates.md
CGRateS commands

Useful CGrateS commands

Run ngrep on the cgrates container with JSON formatting

docker compose exec -it billing-engine sh -c \
'ngrep -d any -W byline port 2021 or 2013 or 2014 or 2080 or 2060 or 2012 | \
while read line; do
  echo "$line" | jq . 2>/dev/null || echo "$line"
done'