文章代码源于这里:https://www.zhuxianfei.com/python/47350.html。
mosquitto not authorised
Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers.
The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.
The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients.
最近需要用mqtt来实现消息处理,在windows上安装Mosquitto之后,不使用用户名密码提示connection refused: not authorised。结果添加用户名密码之后还是提示同样的错误。
又见劫持
昨天dujun问我的证书是不是到期了,查看了一下并没有,已经更新到23年一月份了。由于没有自动将http跳转到https之前劫持的事情倒是也见过。
继续谈自建Gravatar镜像
再谈自建Gravatar镜像
今天上午建了一个gravatar镜像服务,下午看了一下oss里面的文件,乱七八糟什么东西都有。dujun说的很对,一旦公开服务了可能会发生各种事情。
也谈自建Gravatar镜像
随便搜一下,网上搭建gravatar镜像的文章还是挺多的,基本都是基于cdn溯源来做的。当然,国内也有很多其他的镜像服务器,例如cravatar.cn loli.net等。常用额基本就是下面这几个:
V2EX | https://cdn.v2ex.com/gravatar/ |
极客族 | https://sdn.geekzu.org/avatar/ |
loli | https://gravatar.loli.net/avatar/ |
inwao | https://gravatar.inwao.com/avat |
Jetpack 防火墙 引发的血案
Python3 读取Chrome cookie
网上搜一下,读取cookie的基本都是这份代码。我也忘了是从那里抄来的了,这里贴一下 ,对于最新的chrome需要修改下路径:
# chrome 96 版本以下 # filename = os.path.join(os.environ['USERPROFILE'], r'AppData\Local\Google\Chrome\User Data\default\Cookies') # chrome96 版本以上 # filename = os.path.join(os.environ['USERPROFILE'], r'AppData\Local\Google\Chrome\User Data\default\Network\Cookies')