Skip to content

Instantly share code, notes, and snippets.

View a-r-g-v's full-sized avatar
🏠
Working from home

Yuki Mukasa ( a_r_g_v ) a-r-g-v

🏠
Working from home
View GitHub Profile
@yuuki
yuuki / gist:aef3b7c91f23d1f02aaa266ebe858383
Created August 22, 2016 23:50
pt-query-digest result
# 310ms user time, 10ms system time, 30.65M rss, 98.40M vsz
# Current date: Sun Sep 27 15:37:00 2015
# Hostname: isucon01
# Files: /var/lib/mysql/mysqld-slow.log
# Overall: 334 total, 17 unique, 0.48 QPS, 0.16x concurrency _____________
# Time range: 2015-09-27 15:23:56 to 15:35:33
# Attribute total min max avg 95% stddev median
# ============ ======= ======= ======= ======= ======= ======= =======
# Exec time 114s 55ms 4s 343ms 945ms 354ms 253ms
# Lock time 295ms 30us 98ms 883us 159us 7ms 49us
@niku
niku / .rabbit
Last active March 3, 2019 18:38
Elixirの便利なところって何?
osc2016do-elixir.md
@icchy
icchy / README.md
Last active March 30, 2023 15:04
pwntools使い方 まとめ

pwntoolsの便利そうな機能まとめ

公式リファレンス: pwntools

install

最新版を降らせる
pip install "git+https://github.com/Gallopsled/pwntools#egg=pwntools"

template

@icchy
icchy / gist:ddacc226eb970c838862
Created February 14, 2016 15:28
access_logから雑にOS固有っぽい文字列を抽出するやつ
cat access_* | gawk -v FPAT='(\"[^\"]+\")' '{print $3}' | cut -d"(" -f2- | cut -d")" -f1 | sort | uniq -c | sort -gr | less
@justanr
justanr / _core.py
Last active December 14, 2023 02:47
Clean Architecture In Python
from abc import ABC, ABCMeta, abstractmethod
from collections import namedtuple
from itertools import count
PayloadFactory = namedtuple('PayloadFactory', [
'good', 'created', 'queued', 'unchanged', 'requires_auth',
'permission_denied', 'not_found', 'invalid', 'error'
])
"""
@hashrock
hashrock / diag.md
Last active February 26, 2024 05:51
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@rekkusu
rekkusu / charlotte.py
Last active August 31, 2015 09:41
TDUCTF 2015 Pwnable writeup
from pwn import *
from libformatstr import FormatStr
import time
s = remote('crackme.sakura.tductf.org', 10773)
read_secret = 0x0804875d
strlen_got = 0x8049138
exit_got = 0x804912c
puts_plt = 0x8048580
@mapk0y
mapk0y / runc-criiu-memo.mkd
Last active October 22, 2015 06:24
runC で CRIU をやってみる

準備

OS の準備

jessie の標準の kernel だと runc が動かない(cgroup の CPU 制御の問題)。また、CRIU を動かすにも足りないので自前で build(4.0.6)。

CRIU は github からとってきて build。buld に必要な物はすべて debian packege で補った。何が必要かは CRIU についてくる Dockerfile を見ればよい。

Ubuntu あたりを使えばもっと楽にできるかもしれない。

@mapk0y
mapk0y / memo.mkd
Created June 22, 2015 19:34
runC の挙動に関して

ディレクトリ構成

host:~/runcdir# ls -la
total 16
drwxr-xr-x  3 root root 4096  6月 23 04:22 .
drwx------ 17 root root 4096  6月 23 04:29 ..
-rw-r--r--  1 root root 2082  6月 23 03:35 container.json
drwxr-xr-x 21 root root 4096  6月 23 04:24 rootfs