-
分类于
GOLANG
发表于2021-01-08 20:44
#### 目的学习go协程池
- 网上go协程池大同小异,理解原理就可以了,我是根据bilibili上一个视频操作的,讲的还挺好的,自行搜索下,不过因为这个视频中任务队列是没有长度限制的,所以在那个基础上进行改编。
#### 看下协程池的原理

#### 协程池结构体,...
阅读全文 »
-
分类于
GOLANG
发表于2021-01-08 20:44
#### go协程池改编
-基于[<font color=#0099ff>go协程池</font>](http://blog.hexiefamily.xin/article?path=%2fGOLANG%2fgo%e5%8d%8f%e7%a8%8b%e6%b1%a0.md)
#### 看下协程池的原理

#### ssh 连接win10:
1. win10 开...
阅读全文 »
-
分类于
MYSQL
发表于2021-01-08 20:44
#### 到年底了,都需要统计下报表,mysql统计的时候有点问题,尤其是到12-31 到01-01 有问题
```php
select location as locationid
,if(DATE_FORMAT(date,'%v')='01' and date_format(date_add('1900-01-01',interval floor(datediff(date,'1900-01-...
阅读全文 »
-
分类于
DNSMASQ
发表于2021-01-08 20:44
### 安装dnsmasq
- apt-get install -y dnsmasq
#### /etc/dnsmasq.conf
```conf
bogus-priv
no-resolv
server=100.100.2.138
server=100.100.2.136
interface=tun0
listen-address=127.0.0.1
bind-interfaces
addn-ho...
阅读全文 »
-
分类于
PUSH
发表于2021-01-06 21:23
### 利用server酱
地址:http://sc.ftqq.com/3.version
1.查看上方网址,github授权登录,并且微信绑定即可获取key值
2.利用方糖微信公众号来返回模板消息,可以是告警信息,这里我处理成打卡时间
##### 用php处理的方法
```php
function sc_send( $text , $desp = '' , $key = '212121...
阅读全文 »
-
分类于
SSH
发表于2021-01-06 13:55
### 利用acme 生成https协议
##### 手动https
1.curl https://get.acme.sh | sh
2.cd ~/.acme.sh/
3.alias acme.sh=~/.acme.sh/acme.sh
4.acme.sh --issue --force -d a.test.com --webroot /var/www/html/a/
5.m...
阅读全文 »