2012年9月24日月曜日

git server

■prepare サーバー
例えば、StopWatchというプロジェクトをリポジトリにあげるとき、
1. git clone --bare StopWatch StopWatch.git
2. mv StopWatch.git ~/Repository/   ## scp -r StopWatch.git user@git.example.com:/opt/git

■ローカル
1. git remote add origin /Users/your_usr_name/Repository/StopWatch.git
2. modify files and commit it.
3. git push origin master

下記エラーが出た場合
fatal: remote origin already exists.

$ git remote rm origin
$ git remote add origin git@github.com:you/yourrepo.git
$ git push -u origin master

2012年9月20日木曜日

mountain lion's web server

config file: /etc/apache2/httpd.conf
web server root directory: /Library/WebServer/Documents/
sudo apachectl start

2012年9月3日月曜日

useful perl script


read english words for me.
perl -e 'while(<>){`say $_`}'

2011年12月26日月曜日

use windows exe from cygwin

1. add a dummy function

function adb {
    TOP=/cygdrive/c/Android/android-sdk
    "$TOP"/platform-tools/adb.exe "$@"
}

2. create a dummy symbol link
cd /usr/bin
mv gvim gvim.org

ln -s /cygdrive/c/Program\ Files\ \(x86\)/Vim/vim73/gvim.exe gvim


xperia take root

1. download the latest version of the following script.
DooMLoRD_v3_ROOT-zergRush-busybox-su.zip


This script will:
      (1) root ur device using latest zergRush exploit (16 Nov)
      (2) install Busybox (1.18.4)
      (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
  
Before u begin:   
      (1) make sure u have installed adb drivers for ur device
      (2) enable "USB DEBUGGING" 
            from (Menu\Settings\Applications\Development)
      (3) enable "UNKNOWN SOURCES"
            from (Menu\Settings\Applications)
      (4) [OPTIONAL] increase screen timeout to 10 minutes
      (5) connect USB cable to PHONE and then connect to PC
      (6) skip "PC Companion Software" prompt on device



2. run this script


3. after Superuser is installed.
    adb shell
    su
    mount -o rw,remount /dev/block/mtdblock3 /system


4. and then you will find that you can change any file under system.


ENJOY!!

2011年12月5日月曜日

save log to sdcard

# logcat -v time -f /sdcard/logcat.txt -r 1024000 & http://developer.android.com/guide/developing/tools/logcat.html

2011年3月25日金曜日

mvc Android sample

http://www.anddev.it/index.php/topic,32.msg32.html?PHPSESSID=9sergpmb12t8utmv0t22gc11ribdlo5b#msg32

need to add to android.xml