03 2024 档案

摘要:需要后台运行 * * * * * /usr/local/bin/python main.py >>job.log 2>&1 & 环境变量 // 无论是 命令 还是目录文件都要绝对路径 /usr/local/bin/python // main.py 里面也要使用 绝对路径的文件夹 或者文件 阅读全文
posted @ 2024-03-26 15:42 vx_guanchaoguo0 阅读(3) 评论(0) 推荐(0) 编辑
摘要:很多时候感觉对了 但是就是404 二级动态代理 可能是多一个斜杠 // 错误代理 // “/” 结尾在URL处,表示反向代理时不是 “https://www.xxxxxxx.com/proxyname/” , // 而是 “https://www.xxxxxxx.com/” ,否则容易出现404的情 阅读全文
posted @ 2024-03-26 14:37 vx_guanchaoguo0 阅读(342) 评论(0) 推荐(0) 编辑
摘要:排序 def recursive_sort(self, categories): categories.sort(key=lambda x: x['sort']) for category in categories: if category['children']: category['child 阅读全文
posted @ 2024-03-25 11:23 vx_guanchaoguo0 阅读(19) 评论(0) 推荐(0) 编辑
摘要:首先用ffmeg 获取视频的宽高 为了使图片看起来 和视频大小一致 ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 xx1.mp4 将图片缩放到视频宽高 ffmpeg -i 阅读全文
posted @ 2024-03-20 11:00 vx_guanchaoguo0 阅读(17) 评论(0) 推荐(0) 编辑
摘要:新建用户 useradd -m newuser passwd newuserpwd newuser usermod -d newuserhome newuser 授权目录给用户 chown newuser:newuser /home/newuser 授权用户组 chgrp -R newuser /p 阅读全文
posted @ 2024-03-20 09:32 vx_guanchaoguo0 阅读(13) 评论(0) 推荐(0) 编辑
摘要:为什么出现这个参数 在大并发的场景下 单机的tcp连接的文件描述符被耗尽了 为什么会被耗尽 进程文件描述符限制 // 默认1024 ulimit -n // 当前临时修改 /etc/security/limits.conf soft nofile 1000000 hard nofile 100000 阅读全文
posted @ 2024-03-19 15:46 vx_guanchaoguo0 阅读(93) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" "unsafe" ) func main() { which := make([]byte, 0) which = append(which, []byte("123")...) which1 := which fmt.Printf("whic 阅读全文
posted @ 2024-03-15 17:32 vx_guanchaoguo0 阅读(11) 评论(0) 推荐(0) 编辑
摘要:设置ICE服务器 const rtcConfiguration = { iceServers: [ {url: "stun:192.168.1.112:3478"}, { url: "turn:192.168.1.112:3478", username: "admin", credential: " 阅读全文
posted @ 2024-03-08 16:20 vx_guanchaoguo0 阅读(36) 评论(0) 推荐(0) 编辑
摘要:这个仅仅是原理 告你信令服务的作用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" 阅读全文
posted @ 2024-03-08 14:42 vx_guanchaoguo0 阅读(19) 评论(0) 推荐(0) 编辑
摘要:发送端 <div> <canvas id="canvas"></canvas> <video id="srcvideo"></video> </div> <div id="xs"></div> <button id="startBtn" onclick="setRecorder(format);"> 阅读全文
posted @ 2024-03-07 09:04 vx_guanchaoguo0 阅读(74) 评论(0) 推荐(0) 编辑
摘要:信令服务 const app = require('express')(); const wsInstance = require('express-ws')(app); app.ws('/', ws => { ws.on('message', data => { wsInstance.getWss 阅读全文
posted @ 2024-03-06 17:55 vx_guanchaoguo0 阅读(37) 评论(0) 推荐(0) 编辑
摘要:安装NAT穿透服务器(ICE Server) brew install coturn // 启动服务 brew services restart coturn // 添加用户 turnadmin -a -u admin -r realm -p admin // 测试服务 turnutils_peer 阅读全文
posted @ 2024-03-06 17:52 vx_guanchaoguo0 阅读(96) 评论(0) 推荐(0) 编辑
摘要:首先删除 app 删除缓存 新版本 cd Users/xxx/Library/ rm -rf Logs/JetBrains/IntelliJIdea202x.x rm -rf Preferences/com.jetbrains.intellij.plist rm -rf Preferences/co 阅读全文
posted @ 2024-03-06 15:14 vx_guanchaoguo0 阅读(929) 评论(0) 推荐(0) 编辑
摘要:很多前端框 VUE React 都是使用webpack 打包 为何使用 vite webpack 打包很慢,热更不友好 一个模块的变化导致整个项目的重新编译 vite 真正的按需加载: 利用浏览器ESM支持,实现真正的按需加载 原理 由于ES6的在浏览器的支持ESM 可以只实现在浏览器直接使用imp 阅读全文
posted @ 2024-03-05 11:58 vx_guanchaoguo0 阅读(13) 评论(0) 推荐(0) 编辑
摘要:import MapKit import SwiftUI import CoreLocation class ViewController: UIViewController, MKMapViewDelegate { var mainMapView: MKMapView! let locationM 阅读全文
posted @ 2024-03-04 17:28 vx_guanchaoguo0 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示