Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created December 30, 2018 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/c9ef93e6085fcb0acd72e002fd222598 to your computer and use it in GitHub Desktop.
Save alandipert/c9ef93e6085fcb0acd72e002fd222598 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
python -m SimpleHTTPServer &> /dev/null &
while : ; do
curl localhost:8000 2>/dev/null
[[ $? == 0 ]] && break
done
kill $!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment