Git Product home page Git Product logo

pingety-ping's Introduction

pingety-ping

Colorized terminal-mode bar-charting for ping

Why

Mainly this came out of frustration with in-flight wifi, which is never great and often completely absent. I like to have a terminal window open pinging a well-known IP address so I instantly see the status of my network connection -- not the flawless four-bar signal to the onboard router, but the status from there onward. If I can see what's going on, I'm less likely to be frustrated by it and more likely to accept the transient phenomena.

Since ping times vary by several orders of magnitude -- less than 10 ms for good land fiber, 100 ms or so for VPN, 1000-2000 ms for in-flight -- a logarithmic scale is necessary.

How

You can supply a ping target, e.g. pingety-ping 8.8.8.8, to use a script-internal (ruby-lib) pinger.

Or, you can use -x to pipe in the output of the system ping command, e.g. ping 8.8.8.8 | pingety-ping -x.

Dependencies

sudo $NAME_OF_YOUR_PACKAGE_MANAGER install ruby
sudo gem install net-ping

Screenshots

In-flight, high-latency but reliable:

in-flight.png

Pinging the onboard router on the same flight -- stellar -- which is why the desktop icon gives a hearty four-bars review to the signal quality, when the reality is more complex:

onboard-router.png

High-variance on local network:

meh.png

Low-quality connection:

not-great.png

On good fiber -- before, during, and after disconnect from VPN:

vpn-disconnect.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.