Recipes / Cookbook

Common patterns and workflows for getting the most out of Hash.

Data Processing

Convert CSV to JSON

cat data.csv | ?? convert to json array of objects

Extract fields from logs

cat access.log | ?? extract ip and status code, group by status

DevOps

Kubernetes Health Check

kubectl get pods -A | ?? show unhealthy pods and their restart counts

Docker Cleanup

docker ps -a | ?? find exited containers from last week

Git Workflows

Conventional Commits

git diff --staged | ?? generate conventional commit message

Branch Cleanup

git branch --merged | ?? list branches safe to delete (exclude main)