2008-01-01から1ヶ月間の記事一覧
{}"" と入力して、、またはすると {}""}" となってしまうので、 --- autoclose.vim.org 2008-01-25 16:36:11.000000000 +0900 +++ autoclose.vim 2008-01-27 18:24:34.000000000 +0900 @@ -60,8 +60,9 @@ inoremap <silent> { {<C-R>=<SID>CloseStackPush('}')<CR> inoremap <silent> } <C-R>=<SID>Cl</sid></c-r></silent></cr></sid></c-r></silent>…
タブ→スペース :set expandtab :%retab! スペース→タブ :set noexpandtab :%retab!
Dynamic DNS用 #!/bin/sh # en1(airmac)は自宅 en=`/sbin/ifconfig en1 | /usr/bin/grep 192.168` case "$en" in *inet* ) # sudo cp -f /etc/hosts.home /etc/hosts sudo nicl . -create /machines/oppara.dynamic sudo nicl . -append /machines/oppara.dy…
perl id:oppara:20070501 php id:oppara:20070604 javascript id:oppara:20070430 html id:oppara:20070503 command Tidy call Tidy() " nmap <silent> <leader>ti :call Tidy( )<cr> function Tidy( ) let cmd = '' if &syntax == 'perl' let cmd = 'perltidy -q -st' elseif &s</cr></leader></silent>…
id:cooldaemon:20070517 を参考 autocmd BufWritePost * call SyntaxCheck() function SyntaxCheck() let mp = &makeprg set makeprg=/usr/bin/false if &syntax == 'perl' set makeprg=~/.vim/tools/efm_perl.pl\ -c\ % elseif &syntax == 'php' set makepr…
http://www.oppara.tv/pub/dashboard/PlaySomaFM-0.1.zip SomaFM: Commercial-free, Listener-supported Radio TODO マーキーの動作改善 ジャケットゲット いろいろ
グループ hoge を追加する % sudo nicl . -create /groups/hoge % sudo nicl . -append /groups/hoge gid 600 % sudo nicl . -append /groups/hoge users oppara % sudo lookupd -flushcache % sudo memberd -r 確認 % nidump group .
ドロップしたフォルダに'.wdgt'をつけて、dashboardにインストールする。 やっつけ on open theList set thePath to POSIX path of (item 1 of theList as string) set theSrc to thePath set tmp to AppleScript's text item delimiters set AppleScript's …
カーソル下の単語を前方検索 * カーソル下の単語を後方検索 # set ignorecase, set smartcaseな時、小文字だけ検索(CSS, Cssにはマッチしない) /css\C ファイル全体を置換 :%s/foo/bar/g 置換していいかいちいち確認 :%s/foo/bar/gc visualモードで選択し…
applescript tell application "iTunes" current stream title -- the name of the current song in the playing stream name of current track -- the URL of the playing stream or streaming web site end tell shell script #!/bin/sh # osascript -e 't…
property thePlaylist : "IndiePopRocks" tell application "iTunes" launch stop set the_playlist to user playlist thePlaylist set view of front window to the_playlist play the_playlist end tell そのシェルスクリプト版 #!/bin/sh PLAY_LIST='Indi…
applescript.vim - Syntax highlighting for AppleScript : vim online
a.scpt on run argv return "hello, " & item 1 of argv & "." end run実行 % osascript a.scpt world hello, world.
/etc/sshd_configを修正しても反映されない。 /etc/services で修正する。
% sudo port install apache2 server.keyの作成 % cd /opt/local/apache2/conf % sudo openssl genrsa -des3 -rand /var/log/system.log -out server.key 1024 server.csrの作成 Common Name(CN)には、apacheを起動するホストのFQDNを設定すること % sudo op…