git branch {tagname}-branch {tagname}
git checkout {tagname}-branch git add .
git ci -m "Fix included" # or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}| #!/bin/bash | |
| ## Change following to '0' for output to be like ls and '1' for exa defaults | |
| # Don't list implied . and .. by default with -a | |
| dot=1 | |
| # Show human readable file sizes by default | |
| hru=1 | |
| # Don't show group column | |
| fgp=0 | |
| # Don't show hardlinks column |
| Use tcpdump to monitor mysql | |
| # Capture the packets | |
| sudo tcpdump -i eth0 port 3306 -s 65535 -x -n -q -tttt > tcpdump.out | |
| # analyze all the requests from a given host | |
| pt-query-digest --type=tcpdump --filter '($event->{host} || $event->{ip} || "") =~ m/192.168.248.64/' tcpdump.out | |
| # 直接使用 tcpdump 打印相关SQL文本 | |
| sudo tcpdump -i any -nn -s 0 -l -w - host 192.168.56.102 and tcp port 3306 | strings |
| Homebrew build logs for python3 on macOS 10.13.2 | |
| Build date: 2017-12-23 17:00:57 |
Developer Mode: http://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/chromebook-pixel#TOC-Entering-Developer-Mode
udo crossystem dev_boot_usb=1stalling Linux on the Chromebook Pixel: http://vger.kernel.org/~davem/chromebook_pixel_linux.txt
http://reviewingtech.com/install-fedora-on-chromebook-pixel/ https://colemickens.io/post/2015-04-02-chromebook-pixel-ls-2015-linux-guide/ https://gist.github.com/thirteen37/5559107
| ssss |
| <?php | |
| require_once dirname(__FILE__) . '/../lib/simpletest/autorun.php'; | |
| function retry($f, $delay = 10, $retries = 3) | |
| { | |
| try { | |
| return $f(); | |
| } catch (Exception $e) { | |
| if ($retries > 0) { | |
| sleep($delay); |
| // $string: 明文 或 密文 | |
| // $operation:DECODE表示解密,其它表示加密 | |
| // $key: 密匙 | |
| // $expiry:密文有效期 | |
| function authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) { | |
| // 动态密匙长度,相同的明文会生成不同密文就是依靠动态密匙 | |
| $ckey_length = 4; | |
| // 密匙 | |
| $key = md5($key ? $key : $GLOBALS['discuz_auth_key']); |
| package counter | |
| import "io" | |
| type Counter struct { | |
| w io.Writer | |
| c int | |
| } | |
| func New(w io.Writer) (h *Counter) { |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |