Skip to content

Instantly share code, notes, and snippets.

@ran-z
Last active December 4, 2016 16:58
Show Gist options
  • Save ran-z/f10393c4d95e9f7f6b9deba199e40009 to your computer and use it in GitHub Desktop.
Save ran-z/f10393c4d95e9f7f6b9deba199e40009 to your computer and use it in GitHub Desktop.
dashboard launcher
$url = "https://gist.githubusercontent.com/ran-z/44d90354486c6adef0f1b5323ce3642a/raw/bc948e8f26257e579b6e9adffb32014b7d4bd199/aria-dashboard.html"
$output = "C:\ARIA\Dashboard\dashboard.html"
Invoke-WebRequest -Uri $url -OutFile $output
Stop-Process -name python
cd C:\ARIA\Dashboard\
Start-Job -ScriptBlock {
& python -m SimpleHTTPServer >console.out 2>console.err
}
Start-Process `http://localhost:8000/dashboard.html`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment