显示标签为“backup”的博文。显示所有博文
显示标签为“backup”的博文。显示所有博文

20100422

Change from opensvn.csie.org to code.google.com

1. Create a new project in google code.
2. Reset the Subversion repository to revision 0.
Find the "Reset Subversion Repository" link at the bottom of the "Source" tab.
3. Sync between two svn host. Init first, then sync.
$ svnsync init https://xiaomao101.googlecode.com/svn/ https://opensvn.csie.org/xiaomao101/ --username ant101tna
Authentication realm: Google Code Subversion Repository
Password for 'ant101tna':
Copied properties for revision 0.
$ svnsync sync https://xiaomao101.googlecode.com/svn/ --username ant101tna
Transmitting file data .
Committed revision 1.
Copied properties for revision 1.
Committed revision 2.
Copied properties for revision 2.
Transmitting file data ...


Ref:
(1) Importing Subversion Repositories to Google Code
http://therightstuff.de/CommentView,guid,b984a8e7-e94d-4eed-a705-5dc479f959e8.aspx
(2) 將 Subversion Repository 搬進 Google Code 裡面
http://fourdollars.blogspot.com/2009/08/subversion-repository-google-code.html

How to dump svn from Free SVN Host

1. Download rsvndump
$ wget [from sourceforge.net]
2. Install rsvndump
$ ./configure
(If getting error, install the missing package, some times like libsvn-dev or libapr1-dev, just some dev package)
$ make
$ make install

3. Dump the web to local dump file.
$ rsvndump https://opensvn.csie.org/xiaomao101/ > csie_xiaomao101.dumpfile
4. Create a new repository and load the dump file to it.
$ svnadmin create new_repo_dir
$ svnadmin load new_repo_dir <>

20090208

用SVN管理配置文件

用SVN管理conf文件还真的是方便啊,尤其是在不同电脑上的程序之间使用自己习惯了的配置文件,比如vim。

而且别人也可以使用到这些配置文件。

https://opensvn.csie.org/开了一个project,专门存储这些配置文件。地址:https://opensvn.csie.org/xiaomao101/

使用或者提交的时候只要在本地checkout一份下来就好了。

而且这也是免费的哦。

20081025

.fvwm2rc(diff with sample configuration)

$ diff .fvwm2rc system.fvwm2rc-sample-95 
2571,2572c2571
< # xiaomao101.edit.20081020: 120x445-5-84
< *BarButtons: Geometry 120x445-1152-347
---
> *BarButtons: Geometry 120x445-5-84
2580c2579
< *BarButtons: (1x2, Title FileMgr, Icon Xfm.xpm, Action 'Exec exec pcmanfm')
---
> *BarButtons: (1x2, Title FileMgr, Icon Xfm.xpm, Action 'Exec exec xfm')
2582c2581
< *BarButtons: (1x2, Title editor, Icon lemacs.xpm, Action 'Exec exec gedit')
---
> *BarButtons: (1x2, Title editor, Icon lemacs.xpm, Action 'Exec exec emacs')
2592c2591
< *BarButtons: (1x2, Title www, Icon nscape.xpm, Action 'Exec exec firefox', \
---
> *BarButtons: (1x2, Title www, Icon nscape.xpm, Action 'Exec exec netscape', \

.bashrc

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
alias mv="mv -i"
alias rm='rm -i'
alias cp='cp -i'

# Fix cant load SCIM in FVWM
export LC_CTYPE="zh_CN.UTF-8"

# Fix touch-pad Enabled in FVWM
synclient TouchpadOff=1

20081011

xorg.conf

# Xorg configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Synaptics Touchpad" "CorePointer"
EndSection

Section "InputDevice"
# keyboard added by rhpxl
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
# mouse added by xiaomao101
# xiaomao101.add.20081011
Driver "synaptics"
Identifier "Synaptics Touchpad"
Option "SendCoreEvents"
Option "Device" "/dev/input/mouse1"
Option "Protocol" "auto-dev"
Option "SHMConfig" "true"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "intel"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection