13:03 · 2024年9月4日 · 周三 × 如何在受限网络情况下使用 SSH 协议推拉 GitHub 代码?目前使用的最方便的方法:在 ~/.ssh/config 中增加截图中的配置测试方法:git clone git@github.com:ccbikai/Sink.git
12:03 · 2024年9月4日 · 周三 × 本地开发的时候经常要调用一些网络不通的 APINode 中的 fetch 不会自动读取环境变量中的 http_proxy, 今天发现一个简单的方法,可以让 node fetch 读取环境变量中的 http_proxy 👍 3
19:31 · 2024年9月2日 · 周一 在 React Email 和 Vue Email 之后有又看到一个基于 Tailwind CSS 的 Email模板工具 Maizzle但是新的模板语法又会增加一点点学习成本,还是保持 React Email + Tailwind 插件吧理想状态是:贴一张图给 AI,让 AI 按 React Email 标准直接生成https://s.mt.ci/maizzle Maizzle Maizzle - Quickly build HTML emails with Tailwind CSS Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS and advanced, email-specific post-processing. 👍 1
17:02 · 2024年9月1日 · 周日 × VPS 替代 Vercel 目前最舒服的方案:1. VPS 安装 Dokploy 躲在 Cloudflare 后面用于计算和数据库2. 通过 GitHub Actions 将代码打包成 Docker 镜像存在 GitHub 容器注册表3. Dokploy 运行 Docker 镜像并绑定域名,可在镜像打包完成通过 Webhook 触发更新4. 定时备份数据库到 R2(S3),保存一个月 👍 3
09:28 · 2024年9月1日 · 周日 最近尝试把部署在 Cloudfalre, Vercel, Netlify 上的项目迁移到自己的 VPS 通过 Docker 运行,但是默认打包出来的镜像有 1G 多。花时间优化了一下,降到了 135 MB。示例项目是一个 Vite SSR 项目(Astro),有兴趣的可以看看https://chi.miantiao.me/posts/vite-ssr-docker-image-minimal-build/ chi.miantiao.me Vite SSR 项目 Docker 镜像最小化打包方案 | 面条实验室 👍 4 ❤️ 1
18:02 · 2024年8月28日 · 周三 × shell.how 可以解释 shell 命令行是怎么运行的,不过背后的工具被 Amazon 收购后就归档了https://s.mt.ci/shell-how 👍 3
12:03 · 2024年8月24日 · 周六 × 看到 @VersunPan 推荐 Terminus (一个 Homelab 管理系统), 看了下介绍,架构很吸引人,而且 UI 也很棒,还内置了漂亮的应用,准备在攒的新设备上试一下。已经收录到 Awesome Homelabhttps://www.awesome-homelab.com/products/beclab/Terminus 👍 3
12:33 · 2024年8月21日 · 周三 Landingfolio 精选了 1000 个 Landing Page, 如果没啥灵感,可以去看看https://s.mt.ci/landingfolio Landingfolio The Best Landing Page Design Inspiration, Templates and More Looking for landing page inspiration? We've got you covered. Landingfolio features the best landing page designs, templates, component and more on the web. Get inspired by real landing page examples. 👍 1
23:06 · 2024年8月20日 · 周二 × 97 个免费 Tailwind Components,设计还行,可直接复制粘贴使用https://s.mt.ci/tailbits-components
08:22 · 2024年8月18日 · 周日 Vercel 的 Edge 函数支持自定义部署区域,再通过 DoH 查询 DNS 记录就可以获取到 DNS 在全球各地的解析结果。于是我用这个特性搞了 DNS.Surf , 但是 Vercel Edge 函数计费很迷很容易把免费额度用完,干脆直接开源了吧。有兴趣的可以自己部署https://github.com/ccbikai/DNS.Surf GitHub GitHub - ccbikai/DNS.Surf: Querying DNS Resolution Results in Different Regions Worldwide. Querying DNS Resolution Results in Different Regions Worldwide. - ccbikai/DNS.Surf 👍 2
19:22 · 2024年8月16日 · 周五 上周用调用模型生成内容,HTML 偷懒直接扔给模型,浪费不少钱。这周用 sanitize-html 净化 HTML 后,再用 turndown 转成 Markdown,能省一点是一点。
11:02 · 2024年8月16日 · 周五 × 之前看到的 Landing Page 都是花里胡哨的风格,这次看到一个 shacdcn-ui 风格的 ConvertFast UI。开源的,分享一下:https://s.mt.ci/convert-fast-ui 👍 3
09:23 · 2024年8月9日 · 周五 Resend 马上要发布一个叫 Forward 的产品。这个 Landing Page 设计的很酷,很有极客风格https://s.mt.ci/resend-forward Resend Resend Forward An entire week of new feature announcements that will change the way you communicate with your users. 👍 2