摘要: 查询慢日志位置 show variables like '%slow_query%'; 没有index的查询记录开关 show global variables like '%indexes%'; 超过指定时长的查询开关 show global variables like '%long_query 阅读全文
posted @ 2018-03-12 16:41 伤痕、 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 关于文件权限修改引起的冲突及忽略文件权限的办法 git config core.filemode false 阅读全文
posted @ 2018-03-12 16:41 伤痕、 阅读(409) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 首字母排序类 */ class First_letter_sort { /** * 取汉字的第一个字的首字母 * @DateTime 2016-09-14T17:24:29+0800 * @param string $str */ public function first_ 阅读全文
posted @ 2018-03-12 16:37 伤痕、 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 查看分支:git branch 创建分支:git branch <name> 切换分支:git checkout <name> 创建+切换分支:git checkout -b <name> 合并某分支到当前分支:git merge <name> 删除分支:git branch -d <name> 拉 阅读全文
posted @ 2018-03-12 16:36 伤痕、 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 远程代码库回滚 git branch test_backup //备份一下这个分支当前的情况 git reset --hard the_commit_id //把test本地回滚到the_commit_id git push origin :test //删除远程 test git push ori 阅读全文
posted @ 2018-03-12 16:34 伤痕、 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 短信发送类 */ class Sms{ public $config; /** * 发送短信 * @param int $phone 手机号码 * @param int $content 正文 带 %s替换 * @param int $code 验证码 * @param in 阅读全文
posted @ 2018-03-12 16:33 伤痕、 阅读(943) 评论(0) 推荐(0) 编辑
摘要: PHP SDK开发包下载 https://help.aliyun.com/knowledge_detail/50180.html?spm=5176.7850179.2.1.5BZP9q <?php namespace Potting; include_once 'Aliyun/aliyun-php- 阅读全文
posted @ 2018-03-12 16:32 伤痕、 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: <?php namespace Potting; class WechatPay { private static $mchid=''; private static $appid=''; private static $key=''; //生成微信APP预支付信息 public static fu 阅读全文
posted @ 2018-03-12 16:31 伤痕、 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: composer安装phpexecl composer require phpoffice/phpexcel <?php namespace Potting; use PHPExcel; use PHPExcel_IOFactory; class Excel { static public func 阅读全文
posted @ 2018-03-12 16:30 伤痕、 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 修改yum源 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.r 阅读全文
posted @ 2018-03-12 16:28 伤痕、 阅读(428) 评论(0) 推荐(0) 编辑