Skip to content

Instantly share code, notes, and snippets.

View TIGERB's full-sized avatar
:octocat:
Working

施展 TIGERB

:octocat:
Working
View GitHub Profile
find . -path './vendor' -prune -o -name '*.php' | while read line;do res=`php -l $line | grep -v 'No syntax errors detected'`; done;
drop procedure if exists test;
delimiter //
create procedure test(in c int)
begin
declare name int;
repeat
set @name = concat(floor(rand() * 1000000000), '@qq.com');
#!/bin/bash
# script file path
path='/Users/shizhan/Project'
# log file
file="/tmp/stock_consume.`date +\%Y\%m\%d`.log"
# php path
php='php'
while [ true ]; do
@TIGERB
TIGERB / tmux-cheatsheet.markdown
Created May 12, 2017 10:41 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

tmux at [-t 会话名]
/**
* 抽奖算法
*
* @param array $prizeInfo 奖品类型信息 [
* [
* 'prize_type_id' => 5,
* 'rate' => 10,
* ...
* ],
* [
@TIGERB
TIGERB / charles
Created April 7, 2017 07:34
charles https
- 手机安装证书 证书下载地址:
https://www.charlesproxy.com/documentation/additional/legacy-ssl-proxying/
- 或者直接在safari 浏览器打开下面的地址就可以下载
https://www.charlesproxy.com/assets/legacy-ssl/charles.crt
foreach ($argv as $v) {
preg_match_all('/^--(.*)/', $v, $match);
if (isset($match[1][0]) && ! empty($match[1][0])) {
$match = explode('=', $match[1][0]);
$input[$match[0]] = $match[1];
}
}