Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@wnoguchi
wnoguchi / gist:6119634
Created July 31, 2013 05:51
SSH鍵ペアの生成。
ssh-keygen -t rsa -b 2048 -f deploy.key
@wnoguchi
wnoguchi / gist:6137620
Created August 2, 2013 04:56
yumでパッケージを検索してバージョンを調べる。
yum search tmux
yum info tmux
@wnoguchi
wnoguchi / gist:6137621
Created August 2, 2013 04:56
yumでパッケージを検索してバージョンを調べる。
yum search tmux
yum info tmux
@wnoguchi
wnoguchi / diff_context.sh
Created August 5, 2013 08:40
コンテキストスタイルdiff出力
diff -c file1.txt file2.txt
@wnoguchi
wnoguchi / .bash_profile
Created August 17, 2013 09:07
HomebrewをMac OS X Mountain Lionにインストールする ref: http://qiita.com/wnoguchi/items/1ca12bf5e02f81010aab
export PATH="/usr/local/bin:$PATH"
@wnoguchi
wnoguchi / gist:6265319
Created August 19, 2013 02:29
ブランチ指定してないよって言われた時のconfigに書く内容。
[branch "master"]
remote = origin
merge = refs/heads/master
@wnoguchi
wnoguchi / default.css
Created August 19, 2013 04:43
CSSフォント指定の鉄板。
/**
* CSSのfont-family:ヒラギノとMS Pゴシックとメイリオの悩ましい関係 - webデザイナーのナナメガキ
* http://loconet.web2.jp/blog/archives/2007/02/cssfontfamily.html
*/
body {
font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif;
}
@wnoguchi
wnoguchi / clearfix.css
Created August 19, 2013 04:44
CSS clearfix.
/* =====clearfix===== */
.clearfix {display: inline-block;}
/* Hides from IE Mac */
* html .clearfix {height: 1%;}
.clearfix {display:block;}
/* End Hack */
@wnoguchi
wnoguchi / tree_and_sed.sh
Created August 20, 2013 09:56
tree and sed
tree | sed -e '/.png/d' -e '/.js/d' -e '/.css/d' -e '/.jpg/d'

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support