02 2022 档案
摘要:题目: 三个瓶子12L,7L,5L,其中12L水装满,另外两个瓶子为空,问怎样在5L瓶子中获取4L水,水不能丢弃,即三个瓶子中的水加总要等于12 答案:
阅读全文
摘要:指定服务器, 定时执行 https://cloud.tencent.com/developer/article/1185186 http://wzktravel.github.io/2016/08/23/How-to-pass-in-password-to-pg-dump/ 配置.pg_pass 就
阅读全文
摘要:参考: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4957 https://stackoverflow.com/questions/16526783/python-subprocess-too-many-open-files
阅读全文
摘要:改动的源码: # odoo\addons\web\controllers\main.py # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import
阅读全文
摘要:在配置fail2ban的时候遇到很多坑,现在记录下 先参考一篇博客的教程: https://atjason.com/IT/ss_fail2ban.html 可以使用echo命令来模拟日志的写入,不需要搭建日志服务 echo '2016-07-17 18:05:03 ERROR can not par
阅读全文
摘要:源码: 如果用户多次登录错误, 则登录IP会被封一段时间 def _on_login_cooldown(self, failures, previous): """ Decides whether the user trying to log in is currently "on cooldown
阅读全文