摘要: server { listen 80; server_name prejoin.chexd.com; #监听的hostname add_header 'Access-Control-Allow-Origin' '*'; root /usr/local/nginx/prejoinhtml; #第一个项 阅读全文
posted @ 2023-11-20 13:02 酷酷的城池 阅读(430) 评论(0) 推荐(0) 编辑
摘要: var image = new Image() image.setAttribute('crossOrigin', 'anonymous') image.onload = function() { var canvas = document.createElement('canvas') canva 阅读全文
posted @ 2023-11-19 14:54 酷酷的城池 阅读(59) 评论(0) 推荐(0) 编辑
摘要: show processlist; select * from information_schema.innodb_trx; SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS; 阅读全文
posted @ 2023-07-25 17:35 酷酷的城池 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <?php // + // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // + // | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved. // + // | Licensed ( 阅读全文
posted @ 2023-07-19 17:17 酷酷的城池 阅读(11) 评论(0) 推荐(0) 编辑
摘要: setfacl -m d:o::rwx -R /usr/local/src/ 阅读全文
posted @ 2023-06-21 11:45 酷酷的城池 阅读(8) 评论(0) 推荐(0) 编辑
摘要: $cmd = '"H:\phpstudy_pro\Extensions\php\php7.3.4nts\php.exe" I:\weman\webman\start.php I:\weman\webman\runtime\/windows\start_monitor.php I:\weman\web 阅读全文
posted @ 2023-05-05 11:05 酷酷的城池 阅读(103) 评论(0) 推荐(0) 编辑
摘要: composer require jeroendesloovere/distance <?php namespace LonLatFilterShop; use JeroenDesloovere\Distance\Distance; use think\Exception; class LonLat 阅读全文
posted @ 2022-12-26 17:28 酷酷的城池 阅读(20) 评论(0) 推荐(0) 编辑
摘要: event.php <?php // 事件定义文件 return [ 'bind' => [ 'UserLogin' => 'app\event\UserLogin', 'UserLogout' => 'app\event\UserLogin', ], 'listen' => [ 'AppInit' 阅读全文
posted @ 2022-12-19 16:47 酷酷的城池 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2022-08-22 11:30 酷酷的城池 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-08-20 16:26 酷酷的城池 阅读(44) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/xml" "fmt" "log" "net/http" "time" "github.com/tiaguinho/gosoap" ) type GetIPLocationResponse struct { XMLName xml.Nam 阅读全文
posted @ 2022-07-29 08:53 酷酷的城池 阅读(552) 评论(0) 推荐(0) 编辑
摘要: PHP Simple HTML DOM Parser download | SourceForge.net 阿里云盘 (aliyundrive.com) 阅读全文
posted @ 2022-07-28 14:26 酷酷的城池 阅读(14) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/streadway/amqp" "log" "time" ) func failOnError(err error, msg string) { if err != nil { log.Fatalf("%s: %s", 阅读全文
posted @ 2022-06-09 14:21 酷酷的城池 阅读(7) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/streadway/amqp" "log" ) func failOnError(err error, msg string) { if err != nil { log.Fatalf("%s: %s", msg, er 阅读全文
posted @ 2022-06-02 14:47 酷酷的城池 阅读(24) 评论(0) 推荐(0) 编辑
摘要: package uiltsimport ( "bytes" "crypto/aes" "crypto/cipher" "encoding/base64" "fmt" "strconv" "strings")const ( sKey = "chexiongdisdwa11" ivParameter = 阅读全文
posted @ 2022-02-28 15:21 酷酷的城池 阅读(154) 评论(0) 推荐(0) 编辑
摘要: var Cpt *captcha.Captcha func init() { store := cache.NewMemoryCache() Cpt = captcha.NewWithFilter("/captcha/", store) //一定要写在构造函数里面,要不然第一次打开页面有可能是X C 阅读全文
posted @ 2022-02-17 16:22 酷酷的城池 阅读(227) 评论(0) 推荐(0) 编辑
摘要: beego.SetStaticPath("/static", "static") beego.SetStaticPath("/images", "static/img") beego.SetStaticPath("/css", "static/css") beego.SetStaticPath("/ 阅读全文
posted @ 2022-02-16 09:55 酷酷的城池 阅读(388) 评论(0) 推荐(0) 编辑
摘要: import ( "fmt" "os" "path/filepath" "path" ) files := "E:\\data\\test.txt" paths, fileName := filepath.Split(files) fmt.Println(paths, fileName) //获取路 阅读全文
posted @ 2022-02-15 17:27 酷酷的城池 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "gopkg.in/ini.v1" "log" "time" ) func main() { cfg, err := ini.Load("config.ini") getErr("load config", err) // 遍历所有的secti 阅读全文
posted @ 2022-02-10 11:15 酷酷的城池 阅读(509) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bytes" "encoding/json" "errors" "fmt" "github.com/garyburd/redigo/redis" "time" ) type RedisPool struct { pool *redis.Pool } fu 阅读全文
posted @ 2022-02-10 10:38 酷酷的城池 阅读(117) 评论(0) 推荐(0) 编辑
摘要: beego路由设置 beego存在三种方式的路由:固定路由、正则路由、自动路由。下面就详细说一下如何使用这三种路由。 基础路由 从 beego 1.2 版本开始支持了基本的 RESTful 函数式路由,应用中的大多数路由都会定义在 routers/router.go 文件中。最简单的 beego 路 阅读全文
posted @ 2022-01-19 14:37 酷酷的城池 阅读(680) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bytes" "fmt" "github.com/gocolly/colly" "io/ioutil" "log" "strconv" "strings" "sync" ) func down(i int, group *sync.WaitGroup) 阅读全文
posted @ 2022-01-18 17:36 酷酷的城池 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 出处 字符 ——匹配任意字符 e.g: abc. 结果: abcd,abcx,abc9; [] ——匹配括号中任意一个字符 e.g: [abc]d 结果:ad,cd,1d; - ——[-]中表示范围 e.g: [A-Za-z0-9]; ^ ——[^]中表示除括号中的任意字符 e.g:[xy]a 结果 阅读全文
posted @ 2022-01-17 15:58 酷酷的城池 阅读(108) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "io" "os" "regexp" "strconv" "sync" "github.com/qianlnk/pgbar" ) /** * 需求: 1. 多协程下载文件 2.断点续连 **/ func main() { //获取要下载文件 D 阅读全文
posted @ 2022-01-12 09:47 酷酷的城池 阅读(262) 评论(0) 推荐(0) 编辑
摘要: group和order一起使用问题group 的执行优先级大于order的优先级,所以在执行sql语句时会先进行group分组然后在进行order排序操作 SELECT * FROM `table_name` GROUP BY `session_list` ORDER BY `create_time 阅读全文
posted @ 2021-12-27 15:03 酷酷的城池 阅读(1700) 评论(0) 推荐(0) 编辑