Skip to content

Instantly share code, notes, and snippets.

@cdcme
Last active December 27, 2018 10:08
Show Gist options
  • Save cdcme/b2919dacef70abc835d845e2ba4dec0f to your computer and use it in GitHub Desktop.
Save cdcme/b2919dacef70abc835d845e2ba4dec0f to your computer and use it in GitHub Desktop.
Using GNU Parallel with cUrl
seq 20 | parallel -n0 -j2 "curl -X "POST" "https://foo.bar.com/webhooks/doStuff" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer FOOTOKEN' \
-d $'{
\"stripe_customer_id\": \"blah\",
\"api_version\": \"2017-06-05\"
}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment