会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平凡之路
生命在于折腾,生命不息,折腾不止。 ----LSC
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
2021年10月13日
docker安装部署showdoc
摘要: 官网:https://www.showdoc.com.cn/help/65610 # 中国大陆镜像安装命令(安装后记得执行docker tag命令以进行重命名) docker pull registry.cn-shenzhen.aliyuncs.com/star7th/showdoc docker
阅读全文
posted @ 2021-10-13 12:24 LiShiChao
阅读(893)
评论(0)
推荐(0)
2021年9月24日
(send disconnect: Broken pipe)让Mac终端保持(SSH)与远程的连接状态
摘要: mac 编辑 sudo vim /etc/ssh/ssh_config 添加以下设置可解决这个问题: # 断开时重试连接的次数 ServerAliveCountMax 5 # 每隔5秒自动发送一个空的请求以保持连接 ServerAliveInterval 5
阅读全文
posted @ 2021-09-24 11:33 LiShiChao
阅读(275)
评论(0)
推荐(0)
2021年9月16日
python __slots__
摘要: # 限制实例的属性?比如,只允许对Student实例添加name和age属性。 class Student(object): __slots__ = ('name', 'age') # 用tuple定义允许绑定的属性名称
阅读全文
posted @ 2021-09-16 17:32 LiShiChao
阅读(37)
评论(0)
推荐(0)
2021年9月15日
Nginx设置浏览器缓存
摘要: Nginx设置浏览器缓存 #图片缓存30天 location ~.*\.(jpg|png|jpeg)$ { expires 30d; } #js css缓存一小时 location ~.*\.(js|css)?$ { expires 1h; }
阅读全文
posted @ 2021-09-15 17:57 LiShiChao
阅读(208)
评论(0)
推荐(0)
2021年8月12日
递归生成后台菜单数据
摘要: 先从数据库中查询出所有有效的菜单数据 [ { "permission_id": 6, "title": "首页", "url": "/", "icon": "el-icon-s-home", "weight": 100, "is_menu": 1, "parent_id": null }, { "p
阅读全文
posted @ 2021-08-12 14:30 LiShiChao
阅读(97)
评论(0)
推荐(0)
2021年8月3日
使用Charles进行HTTPS抓包
摘要: 下载和安装Charles 下载地址: www.charlesproxy.com/download/ 使用Charles进行HTTPS抓包 https://juejin.cn/post/6844904128104103943
阅读全文
posted @ 2021-08-03 16:04 LiShiChao
阅读(530)
评论(0)
推荐(0)
Charles 抓包 Client SSL handshake failed - Remote host closed connection during handshake
摘要: Charles 抓包 https 报错: Client SSL handshake failed - Remote host closed connection during handshake # ios 设置信任证书: 通用 -> 关于本机 -> 信任证书设置
阅读全文
posted @ 2021-08-03 16:00 LiShiChao
阅读(3288)
评论(0)
推荐(0)
2021年7月30日
MongoDB 创建索引
摘要: # 创建索引,优化查询速度 # 查看索引 > db.enter_room.getIndexes() [ { "v" : 2, "key" : { "_id" : 1 }, "name" : "_id_", "ns" : "room.enter_room" } ] # 创建索引 > db.enter_
阅读全文
posted @ 2021-07-30 14:35 LiShiChao
阅读(447)
评论(0)
推荐(0)
批量创建用户,推送公钥
摘要: #!/bin/bash username=$1 # 创建用户 ansible all -m shell -a "useradd $username" # 设置密码 ansible all -m shell -a "echo '123456'|passwd --stdin $username" # 推
阅读全文
posted @ 2021-07-30 11:17 LiShiChao
阅读(63)
评论(0)
推荐(0)
2021年7月28日
python3----输出所有大小写字母及数字
摘要: 1. 用一行输出所有大(小)写字母,以及数字 import string # 导入string这个模块 print(string.digits) # 输出包含数字0~9的字符串 print(string.ascii_letters) # 包含所有字母(大写或小写)的字符串 print(string.
阅读全文
posted @ 2021-07-28 10:34 LiShiChao
阅读(950)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
24
下一页
公告