Skip to content

Instantly share code, notes, and snippets.

@prerakmody
Last active March 10, 2026 15:18
Show Gist options
  • Select an option

  • Save prerakmody/196fe66bce102ee28c96942803a45120 to your computer and use it in GitHub Desktop.

Select an option

Save prerakmody/196fe66bce102ee28c96942803a45120 to your computer and use it in GitHub Desktop.
Windows Powershell

1 - Install gping

  1. Launch Powershell in Administrator mode
  2. First install chocolatey
  3. Install gping: choco install gping

1.1 - Sample command

  • gping google.com reddit.com <local-server>

2 - Make it a powershell alias

  1. notepad $PROFILE
    • Include in this file: function gpingAll { gping google.com reddit.com <local-server> }
  2. Run . $PROFILE to reload your powershell
  3. In powershell run: gpingAll
function gping-clusters { gping google.com ar-deeplearner ar-supermicro4gpu ar-datanator}
function gping-all { gping google.com ar-deeplearner ar-supermicro4gpu ar-datanator md-build00 }
function gs {
Invoke-Expression "git status"
}
function gd {
Invoke-Expression "git diff"
}
function prompt {
$envName = $env:CONDA_DEFAULT_ENV
if ($envName) {
Write-Host "($envName) " -NoNewline -ForegroundColor Green
}
Write-Host (Get-Location) -NoNewline
Write-VcsStatus
return "> "
}
@prerakmody
Copy link
Author

Or open it with notepad $PROFILE

@prerakmody
Copy link
Author

Restart with . $PROFILE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment