Skip to content

Instantly share code, notes, and snippets.

View naskoff's full-sized avatar
🏠
Working from home

Zlatin Hristov naskoff

🏠
Working from home
View GitHub Profile
git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%an%C(reset)%C(bold yellow)%d%C(reset) %C(dim white)- %s%C(reset)' --all
cat test.json| jq -c '.rows | .[]' | xargs -I % sh -c 'curl -X POST -d "%" http://php/req'
jq -c '.result[]' test.json | while read -r obj; do echo "$obj" | curl -X POST http://localhost:8080/api/notifications -H "Content-Type: application/json" -d @-; done