2009年12月29日星期二

Public a git repository

Create an empty repository

$ mkdir Andcp_K29

$ cd Andcp_K29

$ git-init-db

Modify .git/info/exclude

$ echo "*.[oa]" >> exclude

$ echo ".svn" >> exclude

$ echo ".repo" >> exclude

Add files to repository

$ git add .

$ git commit -m "Initial repo for example"

Create a public repository

$ mkdir /var/www/html/Andcp_K29.git

$ GIT_DIR=Andcp_K29.git git-init-db

$ git push :/var/www/html/Andcp_K29.git

$ git-daemon --verbose --export-all --enable=receive-pack --base-path=/var/www/html/git &

Run Test

$ git clone git://127.0.0.1/Andcp_K29.git

OK!

2009年12月27日星期日

Config Android Proxy

$ adb shell
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> INSERT INTO system VALUES(99,’http_proxy', 'wwwgate0.mot.com:1080');
sqlite> exit

2009年12月4日星期五

VLC RTSP Server Config

Step 1:
vlc --ttl 12 -vvv --color -I telnet --telnet-password video --rtsp-host 0.0.0.0:5554
Step 2:
telnet 127.0.0.1 4212
you'll see vlm, run command
>new test vod enabled
>setup test input my_video.mpg
Step 3:
vlc rtsp://127.0.0.1:5554/test