Skip to content

Instantly share code, notes, and snippets.

Avatar

Gea-Suan Lin gslin

View GitHub Profile
View gist:f84b4c836ded3862d573
;; ANSWER SECTION:
pic.pimg.tw. 286 IN CNAME pic.pimg.tw.g.pixdns.tw.
pic.pimg.tw.g.pixdns.tw. 286 IN CNAME 6.TW.pic.pimg.tw.
6.TW.pic.pimg.tw. 286 IN CNAME pic-tw.pimg.tw.asn.pixdns.tw.
pic-tw.pimg.tw.asn.pixdns.tw. 586 IN CNAME 6.3462.pic-tw.pimg.tw.
6.3462.pic-tw.pimg.tw. 26 IN CNAME pic-hinet.pimg.tw.gr_2.pixdns.tw.
pic-hinet.pimg.tw.gr_2.pixdns.tw. 46 IN CNAME 0.6.TW.pic-hinet.pimg.tw.
0.6.TW.pic-hinet.pimg.tw. 26 IN CNAME cs390.wac.edgecastcdn.net.
cs390.wac.edgecastcdn.net. 3326 IN A 192.229.237.227
View gist:3ac6f0b1e27dff1a4dba
gslin@thousand [~] [17:25/W5] dig 20150208-akamai-pmd-tw.kkbox.tv.edgesuite.net @8.8.8.8
; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> 20150208-akamai-pmd-tw.kkbox.tv.edgesuite.net @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30717
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
View alexa-cloudfront
gslin@home [~] [23:35/W6] mtr --report d5nxst8fruw4z.cloudfront.net
HOST: home.gslin.org Loss% Snt Last Avg Best Wrst StDev
1.|-- h254.s98.ts.hinet.net 0.0% 10 6.5 6.4 6.2 6.5 0.1
2.|-- SNUH-3301.hinet.net 0.0% 10 9.0 6.6 5.9 9.0 0.9
3.|-- snuh-3202.hinet.net 0.0% 10 6.6 6.4 6.2 6.7 0.2
4.|-- TPDT-3012.hinet.net 0.0% 10 16.9 12.7 7.8 16.9 3.2
5.|-- r4001-s2.tp.hinet.net 0.0% 10 6.6 7.5 6.4 14.6 2.5
6.|-- r4003-s2.tp.hinet.net 0.0% 10 7.6 6.9 6.5 7.6 0.3
7.|-- pos2-1.cr02.hkg05.pccwbtn 0.0% 10 79.9 80.8 79.1 88.1 2.6
8.|-- amazon.po10.br01.hkg12.pc 0.0% 10 96.3 94.9 90.1 102.6 3.6
View gist:8e5e0c619adf5c939dfc
* About to connect() to kkbox.slack.com port 443 (#0)
* Trying 54.173.140.113... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
View disable-plurk-multimedia-thumb-function.user.js
// ==UserScript==
// @name Disable Plurk multimedia thumb functuion
// @namespace https://blog.gslin.org/plurk
// @version 0.1
// @description Disable Plurk multimedia thumb function
// @author Gea-Suan Lin <darkkiller@gmail.com>
// @match *://www.plurk.com/*
// @grant none
// ==/UserScript==
View zite.py
#!/usr/bin/env python3
import json
import sys
import urllib.parse
import urllib.request
if __name__ == '__main__':
email = 'darkkiller@gmail.com'
password = 'x'
View gist:36ac9ae1052163f83bfd
Traceback (most recent call last):
File "/home/plurk/plurkcore/ext/parts/web/wsgiserver/__init__.py", line 1246, in communicate
req.respond()
File "/home/plurk/plurkcore/ext/parts/web/wsgiserver/__init__.py", line 758, in respond
self.server.gateway(self).respond()
File "/home/plurk/plurkcore/ext/parts/web/wsgiserver/__init__.py", line 1949, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/home/plurk/plurkcore/ext/werkzeug/utils.py", line 859, in __call__
return self.app(environ, start_response)
File "/home/plurk/plurkcore/ext/parts/web/web.py", line 304, in dispatch_request
View gist:e8acf6c91b104c38ccaf
gslin@GSLIN-HOME1404 [~] [07:10/W4] dig www.facebook.com @168.95.1.1
; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> www.facebook.com @168.95.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 3640
;; flags: qr rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; WARNING: Message has 11 extra bytes at end
View gist:629574
* A1: 24 of 24 PoPs online
o ams-lv3 (Europe :: Netherlands :: Amsterdam :: 1 :: LVL3)
o arn-tel (Europe :: Sweden :: Stockholm :: 1 :: Telia)
o cdg-agg (Europe :: France :: Paris :: 1 :: SECR)
o fra-ti2 (Europe :: Germany :: Frankfurt :: 2 Tiscali (Nacamar))
o lhr-agg (Europe :: UK :: London :: 1 :: Telia)
o mil-ti2 (Europe :: Italy :: Milan :: 1 :: Tiscali)
o bog-ag1 (Latin America :: Colombia :: Bogota :: 1 :: UNE)
o doh-agg (MEA :: Qatar :: Doha :: 1 :: QT)
o hkg-agg (South/Southeast Asia :: China :: Hong Kong :: 1 :: Pacnet (MegaI))
View gist:655078
gslin@colo-p [~/work] [15:50/W3] time gzip -9 -c perl-5.12.2.tar > perl-5.12.2.tar.gz
11.667u 0.075s 0:11.74 99.9% 37+1111k 0+116io 0pf+0w
gslin@colo-p [~/work] [15:50/W3] time bzip2 -9 -c perl-5.12.2.tar > perl-5.12.2.tar.bz2
9.410u 0.075s 0:09.48 100.0% 31+1114k 0+95io 0pf+0w
gslin@colo-p [~/work] [15:51/W3] time xz -9 -c perl-5.12.2.tar > perl-5.12.2.tar.xz
49.561u 0.540s 0:50.14 99.9% 47+1102k 2+71io 0pf+0w
gslin@colo-p [~/work] [15:54/W3] time plzip -9 -c perl-5.12.2.tar > perl-5.12.2.tar.plzip
64.692u 0.729s 1:05.56 99.7% 143+1005k 0+72io 0pf+0w
gslin@colo-p [~/work] [15:52/W3] d perl*
-rw-r--r-- 1 gslin staff 65300480 Sep 7 09:43 perl-5.12.2.tar