Skip to content

Instantly share code, notes, and snippets.

@chrisbrownie
Created June 5, 2016 08:19
Show Gist options
  • Save chrisbrownie/2b7c277aaeba03fcd24feda2c0b562ed to your computer and use it in GitHub Desktop.
Save chrisbrownie/2b7c277aaeba03fcd24feda2c0b562ed to your computer and use it in GitHub Desktop.
Lets you know, loudly, when a site is available
$uri = "https://flamingkeys.com"
while ($true) {
try {
Invoke-WebRequest $uri -TimeoutSec 5
start "https://www.youtube.com/watch?v=xos2MnVxe-c"
break
} catch {
"Down"
}
Start-Sleep -Seconds 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment