Skip to content

Instantly share code, notes, and snippets.

View japzio's full-sized avatar
🎯
learning...

Jasper C japzio

🎯
learning...
View GitHub Profile
@janeczku
janeczku / README.md
Created April 29, 2019 19:41
Nginx ingress with AWS ELB TCP proxy

$ kubectl apply -f aws-elb-service.yaml -n ingress-nginx

$ kubectl apply -f nginx-configmap.yml -n ingress-nginx

@IAmStoxe
IAmStoxe / loop-json.sh
Last active June 17, 2025 17:04
This example shows you how to utilize jq to loop bash script through an array of JSON values.
jsonData='[{"name": "name#1","value": "value#1"},{"name": "name#2","value": "value#2"}]'
for row in $(echo "${jsonData}" | jq -r '.[] | @base64'); do
_jq() {
echo "${row}" | base64 --decode | jq -r "${1}"
}
# OPTIONAL
# Set each property of the row to a variable
name=$(_jq '.name')
value=$(_jq '.value')