05 2023 档案
摘要:# windows访问eks pods ## 安装AWS CLI 网址为 https://awscli.amazonaws.com/AWSCLIV2.msi。 查看aws版本。 ``` aws --version ``` ## 配置AWS CLI凭证 `eksctl` 和 AWS CLI 均要求您在
阅读全文
摘要:#include <iostream> struct Role { int hp; int mp; int damage; }; bool Act(Role& Acter,Role& beAct) { beAct.hp -= Acter.damage; return beAct.hp < 0; }
阅读全文
摘要:#include <iostream> int main() { int* p; { std::unique_ptr<int[]> a{std::make_unique<int[]>(50)}; a[2] = 240; p = a.get(); std::cout << p[2]; } std::c
阅读全文
摘要:#include <iostream> int a{ 100 }; int main() { int a{160}; { std::cout << a << std::endl; char a = 'a'; std::cout << a << std::endl; std::cout << ::a
阅读全文
摘要:APScheduler==3.5.3flask==2.0.3flask-compress==1.10.1Flask-SQLAlchemy==2.5.1logparser==0.8.2requests==2.21.0six==1.12.0SQLAlchemy==1.4.15w3lib==1.17.0J
阅读全文
摘要:在 CentOS 上格式化硬盘并挂载,可以按照以下步骤进行操作: 首先,使用 fdisk 命令分区并格式化硬盘。假设要格式化的硬盘为 /dev/sdb,可以使用以下命令: fdisk /dev/sdb 然后按照提示进行分区操作。 n: 创建一个新分区 d: 删除一个分区 p: 显示分区表 w: 将分
阅读全文
摘要:asyncio.Semaphore是一个异步信号量,用于协调多个协程对共享资源的访问。 异步信号量在协程中的使用方式与线程中的普通信号量类似,但是它是非阻塞的。当信号量的计数器为0时,协程将会被阻塞,直到其他协程释放了该信号量。 import asyncio async def worker(sem
阅读全文
摘要:这个函数会执行类似于 ps aux | grep python | awk '{print $2}' | xargs kill -9 的Linux命令。你可以将参数 process_name 替换为你想要杀死的进程名。 import subprocess def kill_process(proce
阅读全文
摘要:https://github.com/JSREI 递归代理 https://github.com/JSREI/js-deep-proxy
阅读全文
摘要:(function() { let _Function = Function; Function = function Function(string) { if (string.indexOf("bugger") > -1) { console.log("Hook Function debugge
阅读全文
摘要:npm i http-server -g http-server -p 8881 http://localhost:8881/ main.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-eq
阅读全文