Skip to content

Instantly share code, notes, and snippets.

git config http.postBuffer 104857600
git remote show origin
If the remote branch you want to checkout is under "New remote branches" and not "Tracked remote branches" then you need to fetch them first:
git remote update
git fetch
Now it should work:
git checkout -b local-name origin/remote-name
mvn install:install-file -DgroupId=org.zmq -DartifactId=zmq -Dversion=2.2.2 -Dpackaging=jar -Dfile=/usr/local/share/java/zmq.jar
@baijian
baijian / git
Created November 22, 2013 11:29
git fetch origin
git co gh-pages
redis-cli KEYS '_user_token_*' |xargs redis-cli DEL
@baijian
baijian / rspi
Created November 18, 2013 12:23
sudo dd bs=1M if=2013-09-25-wheezy-raspbian.img of=/dev/sdb
http://www.raspberrypi.org/downloads
* $http_host equals always the HTTP_HOST request header.
* $host equals $http_host, lowercase and without the port number (if present), except when HTTP_HOST is absent or is an empty value. In that case, $host equals the value of the server_name directive of the server which processed the request.
@baijian
baijian / test
Created November 10, 2013 13:31
test
## test
* fh
@baijian
baijian / android-shell
Created November 6, 2013 10:15
android shell remount
> su
> mount | grep system
> mount -o rw,remount /dev/block/stl12 /system
> mount | grep system
> mount -o ro,remount /dev/block/stl12 /system
vim下查看文件编码
:set fileencoding
修改文件编码为utf-8
:set fileencoding=utf-8
unix2dos 是把linux文件格式转换成windows文件格式