Skip to content

Instantly share code, notes, and snippets.

View php 转换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");
View gist:9404855
$ adb shell
$ su
# mount -o rw,remount /system
pod install --verbose
View gist:9264418
launchctl load|unload|start|stop|list com.baijian.xx.plist
View gist:8784707
chsh -s /bin/zsh
sudo usermod -s /bin/zsh march
View ssh-add
$ eval `ssh-agent -s`
$ ssh-add
View gist:8662288
git co xxx
git rebase master : patch modification of xxx on base of master branch
>git fetch origin
>git rebase origin/master
View smarty-javascript
Wrap your JavaScript around {literal}{/literal} tags so it won't get interpreted by Smarty.
View tcpdump
tcpdump host and (tcp port 80 or tcp port 443) -nnX -s 1600
View gist:8294141
git push origin :refs/tags/12345
View gist:8253232
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