2010年11月25日 星期四

usb vid, pid define under linux

http://www.linux-usb.org/usb.ids

透過Facebook分享

vim - 編輯顯示的顏色

Follow

挑選 Vim 顏色(Color Scheme)


請在這裡挑選你喜歡的layout

create folder
~/.vim/colors

編輯.vimrc (如果沒有就產生一個)
colorscheme brookstream
syntax on 
set t_Co=256

藍色部份就是你下載layout檔案的檔名


透過Facebook分享

vim - 顯示目前編輯的檔名

:f 或 Ctrl+g
顯示目前編輯的檔名、是否經過修改及目前游標所在之位置。

Reference:
http://edt1023.sayya.org/vim/node7.html

透過Facebook分享

2010年11月24日 星期三

hcitool - HCI Tool ver 4.47

hcitool - HCI Tool ver 4.47
Usage:
        hcitool [options] [command parameters]
Options:
        --help  Display help
        -i dev  HCI device
Commands:
        dev     Display local devices
        inq     Inquire remote devices
        scan    Scan for remote devices
        name    Get name from remote device
        info    Get information from remote device
        spinq   Start periodic inquiry
        epinq   Exit periodic inquiry
        cmd     Submit arbitrary HCI commands
        con     Display active connections
        cc      Create connection to remote device
        dc      Disconnect from remote device
        sr      Switch master/slave role
        cpt     Change connection packet type
        rssi    Display connection RSSI
        lq      Display link quality
        tpl     Display transmit power level
        afh     Display AFH channel map
        lp      Set/display link policy settings
        lst     Set/display link supervision timeout
        auth    Request authentication
        enc     Set connection encryption
        key     Change connection link key
        clkoff  Read clock offset
        clock   Read local or remote clock

For more information on the usage of each command use:
        hcitool --help

透過Facebook分享

2010年11月23日 星期二

vim - undo

用vim編輯檔案
打錯字想要恢復成上一次存檔(:w)前的狀態

請使用:u

透過Facebook分享