Skip to content

Instantly share code, notes, and snippets.

MATSUU Takuto matsuu

Block or report user

Report or block matsuu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1650
#!/system/bin/sh
#
# VALUES (_id,name,numeric,mcc,mnc,apn,user,server,password,proxy,port,mmsproxy,mmsport,mmsc,current)
#
SQLITE="/system/bin/sqlite3"
DB="/data/data/com.google.android.providers.telephony/databases/telephony.db"
# Telecom New Zealand
@matsuu
matsuu / packer.json
Last active Aug 29, 2015
Packer for ProjectAtomic
View packer.json
{
"builders": [
{
"boot_command": [
"<tab> linux enforcing=0 ks=http://rpm-ostree.cloud.fedoraproject.org/project-atomic/install/rawhide/fedora-atomic.ks<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 8192,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Fedora_64",
@matsuu
matsuu / Dockerfile
Last active Aug 29, 2015
Dockerfile for mackerel-agent
View Dockerfile
#
# docker-mackerel-agent
#
# docker build -t mackerel-agent:0.5.0-1 .
#
# docker run --detach --env="APIKEY=..." mackerel-agent:0.5.0-1
#
FROM centos
@matsuu
matsuu / Dockerfile
Created Jun 3, 2014
Dockerfile for tengine-1.5.2
View Dockerfile
FROM centos:latest
RUN yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum install -y gcc pcre-devel zlib-devel openssl-devel libxslt-devel gd-devel lua-devel GeoIP-devel
RUN cd /usr/local/src && \
wget http://tengine.taobao.org/download/tengine-1.5.2.tar.gz && \
tar zxf tengine-1.5.2.tar.gz
RUN cd /usr/local/src/tengine-1.5.2 && \
@matsuu
matsuu / gist:93a8bdc496b00f767ce4
Created Jun 15, 2014
DTIのDNSサーバが127.0.0.1を返す件
View gist:93a8bdc496b00f767ce4
$ dig @202.216.229.30 a cloudfront.net.
; <<>> DiG 9.9.2-P2 <<>> @202.216.229.30 a cloudfront.net.
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32100
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
View gist:3db92e47425781612c0d
$ dig any localhost. @202.216.224.38
; <<>> DiG 9.9.5 <<>> any localhost. @202.216.224.38
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48455
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
View gist:68930f709ef53474315e
; <<>> DiG 9.9.5 <<>> any localhost. @202.216.224.67
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30301
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
@matsuu
matsuu / gist:73a94747263045b1b135
Last active Aug 29, 2015
dig any cloudflare.com.
View gist:73a94747263045b1b135
; <<>> DiG 9.9.5 <<>> any cloudflare.com. @202.216.224.66
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12021
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;cloudflare.com. IN ANY
@matsuu
matsuu / Frame (243 bytes)
Created Jun 26, 2014
LINE Engineers' Blogのスクリーンショットにあったフレーム書き起こし
View Frame (243 bytes)
00 1a 11 00 00 02 00 1a 11 00 00 01 08 00 45 00
00 e5 00 08 40 00 10 06 42 77 6c a8 b0 e3 0a 08
00 01 14 66 e4 65 ad 78 1a 52 52 87 e6 c7 50 18
ff ff ff e2 00 00 80 00 ba 31 3a 67 84 01 a6 78
f5 80 5a 70 49 5f f8 ab a5 80 27 18 5e 08 05 46
e0 0e 27 e2 cc 2e 52 f0 3a a9 86 b0 d8 91 e7 90
14 e9 31 97 ed f5 9a d5 44 4f 01 43 a8 26 9f 56
01 97 48 ab e3 42 97 8e 96 8f f0 56 1f a8 f5 44
52 39 bc 3e 06 81 3a 20 4b 69 ba 5d cf 10 c8 72
a9 e3 0e d2 6b d5 64 2a d5 a8 8a 5e f2 cb ec cf
You can’t perform that action at this time.