fabric备忘

系统部署环境是一件很乏味的工作,系统管理也是,fabric让这一切更加自动化,何乐而不为呢,于是决定学好这个工具。 ###What is it? Simple, Pythonic remote execution and deployment. ###f

写给大家看的设计书

摘自Robin Williams 《写给大家看的设计书》下载地址** ####以下是读书时的摘记。 我们的前提很老套,还是那句格言:知识就是力量。 复杂的设计原理在

推荐书籍

常有朋友说书近来荒,偏偏你总有好运能邂逅好书,于是让我推荐些。 读的书不多,遇到的好书又不算少,一时想和盘托出,总无奈记性不好,于是翻箱倒柜,

黑客与画家

摘自Paul Graham《黑客与画家》** 程序写出来是给人看的,附带能在机器上运行。 守口如瓶”的真正缺点在于,你从此无法享受讨论带来的好处了

每天写些东西

我积攒这种耐心的方式,是用感受来弥补事件的贫瘠。在一定程度上,我相信这不是渡过有意义人生的一种方式。它是渡过有意义人生的唯一方式。我相信是一

送你一颗子弹

摘自刘瑜《送你一颗子弹》** 我其实并不孤僻,简直可以说开朗活泼,但大多时候我很懒,懒得经营一个关系,还有一些时候,就是爱自由,觉得任何一种关

readme 从 devtool import("https://cdn.jsdelivr.net/npm/openai@4.47.1/+esm") 观察加载了哪些js文件 1 2 3 4 5 https://cdn.jsdelivr.net/npm/openai@4.47.1/+esm https://cdn.jsdelivr.net/npm/openai@4.47.1/_shims/auto/runtime/+esm https://cdn.jsdelivr.net/npm/openai@4.47.1/error/+esm https://cdn.jsdelivr.net/npm/openai@4.47.1/core/+esm https://cdn.jsdelivr.net/npm/openai@4.47.1/streaming/+esm 下载 https://cdn.jsdelivr.net/npm/openai@4.47.1/+esm 为 openai.js 修改其中的模块地址 搜索当前目录并替代(排除 readme.md) 1 2 3 4 5 // /npm/openai@4.47.1/+esm -> openai.js /npm/openai@4.47.1/_shims/auto/runtime/+esm -> /post/img/openai-4-47-1/runtime.js /npm/openai@4.47.1/error/+esm -> /post/img/openai-4-47-1/error.js /npm/openai@4.47.1/core/+esm -> /post/img/openai-4-47-1/core.js

HA token 源码出处 jwt genertate: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/auth/__init__.py#L373 jwt validate: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/auth/__init__.py#L390 搜索 https://github.com/home-assistant/home-assistant/search?q=async_validate_access_token&unscoped_q=async_validate_access_token https://github.com/home-assistant/home-assistant/blob/3231e22ddf2fdd65a36028bec5f87d8e7032118b/homeassistant/components/http/auth.py 简单的true false https://github.com/home-assistant/home-assistant/blob/3231e22ddf2fdd65a36028bec5f87d8e7032118b/homeassistant/components/http/auth.py#L74 https://github.com/home-assistant/home-assistant/blob/3231e22ddf2fdd65a36028bec5f87d8e7032118b/homeassistant/components/websocket_api/auth.py 弄懂 refresh_token https://github.com/home-assistant/home-assistant/blob/3231e22ddf2fdd65a36028bec5f87d8e7032118b/homeassistant/components/websocket_api/auth.py#L70 refresh_token = await self.async_get_refresh_token( cast(str, unverif_claims.get("iss")) ) https://github.com/home-assistant/home-assistant/blob/26b63e73ad1fb6826d52179b589a9578782ab6b6/homeassistant/auth/__init__.py#L354

The big idea is messaging 这是目前的第三个大版本。 从CodeLab Adapter第一个原型到第三个版本,经历了2年有余的时间。 这期间,在软件工程上,Alan