会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Luciferl
博客园
首页
新随笔
联系
订阅
管理
2022年5月23日
COOKIE提取
摘要: 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
阅读(165)
评论(0)
推荐(0)
2022年3月22日
openstack学习笔记
摘要: #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
阅读(31)
评论(0)
推荐(0)
2022年3月14日
异常处理
摘要: 1.突然断电mysql启动异常解决 rm -rf /var/lib/mysql/ib_logfile0 rm -rf /var/lib/mysql/ib_logfile1
阅读全文
posted @ 2022-03-14 18:31 Luciferl
阅读(14)
评论(0)
推荐(0)
2022年2月24日
利用kolla-ansible 11.2.1.dev16 搭建openstack
摘要: 机器准备 系统 配置 说明 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
阅读(105)
评论(0)
推荐(0)
2022年2月15日
django 初步渲染 markdown
摘要: 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
阅读(54)
评论(0)
推荐(0)
Django ORM 迁移 创建表注释和字段注释增加注释到数据库
摘要: 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
阅读(607)
评论(0)
推荐(0)
2022年2月9日
n1 openwrt 单臂主路由拨号设置
摘要: lan口解绑eth0,桥接模式一定要勾选 添加wan口 物理设置选择 eth0 ,协议PPPoE 开启ipv6 dhcp/dns里高级设置取消勾选 禁止解析 IPv6 DNS 记录 允许ssh转发 防火墙 -- 通信规则 drop-wan-ssh 修改 动作改为 接受 其他路由器无线中继或者无线桥接
阅读全文
posted @ 2022-02-09 12:02 Luciferl
阅读(3582)
评论(0)
推荐(0)
2021年12月31日
drf 缓存
摘要: 文档连接 依赖包 pip install django-redis pip install drf-extensions 配置 CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis
阅读全文
posted @ 2021-12-31 19:06 Luciferl
阅读(64)
评论(0)
推荐(0)
2021年12月17日
基于line_profiler和memory_profiler的python代码性能分析
摘要: #简介 line_profiler 逐行分析代码消耗时间 memory_profiler 逐行分析代码消耗内存 #安装 pip install line_profiler memory_profiler 由于pip安装出现编码错误,故使用源码包安装 <https://files.pythonhost
阅读全文
posted @ 2021-12-17 11:29 Luciferl
阅读(93)
评论(0)
推荐(0)
2021年12月5日
超级次方的个人笔记
摘要: 题目链接 :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
阅读(47)
评论(0)
推荐(0)
下一页
公告