Skip to content

Instantly share code, notes, and snippets.

optman@ubuntu:~$ mtr -rw www.google.com
Start: Fri Oct 9 17:37:41 2015
HOST: ubuntu Loss% Snt Last Avg Best Wrst StDev
1.|-- Hiwifi.lan 0.0% 10 0.5 0.4 0.3 0.6 0.0
2.|-- 10.10.10.1 0.0% 10 5.4 5.9 5.2 10.4 1.6
3.|-- 10.0.6.1 70.0% 10 88.7 100.8 88.7 124.9 20.9
4.|-- 106.187.33.2 70.0% 10 92.3 99.2 85.8 119.5 17.8
5.|-- 124.215.199.169 70.0% 10 98.1 100.8 98.1 104.6 3.3
6.|-- otejbb206.int-gw.kddi.ne.jp 80.0% 10 88.7 88.5 88.3 88.7 0.0
7.|-- ix-ote213.int-gw.kddi.ne.jp 80.0% 10 86.6 86.9 86.6 87.2 0.0
@optman
optman / fping
Last active October 9, 2015 09:59
find all alive machines in a subnet.
optman@ubuntu:~$ fping -aq -d -g 192.168.199.0/24
Hiwifi.lan
192.168.199.3
Smartisan-T1.lan
android-3756d69fca495fb4.lan
p2p-pi.lan
@optman
optman / dig gist.github.com on xxx vps
Last active October 10, 2015 03:15
resolve gist.github.com name
root@VPS1:~# dig gist.github.com @8.8.8.8
; <<>> DiG 9.8.1-P1 <<>> gist.github.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33582
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;gist.github.com. IN A