顯示具有 Tool 標籤的文章。 顯示所有文章
顯示具有 Tool 標籤的文章。 顯示所有文章

2016年10月19日 星期三

[Tools] Remove temp files from Eclipse

Eclipse:
Remove temp files


$PROJECT/.metadata/.plugins/org.eclipse.core.resources/.history/

2013年10月15日 星期二

[Tools] Linux Network Statistics

Linux Network Statistics Tools.

2012年7月16日 星期一

[Linux] Shell Script check value enable/disable

#!/bin/sh
CHECK_FILE="/var/value_check"
CHECK_ENABLE=`cat $CHECK_FILE`
echo "CHECK_ENABLE=$CHECK_ENABLE"
if [ -f $CHECK_FILE -a -n $CHECK_ENABLE ]; then
        if [ $CHECK_ENABLE -eq 1 ]; then
                echo "enable";
        else
                echo "disable 1";
        fi
else
        echo "disable 2";
fi

2012年6月6日 星期三

[TOOL] CVS add directories recursively


First, add all the directories, but not any named "CVS":
find . -type d \! -name CVS -exec cvs add '{}' \;
Then add all the files, excluding anything in a CVS directory:
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs add '{}' \; \)
find . -type f -print0| xargs -0 cvs add
Reference

2011年4月27日 星期三

Add 32-bit library to 64-bit server

Ubuntu 10 - 64bit
apt-get update
apt-get install ia32-libs
apt-get install lib32z1

Fedora10 - 64bit
1. for /lib
yum install compat-libstdc++-33
yum install libstdc++.i386

2. error
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
yum install glibc-devel.i386

CentOS - 64bit

yum install libstdc++.i686
yum install compat-libstdc++-33.i686
yum install glibc-devel.i686
yum install libzip.i686

2011年4月14日 星期四

SVN related

find . -name ".svn" -delete


# checkout
svn co svn+ssh://user@your.server.net/path/to/repo

2011年4月12日 星期二

Moving SVN repository to another server

Refer: http://www.petefreitag.com/item/665.cfm

Step 1: Backup your old Repository

svnadmin dump /path/to/repository > repo_name.svn_dump

Step 2: Create the new Repository

svnadmin create /path/to/repository

Step 3: Import your old repository into the new one

svnadmin load /path/to/repository < repo_name.svn_dump