目录 1. 单例模式 1.饿汉式 2.懒汉式 2. 工厂设计模式 1. 普通工厂模式 2. 多个工厂方法模式 3. 静态工厂方法模式 3. 建造者模式 4. 适配器设计模式 1. 类的适配器模式: 2. 对象的适配器模式 3. 接口的适配器模式 5. 装饰模式 6. 策略模式 7. 代理模式 1. ...
分类:
编程语言 时间:
2020-07-11 23:04:22
阅读次数:
78
Intro Yeah I know sometimes, things may not always make sense to you right now [^1] [^1]: Hailie and Laney (Eminem’s daughters) are, at this point in ...
分类:
其他好文 时间:
2020-07-11 22:57:33
阅读次数:
126
DjangoRestFramework开发实践 在这之前我写过一篇关于Django与Drf快速开发实践的博客,Django快速开发实践:Drf框架和xadmin配置指北,粗略说了一下Drf配置和基本使用,不过里面只是涉及到最基本的CRUD,在正常的后端开发中涉及的诸如认证和权限、消息队列、缓存之类的 ...
分类:
其他好文 时间:
2020-07-11 22:47:55
阅读次数:
56
rsync未授权访问漏洞简介 rsync是Linux/Unix下的一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件和目录,默认运行在873端口。由于配置不当,导致任何人可未授权访问rsync,上传本地文件,下载服务器文件。 rsync未授权访问带来的危害主要有两个:一是造成了严重的 ...
分类:
其他好文 时间:
2020-07-10 15:13:22
阅读次数:
292
安装环境Redis编译安装环境L:Linux(centos7.6)http://download.redis.io/releases/R:Redis(5.0.7)主机信息:部署规划:172.24.77.241(sr1.dj.com):运行Redis-Master&Slave172.24.77.242(sr2.dj.com):运行Redis--Master&Slave172.24.7
分类:
其他好文 时间:
2020-07-10 09:18:21
阅读次数:
66
来源:https://azkaban.readthedocs.io/en/latest/createFlows.html Creating Flows This section covers how to create your Azkaban flows using Azkaban Flow 2. ...
分类:
其他好文 时间:
2020-07-07 18:09:40
阅读次数:
106
It lets you focus on improving the “Chatbot” part of your project by providing readymade code for other background tasks like deploying, creating serv ...
分类:
其他好文 时间:
2020-07-07 10:25:28
阅读次数:
79
菜鸟只能不断地的学习,这个docker本来是运维人员的工作,但是我可能还是要学一学,因为有可能用到,这时你这能自己给自己加油 参考博文:https://www.cnblogs.com/tinywan/p/7985337.html ...
分类:
其他好文 时间:
2020-07-07 00:02:09
阅读次数:
64
请参考链接:https://www.cnblogs.com/wangqiguo/p/5793448.html diff命令单中模式 1. normal模式 diff file1.txt file2.txt 2. context模式 diff file1.txt file2.txt -c 3. Uni ...
分类:
系统相关 时间:
2020-07-04 18:54:47
阅读次数:
94
1. 安装RUST环境 # 参见网址 https://www.rust-lang.org/tools/installcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh选择1 默认安装即可 2. 修改cargo的config文件 ...
分类:
系统相关 时间:
2020-07-02 18:37:37
阅读次数:
104