-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# adhocore/fast | ||
|
||
A GO lang command line tool to check internet speed right from the terminal. | ||
|
||
> Uses [fast.com](https://fast.com) through headless chrome. | ||
## Usage | ||
|
||
First, Make sure you have `chrome` binary available in `$PATH` or `%path%`: | ||
```sh | ||
which chrome | ||
``` | ||
|
||
If you do not have it, in MacOS, you can do something like this: | ||
|
||
```sh | ||
echo '#!/bin/sh\n\n/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $@' > /usr/local/bin/chrome | ||
|
||
chmod +x /usr/local/bin/chrome | ||
``` | ||
|
||
In other OS, you can do something equivalent to above. The idea is `chrome` command should point to **Chrome Browser**. | ||
|
||
Then install `fast`: | ||
```sh | ||
go get github.com/adhocore/fast/cmd/fast | ||
``` | ||
|
||
Finally, make sure `$GOPATH` or `$HOME/go/bin` is in your `$PATH` or `%path%`, then run | ||
``` | ||
fast | ||
``` | ||
|
||
Wait a while or `Ctrl+C` if you can't. That's all. | ||
|
||
## Screen | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.