/images/avatar.png

mrchi

在树莓派上安装HAP-NodeJS

HAP-NodeJS是国外大神逆向了Apple的HomeKit Application Protocol协议后(HomeKit开发不对个人开发者开放),使用node.js实现的HomeKit Accessory Server,在树莓派上安装后,能够以树莓派作为Bridge,将自定义的设备接入Apple HomeKit,进而使用Siri控制设备,无需MFi认证。

在树莓派上安装OpenWrt

认识 OpenWrt 来自官网的介绍 The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers,

在Jupyter中执行asyncio代码

问题 在 Jupyter 中,如果执行 asyncio 的代码,例如 1 2 3 4 5 6 7 8 9 from requests_html import AsyncHTMLSession session = AsyncHTMLSession() async def get_google(): r = await session.get('https://google.com/') return r session.run(get_google) 会报错: 1 RuntimeError: This event loop is already running 解决 具体原因是因为 asyncio 不允许嵌套

SSH端口转发

SSH 端口转发又称为 SSH 隧道,是通过 SSH 协议建立隧道,实现本地主机和远程主机的端口绑定,数据由 SSH 协议进行加密传输。