enter
enterposted on 2012-08-24 12:53 cary 閱讀(910) 評論(56) 編輯 收藏 所屬分類: front
thinking in life.
http://javag.iteye.com/blog/221595 回復(fù) 更多評論
mina
http://javag.iteye.com/blog/221595 回復(fù) 更多評論
svn online
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-7-sect-1 回復(fù) 更多評論
create repository
$ svnadmin create /usr/local/svn/repos
$svn import tmp/dirs file:///usr/local/svn/repos -m "initial import" 回復(fù) 更多評論
svn add folder
svn ci folder -m "add new folder that needs to be ignore."
export SVN_EDITOR=vim
cd folder
svn propedit svn:ignore .
>open vim editor.
input * or *.class
save and close vim.
svn status
回復(fù) 更多評論
submit with given user name:
svn ci touch.txt --no-auth-cache --username jerry --password jerry -m "" 回復(fù) 更多評論
ant buildxml
<?xml version="1.0" ?>
<project name="name" basedir="." default="usage" >
<target name="usage">
<echo message="Type ant -p for available targets"/>
</target>
</project>
回復(fù) 更多評論
# Select "Create New Remote Site" and enter "XFire" as the name and http://dist.codehaus.org/xfire/update/ as the eclipse update site.
http://xfire.codehaus.org/Eclipse+Plugin 回復(fù) 更多評論
<target name="copy">
<delete dir="dest" />
<mkdir dir="dest" />
<copy todir="dest">
<fileset dir="src">
<exclude name="**/*.svn"/>
<exclude name="**/*.swp"/>
</fileset>
</copy>
</tar 回復(fù) 更多評論
eclipse vim plugin
http://vrapper.sourceforge.net/update-site/stable 回復(fù) 更多評論
oracle java sample.
https://wikis.oracle.com/display/code/Home 回復(fù) 更多評論
sina blog open api
http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E7.94.A8.E6.88.B7 回復(fù) 更多評論
sina blog open api
http://open.weibo.com/ 回復(fù) 更多評論
http://eclipsecolorthemes.org/ 回復(fù) 更多評論
http://blog.spec-india.com/install-mongodb-on-suse-linux 回復(fù) 更多評論
html5
http://ghost-hack.com/post/jsexperiments/tunneler/tunneler.html 回復(fù) 更多評論
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
</repositories>
回復(fù) 更多評論
css
http://developer.51cto.com/art/201212/369649.htm 回復(fù) 更多評論
mvn clean install -Dmaven.test.skip=true
回復(fù) 更多評論
vn clean source:jar install -Dmaven.test.skip=true 回復(fù) 更多評論
mvn archetype:create -DgroupId=com.name -DartifactId=com.name -DpackageName=com.name -DarchetypeArtifactId=maven-archetype-webap 回復(fù) 更多評論
linux下root密碼找回方法
===
linux的root享有至高無上的權(quán)力,一旦root密碼忘記或者被盜,是一件非常頭痛的事情,那么怎么樣才能找回root的密碼呢,本人把其總結(jié)如下:
(一)Linux 系統(tǒng)密碼破解
1.在grub選項菜單按e進(jìn)入編輯模式
2.編輯kernel那行 /init 1 (或/single)
3.按B重啟
4.進(jìn)入后執(zhí)行下列命令
root@#passwd root (配置root的密碼)
Enter new unix password:輸入新的密碼
root@#init 6
============================================================================
(二)debian linux 系統(tǒng)密碼破解
1.在grub選項菜單’Debian GNU/Linux,...(recovery mode)’,按e進(jìn)入編輯模式
2.編輯kernel那行面的 ro single 改成 rw single init=/bin/bash,按b執(zhí)行重啟
3.進(jìn)入后執(zhí)行下列命令
root@(none)#mount -a
root@(none)#passwd root
root@(none)#reboot
============================================================================
(三)Freebsd 系統(tǒng)密碼破解
1.開機進(jìn)入引導(dǎo)菜單
2.選擇每項(按4)進(jìn)入單用戶模式
3.進(jìn)入之后輸入一列命令
root@#mount -a
root@#fsck -y
root@#passwd(修改密碼命令) 回復(fù) 更多評論
vim 解決中文亂碼。
set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
language messages zh_CN.utf-8 回復(fù) 更多評論
set encoding=utf-8
set guifont=Consolas:h16:cANS
:set guifont?
http://www.vimer.cn/2009/11/vim%EF%BC%88gvim%EF%BC%89%E7%BC%96%E7%A8%8B%E5%AD%97%E4%BD%93%E6%8E%A8%E8%8D%90.html 回復(fù) 更多評論
" tab setting.
"這樣很方便,用alt+1就可以切換到第1tab頁,用alt+2就可以切換到第2tab頁,
"以此類推。當(dāng)然缺點也很明顯,就是沒辦法到第10個以上的tab頁。
"用alt+F1就可以關(guān)閉當(dāng)前標(biāo)簽頁,用alt+F2可以打開一個新的標(biāo)簽頁。
"alt+c
"alt+n
"
set guitablabel=%N/\ %t\ %
map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
map <M-7> 7gt
map <M-8> 8gt
map <M-9> 9gt
map <M-c> :tabclose<CR>
map <M-n> :tabedit<CR> 回復(fù) 更多評論
let Tlist_Ctags_Cmd="/usr/bin/ctags"
let Tlist_Inc_Winwidth=0
nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Auto_Open = 0
let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open
let Tlist_Show_One_File = 1 " Only show tags for current buffer
let Tlist_Use_Right_Window = 0 " Open on right side
let Tlist_Enable_Fold_Column = 0 " no fold column (only showing one file)
let tlist_sql_settings = 'sql;P:package;t:table'
let tlist_ant_settings = 'ant;p:Project;r:Property;t:Target'
let JavaBrowser_Ctags_Cmd="/usr/bin/ctags"
let JavaBrowser_Inc_Winwidth=0
回復(fù) 更多評論
maven for eclipse - http://download.eclipse.org/technology/m2e/releases
Update Sites
Latest m2e release (recommended)
http://download.eclipse.org/technology/m2e/releases
m2e milestone builds towards version 1.4
http://download.eclipse.org/technology/m2e/milestones/1.4
Latest m2e 1.4 SNAPSHOT build (not tested, not hosted at eclipse.org)
http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2e/1.4.0/N/LATEST/
http://eclipse.org/m2e/download/ 回復(fù) 更多評論
eclipse subversion
Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x 回復(fù) 更多評論
for windows gvim
set encoding=utf-8
set guifont=Consolas:h16:cANSI
" tab setting.
"這樣很方便,用alt+1就可以切換到第1tab頁,用alt+2就可以切換到第2tab頁,
"以此類推。當(dāng)然缺點也很明顯,就是沒辦法到第10個以上的tab頁。
"用alt+F1就可以關(guān)閉當(dāng)前標(biāo)簽頁,用alt+F2可以打開一個新的標(biāo)簽頁。
"alt+c
"alt+n
"
set guitablabel=%N/\ %t\ %
map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
map <M-7> 7gt
map <M-8> 8gt
map <M-9> 9gt
map <M-c> :tabclose<CR>
map <M-n> :tabedit<CR>
let Tlist_Ctags_Cmd='F:\vim\gvimPortable\gVimrtable\gVimrtable'
"ctags
"F:\vim\gvimPortable\gVimrtable\gVimrtable\ctags.exe
"3. If the exuberant ctags utility is not present in your PATH, then set the
" Tlist_Ctags_Cmd variable to point to the location of the exuberant ctags
" utility (not to the directory) in the .vimrc file.
"4. If you are running a terminal/console version of Vim and the terminal
" doesn't support changing the window width then set the
" 'Tlist_Inc_Winwidth' variable to 0 in the .vimrc file.
"5. Restart Vim.
"6. You can now use the ":TlistToggle" command to open/close the taglist
" window. You can use the ":help taglist" command to get more information
" about using the taglist plugin. 回復(fù) 更多評論
mac svn tool
http://code.google.com/p/svnx/downloads/detail?name=svnX%201.3.4.dmg&can=2&q= 回復(fù) 更多評論
public static <T> T getBean(Class<T> clz) {
return TheCtx.getBean(clz);
}
// public static Object getBean(Class clz) {
// return TheCtx.getBean(clz);
// } 回復(fù) 更多評論
http://www.vim.org/scripts/script.php?script_id=2809
description
===============================================================================
Introduction *fontsize-intro*
This plugin provides convenient mappings for changing the font size in Gvim.
<Leader>== Begin "font size" mode
<Leader>++ Increment font size
<Leader>-- Decrement font size
<Leader>00 Revert to default font size 回復(fù) 更多評論
json
http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=2424946
https://code.google.com/p/google-gson/ 回復(fù) 更多評論
http://www.codeproject.com/Articles/159450/fastJSON 回復(fù) 更多評論
http://code.google.com/p/dwz/ 回復(fù) 更多評論
替換;
按ESC鍵進(jìn)入命令模式;
:s /SEARCH/REPLACE/g 注:把當(dāng)前光標(biāo)所處的行中的SEARCH單詞,替換成REPLACE,并把所有SEARCH高亮顯示;
:%s /SEARCH/REPLACE 注:把文檔中所有SEARCH替換成REPLACE;
:#,# s /SEARCH/REPLACE/g 注:#號表示數(shù)字,表示從多少行到多少行,把SEARCH替換成REPLACE;
注:在這之中,g表示全局查找;我們注意到,就是沒有替換的地方,也會把SEARCH高亮顯示;
舉例說明:
比如我們有一篇文檔要修改;
我們把光標(biāo)所在的行,把所有單詞the,替換成THE,應(yīng)該是:
:s /the/THE/g
我們把整篇文檔的所有的the都替換成THE,應(yīng)該是:
:%s /the/THE
我們僅僅是把第1行到第10行中的the,替換成THE,應(yīng)該是;
:1,10 s /the/THE/g 回復(fù) 更多評論
:g/str1/,/str2/d 刪除所有第一個含str1到第一個含str2之間的行
:%s/r//g
xxyyaa
VALUES (178, 1, 9);
VALUES (184, 1, 9);
aayyxx
VALUES (185, 1, 9)
:%s/xxyyaa/,/aayyxx/g
回復(fù) 更多評論
常見問題及應(yīng)用技巧
1) 在一個新文件中讀/etc/passwd中的內(nèi)容,取出用戶名部分
vi file
:r /etc/passwd 在打開的文件file中光標(biāo)所在處讀入/etc/passwd
:%s/:.*//g 刪除/etc/passwd中用戶名后面的從冒號開始直到行尾的所有部分
:3r /etc/passwd 這是在指定的行號后面讀入文件內(nèi)容
另外一種方法刪掉文件中所有的空行及以#開始的注釋行
#cat squid.conf.default | grep -v ‘^$’ | grep -v ‘^#’
2) 在打開一個文件編輯后才知道登錄的用戶對該文件沒有寫權(quán),不能存盤
vi file
:w /tmp/1 既然沒法存盤,不想放棄所做的所有修改,先臨時存到/tmp/1
:20,59w /tmp/1 或者僅僅把第20到59行之間的內(nèi)容存盤成文件/tmp/1
A
3) 用VI編輯一個文件,但需要刪除大段大段的內(nèi)容
vi file
Ctrl+G 把光標(biāo)移到需要刪除的行的處按ctrl+G顯示行號,再到結(jié)尾處再按Ctrl+G.
:23,1045d 假定兩次行號為23和1045,則把這幾間的內(nèi)容全刪除
也可以在開始和結(jié)束兩行中用ma,mb命令標(biāo)記后用:’a,’bd刪除.
4) 在整個文件或某幾行中在行首或行尾加一些字符串
vi file
:3,$s/^/some string / 在文件的第三行至最后一行的行首前插入some string
:%s/$/ some string/g 在整個文件每一行的行尾添加 some string
:%s/string1/string2/g 在整個文件中替換string1成string2
:3,7s/string1/string2/ 僅替換文件中的第三到七行中的string1成string2
Note: s為substitute,%表示所有行,g表示global
5) 同時編輯兩個文件,在兩個文件中拷貝剪貼文本
vi file1 file2
yy 同時打開兩個文件,在文件1的光標(biāo)所在處拷貝所在行
:n 切換到文件2 (n=next)
p 在文件2的光標(biāo)所在處粘貼所拷貝的行
:N 切換回文件1
6) 替換文件中的路徑
:%s#/usr/bin#/bin#g 把文件中所有路徑/usr/bin換成/bin
或者用
:%s//usr/bin//bin/g 在’/'前用符號指出’/'是真的單個字符’/’
7) 用 vi 多行注釋
如果要給多行程序作注釋,一個笨辦法就是 插入 # ,然后用 j 跳到下一行用 .
命令,重復(fù)上個命令。如果要注釋幾百行,這樣的方法恐怕太愚蠢了。一個聰明的辦法是:
:.,+499 s/^/#/g
若需全文的行首插入可用以下命令
:%s/^/#/g
回復(fù) 更多評論
如何在vim中刪除空行
:g/^$/d 回復(fù) 更多評論
maven repository
http://mvnrepository.com/artifact/junit/junit/4.11 回復(fù) 更多評論
http://rejetto.com/hfs/
HFS ~ Http File Server 回復(fù) 更多評論
http://learnvimscriptthehardway.stevelosh.com 回復(fù) 更多評論
http://eclipse.org/m2e/download/
maven eclipse plugin update site 回復(fù) 更多評論
set nobackup
set noswapfile
set hlsearch
set incsearch
set autoindent
set cindent
set encoding=utf-8
set guifont=Consolas:h16:cANSI
set guitablabel=%N/\ %t\ %
回復(fù) 更多評論
mvn install:install-file
-DgroupId=<your_group_name>
-DartifactId=<your_artifact_name>
-Dversion=<snapshot>
-Dfile=<path_to_your_jar_file>
-Dpackaging=jar
-DgeneratePom=true 回復(fù) 更多評論
maven for eclipse -
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.200.20111228-1245
hotdeploy -
http://www.imixs.org/manik.updatesite/
回復(fù) 更多評論
set nobackup
set noswapfile
set hlsearch
set incsearch
set autoindent
set cindent
syntax enable
syntax on
" 光標(biāo)移動到buffer的頂部和底部時保持3行距離
set scrolloff=3
set guifont=Consolas:h14:cANSI
set guitablabel=%N/\ %t\ % 回復(fù) 更多評論
mvn archetype:generate -DarchetypeGroupId=com.taobao.webx.archetypes -DarchetypeArtifactId=webx-quickstart -DarchetypeVersion=1.0.1 -DgroupId=my.groupid -DartifactId=my-artifactId 回復(fù) 更多評論
set vb t_vb=
$ cd
$ vi .xession
#添加,關(guān)閉xwindows的報警
xset b off
$ vi .inputrc
#添加,關(guān)閉shell里的報警
set bell-style none
$ vi .vimrc
#添加,設(shè)置vi里的報警為閃屏,如果閃屏也不要那就加入set vb t_vb=
set vb
$ vi .emacs
#添加,關(guān)閉Emacs里的報警
setq visible-bell t 回復(fù) 更多評論
Git服務(wù)器Gitosis安裝設(shè)置
http://wiki.ubuntu.org.cn/Git%E6%9C%8D%E5%8A%A1%E5%99%A8Gitosis%E5%AE%89%E8%A3%85%E8%AE%BE%E7%BD%AE 回復(fù) 更多評論
Update Sites
Latest m2e release (recommended)
http://download.eclipse.org/technology/m2e/releases
m2e milestone builds towards version 1.5
http://download.eclipse.org/technology/m2e/milestones/1.5
Latest m2e 1.5 SNAPSHOT build (not tested, not hosted at eclipse.org)
http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2e/1.5.0/N/LATEST/ 回復(fù) 更多評論
E-git - http://download.eclipse.org/egit/updates 回復(fù) 更多評論
http://www.forbeschina.com/review/201506/0043197_7.shtml 回復(fù) 更多評論
http://www.forbeschina.com/review/201503/0041213_3.shtml 回復(fù) 更多評論
php中文文檔
https://secure.php.net/manual/zh/reserved.variables.php 回復(fù) 更多評論
只有注冊用戶登錄后才能發(fā)表評論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
|
||