Skip to content

Instantly share code, notes, and snippets.

View xhawk's full-sized avatar
💭
Fiercely coding stuff

Tomi Savolainen xhawk

💭
Fiercely coding stuff
View GitHub Profile
@rgl
rgl / wait_for_http_200.sh
Last active October 30, 2024 23:44
Wait for an HTTP endpoint to return 200 OK with Bash and curl
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done'
# also check https://gist.github.com/rgl/c2ba64b7e2a5a04d1eb65983995dce76