Skip to content

Commit 04fa7dd

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 6c6c23b + c9e86b0 commit 04fa7dd

5 files changed

Lines changed: 58 additions & 0 deletions

File tree

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Clean Docker Magento 2
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# TTFB Terminal
2+
3+
A easy way to check the TTFB via terminal
4+
5+
## Install
6+
7+
```bash
8+
curl -s https://raw.githubusercontent.com/rafaelstz/ttfb-terminal/master/setup-ttfb
9+
```
10+
11+
## Usage
12+
13+
![TTFB via terminal](ttfb-terminal.png)
14+
15+
2020 (c) [Rafael Corrêa Gomes](https://github.com/rafaelstz)

setup-ttfb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
curl -O https://raw.githubusercontent.com/rafaelstz/ttfb-terminal/master/ttfb &&
4+
sudo mv ./ttfb /usr/local/bin/ttfb &&
5+
sudo chmod +x /usr/local/bin/ttfb &&
6+
echo "
7+
TTFB sucessfully installed, thanks!
8+
9+
$ ttfb google.com
10+
" &&
11+
rm -rf ./setup-ttfb

ttfb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -z "$1" ]; then
4+
echo "Usage
5+
6+
$ ttfb google.com
7+
"
8+
else
9+
curl -so /dev/null -w "Connect: %{time_connect} \nTTFB: %{time_starttransfer} \nTotal time: %{time_total} \n" "$1"
10+
fi

ttfb-terminal.png

199 KB
Loading

0 commit comments

Comments
 (0)