2007-03-01から1ヶ月間の記事一覧

shift_jisなhtmlをutf-8へ

cmd

やっつけ $ find . -type f -name ?*.html |perl -nle '`iconv -f SHIFT_JIS -t UTF-8 $_>$_.buf`;' $ perl -p -i.html -e 's/(x-sjis|Shift_JIS)/utf-8/g;' *.buf $ find . -type f -name ?*.html | xargs rm $ find . -type f -name ?*.buf |perl -nle '$f…

信頼関係

コーチが話してるときに子供たちがあちこちを向いているようではよい関係を築いているとは言えません。 まず、しっかりとした信頼関係を築くことです。 ...

ディレクトリーの場合のみ実行ビットを立てる。

cmd

chmod -R u+rwX * chmod -R go+X * 404 Blog Not Found:unix - permissionあれこれ

dig, nslookup

cmd

@IT:DNS Tips:digコマンドとnslookupコマンドの違いとは @IT:DNS Tips:digコマンドとは ネームサーバ $ dig example.com ns $ nslookup -type=NS example.com 正引き $ dig example.com a $ nslookup www.example.com 逆引き $ nslookup 192.0.34.166 …

Firefoxのリンクをクリックした時に表示される点線を消す

css

html <ul> <li><a href="#">aaaa</a></li> <li><a href="#">bbbb</a></li> </ul> css ul a { /* MacIE5回避 ?*/ overflow:hidden; /**/ outline: 0 ; } ul a:active, ul a:hover, ul a:focus { color:#f00; } MacIE5 CSS Hack Overflow: auto workaround for macIE5? 未確認 a:focus { -moz-outline-style: none; }

smart typing pairもどき

vim

tips : vim online inoremap " ""<LEFT> inoremap ' ''<LEFT> inoremap [ []<LEFT> inoremap ( ( )<LEFT><LEFT> inoremap { {}<LEFT> autocmd FileType html set matchpairs+=<:> autocmd FileType html inoremap < <><LEFT> autocmd FileType css inoremap : : ;<LEFT> inoremap <silent> <ENTER> <C-R>=SmartEnter()<CR> …</cr></c-r></enter></silent></left></left></:></left></left></left></left></left></left>

snippetsEmu.vimを動かす

vim

snippetsEmu - An attempt to emulate TextMate's snippet expansion : vim online ISO-8859-1でplugin/snippetsEmu.vimを開く。 238行目あたりの無駄な改行(^M)を削除。 let text = substitute(text, "^M$", "","") を let text = substitute(text, "$", ""…

vim7コンパイル(再び)

vim

いろんな方に感謝。 参考(というかそのまんま) 2006-09-27 - czk-htnの日記 - 勉強会(仮) インライン入力可能な Mac 用 Vim 7.0 (2) - mio の試行錯誤日記 Vim7.0 + KaoriYa を Mac OSX にインストールする $sudo port fetch vim +aqua +huge +multibyte…