Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Latest commit

 

History

History
59 lines (42 loc) · 1.03 KB

File metadata and controls

59 lines (42 loc) · 1.03 KB

Demo Runbook

httpie

http GET https://swapi.tech/api/starships
http GET https://swapi.tech/api/starships/9 --output starship-demo.json

jq

cat starships.json| jq '.'
cat starships.json| jq '.results'
cat starships.json| jq '.results.[0]'
cat starships.json| jq '.results.[0].name'
cat starships.json| jq '.results.[].name'

yq

cat starships.yaml | yq .
cat starships.yaml | yq . -y
cat starships.yaml | yq .results -y
cat starships.yaml | yq .results.[0] -y
cat starships.yaml | yq .results.[0].name -y
cat starships.yaml | yq .results.[].name -y

sort

cat people.json | jq '.results.[].gender' | sort

uniq

cat people.json | jq '.results.[].gender' | sort | uniq
cat people.json | jq '.results.[].gender' | sort | uniq -c

dive

dive sparsick/spring-boot-demo

trivy

trivy image sparsick/spring-boot-demo
trivy image --ignore-unfixed sparsick/spring-boot-demo
trivy image --ignore-unfixed sparsick/spring-boot-demo --format json