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
#!/bin/bash | |
zcat -f /var/log/nginx/access.log* | goaccess -a -d -p /etc/goaccess.conf -o /var/www/goaccess/report.html |
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
$ zcat -f access.log* | goaccess -a |
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
ssh -i my_ec2_private_key.pem [email protected] | |
sudo apt-get update | |
sudo apt-get install ec2-instance-connect |
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
ssh -i my_ec2_private_key.pem [email protected] | |
sudo yum update | |
sudo yum install ec2-instance-connect |
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
pip install ec2instanceconnectcli |
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
git clone https://github.com/dawnlabs/carbon | |
cd carbon | |
npm install /* install 安裝 */ | |
npm run build /* build 編譯 */ | |
npm start /* start 開啟服務 */ |
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
dig +nocmd +noall +answer +ttlid a google.com |
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
//npm.pkg.github.com/:_authToken=PERSONAL-ACCESS-TOKEN | |
@Codertocat:registry=https://npm.pkg.github.com/ |
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
clarence:~$ curl https://blog.clarence.tw | |
clarence:~$ curl -o /dev/null https://blog.clarence.tw | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 32550 0 32550 0 0 27874 0 --:--:-- 0:00:01 --:--:-- 27892 | |
clarence:~$ curl -w "@curl-format.txt" https://blog.clarence.tw | |
clarence:~$ curl -w "@curl-format.txt" -o /dev/null https://blog.clarence.tw |
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
clarence~: python -m SimpleHTTPServer 80 | |
clarence~: curl http://clarence.local/ | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html> | |
<title>Directory listing for /</title> | |
<body> | |
<h2>Directory listing for /</h2> | |
<hr> | |
<ul> | |
</ul> |