Skip to content

Instantly share code, notes, and snippets.

gmdate自动设置UTC时间.
echo(date_default_timezone_get() . "\n");
echo(date("Y-m-d\TH:i:s\Z") . "\n");
print gmdate("Y-m-d\TH:i:s\Z");
$ adb shell
$ su
# mount -o rw,remount /system
pod install --verbose
launchctl load|unload|start|stop|list com.baijian.xx.plist
/Library/LaunchAgents/
/System/Library/LaunchAgents/
~/Library/LaunchAgents/
chsh -s /bin/zsh
sudo usermod -s /bin/zsh march
$ eval `ssh-agent -s`
$ ssh-add
rebase基本用法:
http://git-scm.com/book/en/Git-Branching-Rebasing
git co xxx
git rebase master : patch modification of xxx on base of master branch
rebase远程分支:
http://stackoverflow.com/questions/7929369/how-to-rebase-local-branch-with-remote-master
1.
>git fetch origin
>git rebase origin/master
Wrap your JavaScript around {literal}{/literal} tags so it won't get interpreted by Smarty.
@baijian
baijian / tcpdump
Last active January 2, 2016 16:39
tcpdump host 114.80.132.160 and (tcp port 80 or tcp port 443) -nnX -s 1600
@baijian
baijian / gist:8294141
Created January 7, 2014 03:16
git tag
git push origin :refs/tags/12345
raspdebian-> /boot/config.txt
display_rotate=0 Normal
display_rotate=1 90 degrees
display_rotate=2 180 degrees
display_rotate=3 270 degrees
display_rotate=0x10000 horizontal flip
display_rotate=0x20000 vertical flip