加载中
playwright 常用的功能技巧

拦截图片不加载 # 方法1 根据url地址后缀 page.route("**/*.{png,jpg,jpeg,gif}", lambda route: route.abort()) 随机一个设备 with sync_playwright() as p: keys = list(p.devices.keys())...

2024/11/18 11:48
56
Alibaba-PuHuiTi-Bold.otf 这个真好用,生成pdf文件很小

Alibaba-PuHuiTi-Bold.otf 这个真好用,生成pdf文件很小

2024/07/12 16:28
154
linux docker防火墙设置

# 禁止所有 iptables -I DOCKER-USER -p tcp --dport 6379 -j DROP # 只允许特定的ip段请求 iptables -I DOCKER-USER -s 172.18.0.1/24 -p tcp --dport 6379 -j ACCEPT # 只允许特定的ip请求...

2024/05/10 16:33
58
php 主动关闭连接,并继续执行后续程序

ob_start(); echo 'hello world'; $size_o = ob_get_length(); header("Content-Length: $size_o"); header('Connection: close'); header("HTTP/1.1 200 OK"); ob_end_flush(); if(ob_get_l...

php
2024/04/28 14:05
99
flask用uwsgi启动时注意事项

1. main处更新为: if __name__ == "__main__": app.run(host='0.0.0.0', port=5010, debug=False) else: application = app 2. 尽量使用print,这样会把输出 输出到uwsgi日志文件中 3. ngi...

chromedriver、python下载

https://googlechromelabs.github.io/chrome-for-testing/#stable https://blog.csdn.net/nings666/article/details/134314452 python镜像加速下载 https://mirrors.huaweicloud.com/python...

网站变灰色实现办法

html{ -webkit-filter:grayscale(100%); -moz-filter:grayscale(100%); -ms-filter:grayscale(100%); -o-filter:grayscale(100%); filter:grayscale(100%); filter:url("data:image/svg+xml;...

2023/12/05 15:06
60
laraveladmin多图使用sortable报错Encore\Admin\Form\Field\MultipleFile::hydrateFiles()

解决办法: 修改Encore\Admin\Form\Field\MultipleFile类,getValidator()方法,添加以下代码 if (request()->has(static::FILE_SORT_FLAG)) { return false; }......

使用webhippie/php-nginx:7 遇到 php74包没有的情况

echo -e 'https://mirrors.aliyun.com/alpine/v3.15/main/\nhttps://mirrors.aliyun.com/alpine/v3.15/community/' > /etc/apk/repositories apk update php -v apk add php7-xmlreader --fo...

2023/11/07 10:41
27
linux增加虚拟内存

简介: 在linux中,当mem物理内存被耗尽时,会使用swap的虚拟内存(较慢),当物理内存和虚拟内存都耗尽时就会出现程序跑不起来,启动这个进程会杀死另外一个进程的情况,已保证程序的良好运...

后台运行python flask任务

nohup python3 app.py > app.log 2>&1 &

PHP 精确计算分成金额方法

// 查询所有的配置信息 $rateArray = [ ['rate' => '8' , ] , ['rate' => '8' , ] , ['rate' => '80' , ] , ['rate' => '4' , ] , ]; $price = \request()-......

php
2023/05/23 15:34
99
charles 激活码在线生成

https://www.zzzmode.com/mytools/charles/

在线生成二维码的API接口

在线生成网址二维码的API接口:https://api.qrserver.com/v1/create-qr-code/?size=150×150&data=http://www.zym88.cn 使用说明:把url=后面的网址改成你要生成二维码的;用它们只需要填写好...

ABABAB 号段匹配

$string = '13510101021'; $parrern = '/(\d)(?!\1)(\d)(?!\2)(\d)(?!\1)(\d)(?!\2)\1\2/'; preg_match($parrern , $string , $match); var_dump($match);......

2023/05/06 10:23
19
微信h5控制页面返回地址

history.pushState({}, ""); window.onpopstate = function(event) { location.href = "https://baidu.com"; };......

2023/05/04 10:14
59
linux 添加白名单

firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="218.94.151.16/28" accept" firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source addres...

2023/04/26 20:16
178

没有更多内容

加载失败,请刷新页面

返回顶部
顶部