Skip to content

Instantly share code, notes, and snippets.

@DmitryMyadzelets
Last active February 15, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DmitryMyadzelets/17763cd251d67f07bcb7f73915068d70 to your computer and use it in GitHub Desktop.
Save DmitryMyadzelets/17763cd251d67f07bcb7f73915068d70 to your computer and use it in GitHub Desktop.
Networking
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

Example output:

Retrieving speedtest.net configuration...
Testing from WIND (151.48.54.99)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telecomitalia S.p.A. (Modena) [36.92 km]: 29.38 ms
Testing download speed...
Download: 11.64 Mbit/s
Testing upload speed...
Upload: 0.89 Mbit/s

2017.08

Saragozza: Download: 10.08 Mbit/s, Upload: 0.85 Mbit/s
Irkutsk39: Download: 17.84 Mbit/s, Upload: 33.06 Mbit/s
prussa@reg.ru: Download: 97.02 Mbit/s, Upload: 422.00 Mbit/s
scw-portico: Download: 501.28 Mbit/s, Upload: 438.34 Mbit/s

2017.12

Saragozza: Download: 18.09 Mbit/s, Upload: 16.13 Mbit/s
Irkutsk39: Download: 3.59 Mbit/s, Upload: 2.81 Mbit/s
scw-portico: Download: 676.29 Mbit/s, Upload: 528.74 Mbit/s

Monitor signal strength

watch -d -n1 iwconfig
watch -d -n1 'iwconfig wlan0 | grep level'

Montior wifi networks

watch -d nmcli dev wifi
watch -d -n1 "nmcli -t -f SIGNAL,SSID,ACTIVE dev wifi | sort -r | column -t -s: | sed s/\'//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment