Skip to content

Instantly share code, notes, and snippets.

@werrpy
Created March 11, 2019 23:35
Show Gist options
  • Save werrpy/3e872d517f48a687d42b812f4e9ef7a1 to your computer and use it in GitHub Desktop.
Save werrpy/3e872d517f48a687d42b812f4e9ef7a1 to your computer and use it in GitHub Desktop.
python -c "from __future__ import print_function; import requests; print(\"it's up\") if requests.get(\"https://example.com\").status_code == 200 else print(\"it's down\")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment