启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
tmux at [-t 会话名]
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 |
/** | |
* 抽奖算法 | |
* | |
* @param array $prizeInfo 奖品类型信息 [ | |
* [ | |
* 'prize_type_id' => 5, | |
* 'rate' => 10, | |
* ... | |
* ], | |
* [ |
- 手机安装证书 证书下载地址: | |
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]; | |
} | |
} |
Atom |