第 26 话
date
May 22, 2023
tags
summary
type
Post
status
Published
slug
series-26
broz 启动无边框的浏览器,方便截图
`npx broz bento.me/duzhi` 启用一个定制成无框的 Electron 实例来打开网站,这样给网站截图时就更干净
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F1da6e358-0987-4701-84ac-8b4639b1fa81%2FUntitled.png%3Fid%3D63bc7608-c8d4-4270-9692-eafc499f1a13%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3Dgr5m45X9qbbsYlauMZd5Cizf7ckG2pReCUL3z-uYncs?table=block&id=63bc7608-c8d4-4270-9692-eafc499f1a13&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2Fb4d7c9d9-ea67-4486-ac7f-57bb63fbf736%2FUntitled.png%3Fid%3D6eb8de9e-0f1c-4a52-bf86-37d9e6c64154%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DFaVb292e7LNTHor3OjP_knycf9jzcBArfnhfQ6WvmLg?table=block&id=6eb8de9e-0f1c-4a52-bf86-37d9e6c64154&cache=v2)
Headroom.js 向下滚动页面时隐藏顶部导航条
在向下滚动阅读文字时,隐藏掉网站的导航栏,让阅读体验更沉浸
Tremor – The React library to build dashboards fast
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F59ec3e59-39ff-4390-a429-e242fe8a2009%2FUntitled.png%3Fid%3Dafdf8739-4b9d-416f-ae8a-87d76e79ea11%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DlBtEg5igjdrsauW-aO46x4UhdNYGLvFhVPqa6jYOBc8?table=block&id=afdf8739-4b9d-416f-ae8a-87d76e79ea11&cache=v2)
UseAnimations 微动效的 Icon 库
![notion image](https://www.notion.so/image/https%3A%2F%2Fgithub.com%2FuseAnimations%2Freact-useanimations%2Fraw%2Fmaster%2Fuseanimations-preview.gif?table=block&id=fb3b8267-7b2a-4df8-a8a8-9b3c772857b4&cache=v2)
个人很喜欢这种微动效,在跟页面元素交互时会更生动有趣
新壁纸:Mac OS X Rancho Cucamonga — Basic Apple Guy
![Made with Apple Frames](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F0bb8ef0c-457a-4231-87fe-db897b6e171a%2FUntitled.png%3Fid%3D8b210cfb-b8a8-4617-9362-48b31656932a%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3Dzd-VrnTupsOqi45W-fE1HmYVPc98m0KJNeDoOmcgOek?table=block&id=8b210cfb-b8a8-4617-9362-48b31656932a&cache=v2)
![Made with shot.so](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F94b9ef16-56d3-460f-a485-712c61857f04%2FUntitled.png%3Fid%3Df576cbb1-d366-4cdb-ac18-2158406bc541%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3Dnv4cGa9enuPaZHKxkLA_hBoeCSQ3jZQ60GSw65dGqdo?table=block&id=f576cbb1-d366-4cdb-ac18-2158406bc541&cache=v2)
Raycast Wallpapers
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F39a6ffaa-5ea6-42cd-bd22-15cb12480388%2FUntitled.png%3Fid%3Dc5551306-d944-4bb7-abb2-98ca2e524226%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DjkyDtdg1w8RCaHoII6zILBiuAFq0qZR8mvObqmG0DV4?table=block&id=c5551306-d944-4bb7-abb2-98ca2e524226&cache=v2)
部署 PocketBase
市面上的 CMS 往往功能都很复杂,我其实只需要一个简单的管理后台,可以动态添加 Table 和 Column,然后有 REST API 可以供前端使用就行了。这样如果要创建一个新的服务(比如 Music),只要在后台新建一个 Table 和相关的 Column(如 Singer, Album, Duration 等等),然后添加相关的内容就行了。而 PocketBase 完美符合需求,而且还是 Single Binary。
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2Feab74a47-18bc-4343-a65b-fadc3b0350f9%2FUntitled.png%3Fid%3D14a26e7f-3a52-43b4-b0a7-a66c91952698%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DTB-MIAPlwRcXvvMoSx2p9zxASM2fj3iwQM5IzTx501w?table=block&id=14a26e7f-3a52-43b4-b0a7-a66c91952698&cache=v2)
不熟悉 Nginx 的配置,使用 Nginx Proxy Manager 来配置反向代理
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F48d4f599-46b1-4724-858d-382a4a7776b9%2FUntitled.png%3Fid%3Dfa2b8cc3-3699-43ba-82df-19ea9c6ebfd0%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DI2JSa9VZ2TRhNQGwRr8007ah5RKuTVXd2VVfYKeUH20?table=block&id=fa2b8cc3-3699-43ba-82df-19ea9c6ebfd0&cache=v2)
过程中由于 Oracel Cloud 的 VPS 的防火墙导致公网无法访问,检查服务器安全组、本机防火墙。最后 StackOverflow 这个帖子 帮我解决了问题。由于 UFW 没能正常工作,所以要去配置 iptables 规则
使用 Cloudinary 做图床
免费版 25GB 存储,25GB 流量/月,25000次图片转换/月。再配置好 uPic 和 Mweb 的 定义图床功能,在 MacOS 上快速的往图床上传图片
cz-git
交互比较好的一款 Git Message 命令行工具,可以少打字、懒得打字 🙈
![notion image](https://www.notion.so/image/https%3A%2F%2Fuser-images.githubusercontent.com%2F40693636%2F188255006-b9df9837-4678-4085-9395-e2905d7ec7de.gif?table=block&id=f22989ad-c10a-4b63-a285-4ae54489931f&cache=v2)
aicommits:
使用 AI 编写 Git Message
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F6f04e044-58c7-4981-b630-567f3e5af07d%2FUntitled.png%3Fid%3D84bf0424-efa7-4aa0-b770-4d1741936742%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DpjbW1RRqxVApt1AZRErn1P8dv-LGo9aYTo3v-XIgcuo?table=block&id=84bf0424-efa7-4aa0-b770-4d1741936742&cache=v2)
笔记工具从 MWeb 到 Obsidian
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F9cbe597b-e9e9-4fe4-b6c2-0f5813234970%2FUntitled.png%3Fid%3Da8878edd-945c-4277-ae41-0f91b4b25d6d%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DevjlAme_qt7Mdm_76vS6HdFadji4Cgd2_XdF8iIhFmQ?table=block&id=a8878edd-945c-4277-ae41-0f91b4b25d6d&cache=v2)
都是基于本地 Markdown 文件的工具,迁移起来没什么成本。稍微配置了一下就对 Obsidian 有点爱不释手,尤其喜欢它界面基本啥都可以自定义。当然笔记工具还是不要太折腾,专注于写内容,帮助自己思考
推荐两个插件(感觉会用得到): - Open in VSCode - Periodic Notes
jspaint: 🎨 在浏览器中运行的微软画图本
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2F6a974c86-9b23-4b02-b433-770cff356765%2FUntitled.png%3Fid%3D30a9f660-b3a0-427b-b00e-ea81d92ce8a1%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3DvrtKeVYBqqk3BYUYZWlrKuT4QRt2b36DJ-auRaVBOmU?table=block&id=30a9f660-b3a0-427b-b00e-ea81d92ce8a1&cache=v2)
ID Software 开挂的天才公司
嵌入 B 站视频链接会自动播放,所以就放封面和链接了
拿到 CSS for JavaScript Developers 的证书
![notion image](https://www.notion.so/image/https%3A%2F%2Ffile.notion.so%2Ff%2Ff%2F91735e6e-abba-45da-8487-1a530eb0ec04%2Fe674165a-b1a6-48d1-afe4-c0a0ea96d39e%2FUntitled.png%3Fid%3D7bb4fc08-dca4-4c7c-b004-e5163ccc4409%26table%3Dblock%26spaceId%3D91735e6e-abba-45da-8487-1a530eb0ec04%26expirationTimestamp%3D1718913600000%26signature%3D4odp7WZPop2Otiwr97vhYiVMvW4Ab2LkAYIVgDFiLB0?table=block&id=7bb4fc08-dca4-4c7c-b004-e5163ccc4409&cache=v2)
感谢 Josh,他的这个课程帮我建立了完整的 CSS 心智模型