摘要: import re cookie='' pt_key=re.findall('(pt_key=.*?;)',cookie) pt_pin=re.findall('(pt_pin=.*?;)',cookie) print(''.join(pt_key+pt_pin)) 阅读全文
posted @ 2022-05-23 16:37 Luciferl 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #neutron 网络知识储备 tap/tun ### ubuntu 20.04 server ### 安装 apt install uml-utilities ### 创建tap tunct -t tap_test ### 查看创建结果 ip link list ### 绑定ip ip addr 阅读全文
posted @ 2022-03-22 17:07 Luciferl 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1.突然断电mysql启动异常解决 rm -rf /var/lib/mysql/ib_logfile0 rm -rf /var/lib/mysql/ib_logfile1 阅读全文
posted @ 2022-03-14 18:31 Luciferl 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 机器准备 系统 配置 说明 ip 平台 ubuntu live server 18.04 4H8GB50GB 双网卡 计算节点 A1 VM ubuntu live server 18.04 4H8GB50GB 单网卡 控制节点 B1 VM A1: 双网卡:1.桥接 2.主机模式 特别注意主机模式的网 阅读全文
posted @ 2022-02-24 19:12 Luciferl 阅读(58) 评论(0) 推荐(0) 编辑
摘要: def test(request, *args, **kwargs): with open('templates/课程学习相关表结构设计 v0.2.0.md', 'r', encoding='UTF-8') as f: content = f.read() return render(request 阅读全文
posted @ 2022-02-15 15:33 Luciferl 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1. 利用[model._meta.verbose_name]增加针对mysql表注释的处理 修改django/db/backends/base/schema.py 文件,table_sql 函数,如下: if self.connection.client.executable_name =='my 阅读全文
posted @ 2022-02-15 14:24 Luciferl 阅读(468) 评论(0) 推荐(0) 编辑
摘要: lan口解绑eth0,桥接模式一定要勾选 添加wan口 物理设置选择 eth0 ,协议PPPoE 开启ipv6 dhcp/dns里高级设置取消勾选 禁止解析 IPv6 DNS 记录 允许ssh转发 防火墙 -- 通信规则 drop-wan-ssh 修改 动作改为 接受 其他路由器无线中继或者无线桥接 阅读全文
posted @ 2022-02-09 12:02 Luciferl 阅读(3109) 评论(0) 推荐(0) 编辑
摘要: 文档连接 依赖包 pip install django-redis pip install drf-extensions 配置 CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis 阅读全文
posted @ 2021-12-31 19:06 Luciferl 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #简介 line_profiler 逐行分析代码消耗时间 memory_profiler 逐行分析代码消耗内存 #安装 pip install line_profiler memory_profiler 由于pip安装出现编码错误,故使用源码包安装 <https://files.pythonhost 阅读全文
posted @ 2021-12-17 11:29 Luciferl 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 题目链接 :https://leetcode-cn.com/problems/super-pow/ a^b %c == a^(b%phi(c)) % c 本题求解需要用到欧拉定理 https://baike.baidu.com/item/%E6%AC%A7%E6%8B%89%E5%AE%9A%E7% 阅读全文
posted @ 2021-12-05 23:28 Luciferl 阅读(26) 评论(0) 推荐(0) 编辑