Skip to content

Instantly share code, notes, and snippets.

View iktakahiro's full-sized avatar

Takahiro Ikeuchi iktakahiro

View GitHub Profile
./sphinx-quickstart.expect hoge_dir project_hoge
@iktakahiro
iktakahiro / file0.txt
Created January 21, 2014 12:42
wkhtmltopdf でHTMLをPDF化する際の良い感じのオプション ref: http://qiita.com/iktakahiro/items/a9d993ddfdbc3404deba
# ヘッダ右側に日付、フッタ中央にページ番号、マージンを調整
/usr/local/bin/wkhtmltopdf \
--print-media-type \
--header-right [date] \
--header-spacing 2 \
--footer-center [page]/[topage] \
--footer-spacing 2 \
--margin-top 12 \
--margin-right 5 \
/usr/sbin/logrotate -fd /etc/logrotate.d/nginx
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Takahiro Ikeuchi'
import sys
import re
from collections import defaultdict
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Takahiro Ikeuchi'
import sys
import re
def main():
@iktakahiro
iktakahiro / file0.txt
Created September 10, 2013 01:38
historyコマンドで行数表示しない ref: http://qiita.com/iktakahiro/items/c864cda6ce67d3047edc
# 当然あるだろうと思いきや実はなかったのでメモ
# historyからコマンド履歴のコピペ再利用がし易くなる
history |cut -f6- -d " "