会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞翔的企鹅
日日行,不怕千万里;常常做,不怕千万事
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
39
下一页
2024年2月27日
腾讯云 设置允许root用户登录SSH
摘要: 起因 买了个腾讯云服务器,用户默认ubuntu,每次登录都要su root才切换到root,麻烦 解决 vim /etc/ssh/sshd_config 新增一条 PermitRootLogin yes 然后重启: service sshd restart 如果未设置root密码,则需要设置root
阅读全文
posted @ 2024-02-27 10:29 __username
阅读(264)
评论(1)
推荐(0)
2024年2月25日
ubuntu/linux 服务器上 运行脚本【使用nohup】
摘要: 你可以使用 nohup 命令来在 Ubuntu 服务器上将 Python 脚本放在后台运行。下面是一个简单的步骤: 打开终端并登录到你的 Ubuntu 服务器。 使用你喜欢的文本编辑器创建一个新的 .sh 脚本文件(例如 run_script.sh),并在其中编写启动 Python 脚本的命令。示例
阅读全文
posted @ 2024-02-25 00:07 __username
阅读(489)
评论(0)
推荐(0)
2024年2月6日
vx小程序注意
摘要: %appdata%\Tencent\WeChat\XPlugin\Plugins\RadiumWMPF\ 就会出现devTools了 2024其它方法 替换这个 hook.js跟8555.json 就可以了。。。 url:https://github.com/x0tools/WeChatOpenDe
阅读全文
posted @ 2024-02-06 14:46 __username
阅读(546)
评论(0)
推荐(0)
2024年2月5日
使用codeium代替Github Copilot
摘要: 起因 Github Copilot 过期了,找替代品 于是就有了这个codeium 注意: 安装后如果不弹出登录界面 就: 双击shift弹出搜索框,然后输入Provide Auth Token to Codeium,点击进去,会出现url。复制url到浏览器打开并登录,然后复制token粘贴到py
阅读全文
posted @ 2024-02-05 23:45 __username
阅读(618)
评论(1)
推荐(0)
fastapi基础
摘要: 一些fastApi的基础 运行方式一 运行命令:uvicorn main:app --reload 运行方式二 查看接口文档【swagger-ui】:http://127.0.0.1:8000/docs 路径后面加/docs 给服务端发请求 其它知识 Swagger UI Swagger UI 是一
阅读全文
posted @ 2024-02-05 21:00 __username
阅读(169)
评论(0)
推荐(0)
ubuntu / linux到手做的事
摘要: 创建一个普通用户 adduser fire9 进入home查看 ls /home 添加sudo权限 usermod -aG sudo fire9 其它 sudo apt update && sudo apt upgrade
阅读全文
posted @ 2024-02-05 13:55 __username
阅读(8)
评论(0)
推荐(0)
2024年2月4日
ubuntu后台执行脚本
摘要: nohup python3 cf_threads.py & ps aux | grep cf_threads.py 使用ps命令与grep一起来搜索脚本名,以确认它是否正在运行: root@monica:~/chao_code/cf# ps aux | grep cf_threads.py root
阅读全文
posted @ 2024-02-04 20:37 __username
阅读(14)
评论(0)
推荐(0)
2024年2月3日
关于最新的F12 / devtools的network【网络】折叠 还原
摘要: 设置里面
阅读全文
posted @ 2024-02-03 14:48 __username
阅读(17)
评论(0)
推荐(0)
2024年1月26日
call方法,apply方法,和arguments对象
摘要: //1.call方法 // 2.apply方法 // 3.arguments对象 function add(a, b){ console.log(a + b); } add(1, 2); // call方法第一个参数是this指针,即调用者,第二个参数开始,就是原函数的实际参数 add.call(n
阅读全文
posted @ 2024-01-26 12:30 __username
阅读(15)
评论(0)
推荐(0)
2024年1月24日
python多线程id获取
摘要: demo import threading import time def print_thread_info(thread_name): """线程函数,打印线程名称和ID以及一些文本""" for i in range(3): time.sleep(1) thread_id = threadin
阅读全文
posted @ 2024-01-24 10:00 __username
阅读(581)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
39
下一页
公告