Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelstz committed May 4, 2020
2 parents 6c6c23b + c9e86b0 commit 04fa7dd
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2018 Clean Docker Magento 2

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# TTFB Terminal

A easy way to check the TTFB via terminal

## Install

```bash
curl -s https://raw.githubusercontent.com/rafaelstz/ttfb-terminal/master/setup-ttfb
```

## Usage

![TTFB via terminal](ttfb-terminal.png)

2020 (c) [Rafael Corrêa Gomes](https://github.com/rafaelstz)
11 changes: 11 additions & 0 deletions setup-ttfb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

curl -O https://raw.githubusercontent.com/rafaelstz/ttfb-terminal/master/ttfb &&
sudo mv ./ttfb /usr/local/bin/ttfb &&
sudo chmod +x /usr/local/bin/ttfb &&
echo "
TTFB sucessfully installed, thanks!
$ ttfb google.com
" &&
rm -rf ./setup-ttfb
10 changes: 10 additions & 0 deletions ttfb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo "Usage
$ ttfb google.com
"
else
curl -so /dev/null -w "Connect: %{time_connect} \nTTFB: %{time_starttransfer} \nTotal time: %{time_total} \n" "$1"
fi
Binary file added ttfb-terminal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 04fa7dd

Please sign in to comment.