摘要: //设置全局变量 Git global setup git config --global user.name "XX" git config --global user.email "xxxx@qq.com" Create a new repository git clone xxxx.git / 阅读全文
posted @ 2021-07-03 11:01 羽*枫 阅读(106) 评论(0) 推荐(0)
摘要: 安装 go get github.com/astaxie/beego 升级 go get -u github.com/astaxie/beego 阅读全文
posted @ 2021-06-28 14:56 羽*枫 阅读(69) 评论(0) 推荐(0)
摘要: go build 编译源码文件、代码包、依赖包 go run 编译并运行Go源码文件 go get 动态获取远程代码包,默认不会检查更新,须使用 -u 参数 go install 与go build相同,但编译结果会安装到bin,pkg目录,并支持增量编译 go clean 清理工作目录 go en 阅读全文
posted @ 2021-06-23 17:41 羽*枫 阅读(160) 评论(0) 推荐(0)
摘要: php 异常处理 set_error_handler():捕获错误,受捕获Warning、Notice级别的限制 register_shutdown_function():捕获系统级E_ERROR、E_PARSE等错误 set_exception_handler():默认的异常处理程序 打印日志 \ 阅读全文
posted @ 2021-06-23 14:46 羽*枫 阅读(133) 评论(0) 推荐(0)
摘要: 登录镜像平台账号(私有仓库才需要) docker login daocloud.io 创建网络 docker network create mai 执行composer文件 docker-compose -f mai.yml up -d 进入redis客户端 docker exec -it myre 阅读全文
posted @ 2021-06-18 10:03 羽*枫 阅读(642) 评论(0) 推荐(0)
摘要: github国内镜像网站 https://hub.fastgit.org/ https://github.com.cnpmjs.org/ 直接替换 https://github.com/ 阅读全文
posted @ 2021-06-11 15:57 羽*枫 阅读(347) 评论(0) 推荐(0)
摘要: concat(field1,field2):字符串拼接 SELECT id,concat(number,' - ',case statu when 1 then '测试' when 1 then '正式' else '未启用' end,' -#',name,'#') FROM `t_version` 阅读全文
posted @ 2021-05-28 17:10 羽*枫 阅读(43) 评论(0) 推荐(0)
摘要: 一般模式 显示所有行号: :set nu 跳到指定行::n 撤销:u 删除当前行:dd 字符替换::%s/old/new/g g为全局 阅读全文
posted @ 2021-05-27 09:06 羽*枫 阅读(35) 评论(0) 推荐(0)
摘要: $columns = [ 'id'=>'ID','name'=>'用户名称' ]; $data = [ ['id'=>1,'name'=>'t1'], ['id'=>2,'name'=>'t2'], ['id'=>11,'name'=>'t11'], ['id'=>12,'name'=>'t 阅读全文
posted @ 2021-04-29 14:23 羽*枫 阅读(206) 评论(0) 推荐(0)
摘要: 1、设置header头 header("Content-type: application/vnd.ms-excel; charset=UTF-8"); // 文件编码 header("Content-type: application/octet-stream");//流文件 header("Co 阅读全文
posted @ 2021-04-27 14:43 羽*枫 阅读(353) 评论(0) 推荐(0)