第 2 页

共 34 篇

常用查询

重复数据select * from dai_credit_apply ca where (ca.cid,ca.companyid) in (select cid,companyid from dai_credit_apply WHERE status=2 GR…

web_hook 使用www用户版

centos, nginx, php生产目录全站【git.config.filemode = false】chown www:www -R /home/wwwroot/websitwww用户下生成密钥并上传公钥【使用git公钥,需要修改源码目录 .git/co…

Mysql 多项查重

SELECT uid, type, amount,auid , sum(amount) as total FROM `abc_log_commision` group by uid, auid, type, amount HAVING COUNT(uid)>1…

解决国内github下载速度过慢

不知道为什么,最近修改本地hosts方式也不能加速github下载,很忧伤现改用ss本地代理,此方法要注意使用完成后手动清除全局代理git config --global http.proxy socks5://127.0.0.1:1080 git conf…

A站动态头像上传代码

设置头像页面,F12 粘贴执行代码。PS,A站锁死上传后的头像必定转为是jpg格式,所以有些gif上传后就不动了PS2,截止发帖时代码执行有效(function(){ var temp = document.createElement('form'); …

PHP代码片段(2)数学 - Math

average返回两个或多个数字的平均值。function average(...$items){     $count = count($items);         return $count === 0 ? 0 : array_sum($items…

PHP Array 函数

//ALL //如果所提供的函数返回 true 的数量等于数组中的成员数量的总和,则函数返回 true, 否则返回 false function all($items, func){     return count(array_filter($item…

移动端调试脚本

微信出品,小程序上用的多,H5也可以用<script type="text/javascript" src="http://cdn.staticfile.org/vConsole/3.2.0/vconsole.min.js"></script> <scrip…

一键安装KMS服务脚本

KMS,是 Key Management System 的缩写,也就是密钥管理系统。这里所说的 KMS,毋庸置疑就是用来激活 VOL 版本的 Windows 和 Office 的 KMS 啦。经常能在网上看到有人提供的 KMS 服务器地址,那么你有没有想过自己…