摘要: 一,前戏 1.1 进程调度 内存中保存了对每个进程的唯一描述, 并通过若干结构与其他进程连接起来. 调度器面对的情形就是这样, 其任务是在程序之间共享CPU时间, 创造并行执行的错觉, 该任务分为两个不同的部分, 其中一个涉及调度策略, 另外一个涉及上下文切换. 1.2 进程的分类 linux把进程 阅读全文
posted @ 2024-08-21 12:42 vx_guanchaoguo0 阅读(180) 评论(0) 推荐(0)
摘要: 创建测试计划 // Jmeter 2.13 // 路径下面的菜单 点击 // 修改名称 添加线程组 // 测试计划 右键 > 添加 > Threads(Users) > 线程组 // 线程数 : 30 // Ramp-Up Period (in seccond) : 2 // 循环次数 : 永远 / 阅读全文
posted @ 2026-04-01 11:12 vx_guanchaoguo0 阅读(1) 评论(0) 推荐(0)
摘要: Pymongo对象数据 to json json.dumps(data,indent=4,default=json_util.default) pymongo.command_cursor.CommandCursor // 在遍历后才真的开始执行查询 mongo的操作 django orm 查看 原 阅读全文
posted @ 2026-03-31 16:59 vx_guanchaoguo0 阅读(2) 评论(0) 推荐(0)
摘要: 小文件 scp scp -r ./data [email protected]:/xxx/xxx 大文件 断点续传 增量同步 rsync rsync -avzP ./data [email protected]:/xxx/xxx // a 归档 // P 断点续传 进度显示 // c 校验模式 校验文件md 阅读全文
posted @ 2026-03-31 09:37 vx_guanchaoguo0 阅读(1) 评论(0) 推荐(0)
摘要: 排除特定行 强制文本处理 正则匹配 tail -15000 {path}|grep -a -v "alluredir="|grep -a -E "{grep_str} 直接在目录下检索 地柜显示行号 grep -rn "xxxx" /path/to/directory 只列出文件 不显示内容 gre 阅读全文
posted @ 2026-03-31 09:28 vx_guanchaoguo0 阅读(3) 评论(0) 推荐(0)
摘要: 首先创建一个conda 虚拟环境 conda create -n myenv python=3.11 --no-default-packages 可以设置conda源加速下载 vim .condarc channels: - defaults show_channel_urls: true defa 阅读全文
posted @ 2025-07-12 16:51 vx_guanchaoguo0 阅读(132) 评论(0) 推荐(0)
摘要: 默认 postgres 用户 psql -U postgres -- 1. 以超级用户身份创建角色并授权 CREATE ROLE supabase_admin WITH SUPERUSER LOGIN; GRANT ALL ON DATABASE maxkb TO supabase_admin; - 阅读全文
posted @ 2025-07-12 13:57 vx_guanchaoguo0 阅读(54) 评论(0) 推荐(0)
摘要: 找到文件 .condarc cd ~ vim .condarc 更换清华源 channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/p 阅读全文
posted @ 2025-07-12 10:26 vx_guanchaoguo0 阅读(123) 评论(0) 推荐(0)
摘要: 数据库的值 和 代码产生映射 class StatusIntField(IntField): STATUS_MAP = { ConsumeRecord.Status.CREATED: 0, ConsumeRecord.Status.INIT: 1, ConsumeRecord.Status.WAIT 阅读全文
posted @ 2025-07-04 10:19 vx_guanchaoguo0 阅读(19) 评论(0) 推荐(0)
摘要: 执行命令 git fetch --all && git reset --hard origin/server_fee_ledger && git pull 阅读全文
posted @ 2025-07-03 19:21 vx_guanchaoguo0 阅读(18) 评论(0) 推荐(0)
摘要: python 自带库的使用 import tkinter as tk from tkinter import messagebox from tkinter import filedialog import qrcode from PIL import Image, ImageTk class QR 阅读全文
posted @ 2025-07-03 17:54 vx_guanchaoguo0 阅读(28) 评论(0) 推荐(0)