Skip to content

Instantly share code, notes, and snippets.

View gslin's full-sized avatar

Gea-Suan Lin gslin

View GitHub Profile
gslin@home [~] [00:32/W5] curl -i https://www.mybank.com.tw/
HTTP/1.1 302 Moved Temporarily
Content-Length: 0
Content-Type: text/html; charset=utf-8
Location: https://www.mybank.com.tw/mybank/Home/WRedirect
Date: Mon, 06 Aug 2018 16:32:15 GMT
Connection: keep-alive
gslin@home [~] [00:32/W5] curl -i https://www.mybank.com.tw/mybank/Home/WRedirect
HTTP/1.1 302 Moved Temporarily
ubuntu@ip-172-31-3-90:/tmp$ sudo ./install auto
I, [2018-07-27T06:51:43.123116 #1205] INFO -- : Starting Ruby version check.
E, [2018-07-27T06:51:43.123341 #1205] ERROR -- : Current running Ruby version for root is 2.5.1, but Ruby version 2.x needs to be installed.
E, [2018-07-27T06:51:43.123481 #1205] ERROR -- : If you already have the proper Ruby version installed, please either create a symlink to /usr/bin/ruby2.x,
E, [2018-07-27T06:51:43.123637 #1205] ERROR -- : or run this install script with right interpreter. Otherwise please install Ruby 2.x for root user.
E, [2018-07-27T06:51:43.123754 #1205] ERROR -- : You can get more information by running the script with --help option.
gslin@Gea-suandeMacBook-Pro [~] [04:33/W3] mtr --report 8.8.8.8
Start: 2018-07-14T04:33:55+0900
HOST: Gea-suandeMacBook-Pro.local Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.112.0.1 0.0% 10 0.8 0.8 0.6 1.2 0.2
2.|-- osknik32.asahi-net.or.jp 0.0% 10 2.6 2.6 2.1 3.2 0.3
3.|-- osknik32-v1.asahi-net.or. 0.0% 10 2.8 2.7 2.3 3.0 0.2
4.|-- tkybi6-v51.asahi-net.or.j 0.0% 10 3.0 3.3 3.0 3.6 0.2
5.|-- os4cr1-v1035.asahi-net.or 0.0% 10 4.2 3.6 3.3 4.2 0.3
6.|-- os4ni1-v1038.asahi-net.or 0.0% 10 5.2 4.1 3.4 5.2 0.5
7.|-- 209.85.174.82 0.0% 10 11.0 11.1 10.5 12.7 0.6
gslin@adsl-172-10-1-105 [~] [04:32/W4] mtr --report 8.8.8.8
Start: 2018-07-14T04:32:26+0900
HOST: adsl-172-10-1-105.dsl.sndg0 Loss% Snt Last Avg Best Wrst StDev
1.|-- adsl-172-10-0-254.dsl.snd 0.0% 10 2.5 2.6 2.2 3.7 0.4
2.|-- 153.153.251.237 0.0% 10 5.6 4.5 3.7 6.4 0.9
3.|-- 153.153.251.97 0.0% 10 4.4 4.8 4.0 6.6 1.0
4.|-- 118.23.49.85 0.0% 10 5.7 5.4 4.6 6.4 0.6
5.|-- 180.37.200.133 0.0% 10 5.1 5.0 4.3 7.7 1.0
6.|-- 153.149.219.25 0.0% 10 5.2 5.5 5.0 6.8 0.5
7.|-- 153.149.219.154 0.0% 10 10.7 5.7 4.7 10.7 1.8
gslin@home [~] [19:17/W4] dig 928.tw ns @a.dns.tw
; <<>> DiG 9.10.3-P4-Ubuntu <<>> 928.tw ns @a.dns.tw
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64601
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
try_files $uri $uri/ /index.php?$args;
location ~ \.php$ {
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_pass php72;
}
#
APPLICATION_NAME?= appname
AWS_PROFILE?= my_aws_profile
AWS_REGION?= ap-northeast-1
S3_BUCKET?= appname-codedeploy-ap-northeast-1
#
GIT_BRANCH!= git rev-parse --abbrev-ref HEAD
GIT_DIRTY!= git diff-files --quiet; echo $$?
GIT_HASH!= git rev-parse HEAD
gslin@home [~] [04:45/W3] dig techcrunch.com aaaa @ns1.wordpress.com
; <<>> DiG 9.10.3-P4-Ubuntu <<>> techcrunch.com aaaa @ns1.wordpress.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30391
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
@gslin
gslin / 168.95.1.1
Created November 22, 2017 22:11
Query 24h.pchome.com.tw
$ repeat 100 time dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.00s user 0.01s system 0% cpu 5.030 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 0% cpu 6.148 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 0% cpu 1.954 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 0% cpu 5.673 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 33% cpu 0.024 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.00s user 0.00s system 38% cpu 0.021 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 0% cpu 5.029 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.01s user 0.00s system 0% cpu 3.229 total
dig 24h.pchome.com.tw aaaa @168.95.1.1 > /dev/null 0.02s user 0.00s system 50% cpu 0.032 total