<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-204  評論-90  文章-8  trackbacks-0
     
    ctrl鍵組合
    ctrl+a:光標移到行首。
    ctrl+b:光標左移一個字母
    ctrl+c:殺死當前進程。
    ctrl+d:退出當前 Shell。
    ctrl+e:光標移到行尾。
    ctrl+h:刪除光標前一個字符,同 backspace 鍵相同。
    ctrl+k:清除光標后至行尾的內容。
    ctrl+l:清屏,相當于clear。
    ctrl+r:搜索之前打過的命令。會有一個提示,根據你輸入的關鍵字進行搜索bash的history
    ctrl+u: 清除光標前至行首間的所有內容。
    ctrl+w: 移除光標前的一個單詞
    ctrl+t: 交換光標位置前的兩個字符
    ctrl+y: 粘貼或者恢復上次的刪除
    ctrl+d: 刪除光標所在字母;注意和backspace以及ctrl+h的區別,這2個是刪除光標前的字符
    ctrl+f: 光標右移
    ctrl+z : 把當前進程轉到后臺運行,使用’ fg ‘命令恢復。比如top -d1 然后ctrl+z ,到后臺,然后fg,重新恢復
    esc組合
    esc+d: 刪除光標后的一個詞
    esc+f: 往右跳一個詞
    esc+b: 往左跳一個詞
    esc+t: 交換光標位置前的兩個單詞。
    posted @ 2013-11-07 14:04 一凡 閱讀(277) | 評論 (0)編輯 收藏
    set nocompatible "關閉vi兼容
    set enc=utf-8
    "set number "顯示行號
    filetype plugin on 
    "文件類型
    set history=500 "歷史命令
    syntax on 
    "語法高亮
    "set autoindent "ai 自動縮進
    "set smartindent "智能縮進
    set showmatch "括號匹配
    set ruler 
    "右下角顯示光標狀態行
    set nohls "關閉匹配的高亮顯示
    set incsearch 
    "設置快速搜索
    set foldenable "開啟代碼折疊
    "set fdm=manual "手動折疊
    set foldmethod=syntax 
    "自動語法折疊
    set modeline "自動載入模式行
    "自動插入modeline
    func! AppendModeline()
    let l:modeline = printf(" vim: set ts=%d sw=%d tw=%d :",
    \ &tabstop, &shiftwidth, &textwidth)
    let l:modeline = substitute(&commentstring, "%s", l:modeline, "")
    call append(line("$"), l:modeline)
    endfunc
    "按\ml,自動插入modeline
    nnoremap <silent> <Leader>ml :call AppendModeline()<CR>
    "空格展開折疊
    nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>

    "set tabstop=4
    "set shiftwidth=4
    set ts=4
    set sw=4
    set expandtab
    "自動tab

     

    if has(
    "autocmd")
    filetype plugin indent on
    endif
    autocmd filetype python setlocal et sta sw=4 sts=4


    "根據文件類型自動插入文件頭
    autocmd BufNewFile *.py,*.sh exec ":call SetTitle()"
    func SetTitle()
    if &filetype == 'sh'
    call setline(1"\#!/bin/bash")
    call append(line("."), "\# Author:itxx00@gmail.com")
    call append(line(".")+1"")
    else
    call setline(1"\#!/bin/env python")
    call append(line("."), "\#coding:utf-8")
    call append(line(".")+1"\#Author:itxx00@gmail.com")
    call append(line(".")+2"")
    endif
    endfunc 
    "新建文件后自動定位至文件末尾
    autocmd BufNewFile * normal G
    "F2去空行
    nnoremap <F2> :g/^\s*$/d<CR>
    posted @ 2013-10-25 21:24 一凡 閱讀(328) | 評論 (0)編輯 收藏
    訪問mysql出現如下error:
    ERROR 1045 (28000): Access denied for user 'root'@'121.39.50.24' (using password: YES)
    時,用root登錄到數據庫服務器,執行:
    set password for 'root'@'%'=PASSWORD('abc123');
    注:有時grant授權后也不行,必須再執行如上命令
    posted @ 2013-10-25 11:36 一凡 閱讀(228) | 評論 (0)編輯 收藏
    1、查看java證書的別名:
    >keytool -list -keystore test.jks -v
    執行命令后找到別名
    2、下載jks2pfx:http://www.willrey.com/support/jks2pfx.rar
    3、解壓jks2pfx后,進入此目錄
    D:\jks2pfx>JKS2PFX.bat ../tmp/test.jks pass mykey store C:\Program Files\Java\jdk1.7.0_05\bin
                                           要轉的jks       密碼  別名    導出文件名   jdk路徑


    posted @ 2013-06-19 19:05 一凡 閱讀(1964) | 評論 (0)編輯 收藏
    摘自:http://www.oschina.net/code/snippet_1030827_21294
    <?php
    /*
    新浪的IP查詢接口:
    新浪的:http://counter.sina.com.cn/ip?ip=IP地址
    返回Js數據,感覺不是很精確,可以把問號后面的去掉,直接返回本機對應的IP所在地

    有道的IP查詢接口:
    返回XML數據:http://www.yodao.com/smartresult-xml/search.s?type=ip&q=0.0.0.0
    返回JSON數據:http://www.yodao.com/smartresult-xml/search.s?jsFlag=true&type=ip&q=0.0.0.0
    把0.0.0.0換成需查詢的IP地址即可,這個應該是用純真的數據庫

    太平洋電腦網IP查詢接口:
    http://whois.pconline.com.cn/?ip=0.0.0.0
    把0.0.0.0換成IP地址,頁面上還有其他無關內容,這些內容是告訴我們哪些接口可以調用、接口調用參數和使用方法等

    查詢手機號碼歸屬地接口:
    返回XML數據:http://www.youdao.com/smartresult-xml/search.s?type=mobile&q=13888880000
    返回JSON數據:http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=13888880000

    身份證查詢接口:
    返回XML數據:http://www.youdao.com/smartresult-xml/search.s?type=id&q=身份證號
    返回JSON數據:http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=id&q=身份證號
    */
    echo file_get_contents("接口網址和參數");
    ?>
    posted @ 2013-05-14 12:10 一凡 閱讀(835) | 評論 (1)編輯 收藏
    iconv -f from-encoding -t to-encoding inputfile
    如:iconv -f GBK -t UTF8 test.txt
    posted @ 2013-05-08 18:53 一凡 閱讀(226) | 評論 (0)編輯 收藏
    /usr/local/mysql55/bin/mysql --defaults-file=/usr/local/mysql55/var/my.cnf -uroot -pdev -e "select * from report.appcontent into outfile '/tmp/appcontent.csv' fields terminated by ',' optionally enclosed by '\"' escaped by '\"' lines terminated by '\r\n'"
    posted @ 2013-05-08 18:21 一凡 閱讀(565) | 評論 (0)編輯 收藏
    cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql55 \
    -DDEFAULT_CHARSET=gbk \
    -DDEFAULT_COLLATION=gbk_chinese_ci \
    -DWITH_EXTRA_CHARSETS:STRING=gbk,gb2312,utf8 \
    -DWITH_MYISAM_STORAGE_ENGINE=1 \
    -DWITH_INNOBASE_STORAGE_ENGINE=1 \
    -DWITH_READLINE=1 \
    -DENABLED_LOCAL_INFILE=1 \
    -DWITH_PARTITION_STORAGE_ENGINE=1 \
    -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
    -DMYSQL_UNIX_ADDR=/usr/local/mysql55/mysql.sock \
    -DSYSCONFDIR=/usr/local/mysql55/conf \
    -DMYSQL_DATADIR=/var/mysql/data

    make
    make install
    posted @ 2013-03-13 11:24 一凡 閱讀(289) | 評論 (0)編輯 收藏
    >>> 
    >>> print urllib.quote("測試abc")
    %E6%B5%8B%E8%AF%95abc
    >>> 
    >>> 
    >>> print urllib.unquote("%E6%B5%8B%E8%AF%95abc")
    測試abc
    >>> 
    posted @ 2013-03-05 09:57 一凡 閱讀(949) | 評論 (0)編輯 收藏
     find . -name *.php  -exec grep 總記錄數 {} -H \;
    posted @ 2013-02-22 11:36 一凡 閱讀(324) | 評論 (0)編輯 收藏
    僅列出標題
    共21頁: 上一頁 1 2 3 4 5 6 7 8 9 下一頁 Last 
    主站蜘蛛池模板: 高清永久免费观看| 国产精品亚洲天堂| 99ee6热久久免费精品6| 亚洲人成人网站色www| 国产无限免费观看黄网站| 亚洲成a人片在线观看国产| 污网站免费在线观看| 亚洲精品视频在线看| 国产精品免费αv视频| 9277手机在线视频观看免费| 国产亚洲一区二区手机在线观看 | 亚洲熟女综合色一区二区三区| 免费很黄无遮挡的视频毛片| 亚洲国产成人久久精品99| 日日狠狠久久偷偷色综合免费| 亚洲午夜久久久久久久久电影网 | 色多多www视频在线观看免费| 亚洲国产天堂久久综合| 韩国免费A级毛片久久| 亚洲一区精品中文字幕| 91免费国产在线观看| 亚洲国产精品ⅴa在线观看| 免费在线观看理论片| 韩国免费A级毛片久久| 91亚洲自偷手机在线观看| 久久精品网站免费观看| 色视频在线观看免费| 亚洲国产成人一区二区三区| 国产免费一区二区三区| 偷自拍亚洲视频在线观看99| 国产精品亚洲аv无码播放| 波多野结衣在线免费视频| 精品一区二区三区免费毛片| 亚洲中文字幕久久精品无码APP| 91大神在线免费观看| 色婷婷六月亚洲综合香蕉| 亚洲AV色香蕉一区二区| 午夜寂寞在线一级观看免费| 国产性生大片免费观看性| 亚洲国产精品免费观看| 亚洲熟妇无码八AV在线播放|