Skip to content

Instantly share code, notes, and snippets.

View gniting's full-sized avatar
🐢

Nitin Gupta gniting

🐢
View GitHub Profile
@gniting
gniting / mtr_test.py
Last active January 24, 2024 22:29
Help ControlD team
import subprocess
def run_command(command):
return subprocess.run(command, capture_output=True, text=True).stdout
def ping_host(host):
return run_command(['ping', '-c', '5', host])
def run_mtr(host):
return run_command(['mtr', '-4', '-z', '-r', '-c', '5', host])

Keybase proof

I hereby claim:

  • I am gniting on github.
  • I am nitin (https://keybase.io/nitin) on keybase.
  • I have a public key ASDKmW6MpT-w8MLdwF44r8mfUNndJa1_98FlieLQLXzmhAo

To claim this, I am signing this object: