折腾些什么玩意。

群组 @htmlzone 作者 @ccbikai
分享一个 #开源 工具 lume

可以在 Apple Silicon 上以接近原生的性能创建、运行和管理 macOS 及 Linux 虚拟机。

使用方式和 ollama / docker 很像,比如运行一个 macOS 虚拟机只需要一个命令行。

唯一的遗憾是镜像太少,目前都还没有 debian 镜像

https://index.html.zone/dev/lume
使用 Axiom 给 Traefik 的 accesslog 搞了个大盘

记录下过程:

1、升级 Traefik 版本到 3.2.0 以上,才可以支持 accesslog 的 otlp 插件。
a. Dokploy 的 Traefik 默认是 3.1.2,需要修改安装脚本升级到 3.2.0 以上。

2、在 Axiom 创建两个 Dataset: dokploy-log 和 dokploy-trace , 并创建 API Key。

3、修改 Traefik 配置文件 `/etc/dokploy/traefik/traefik.yml`:

experimental:
  otlpLogs: true

accesslog:
  otlp:
    http:
      endpoint: https://api.axiom.co
      headers:
        authorization: Bearer xaat-miantiao-replace-me
        x-axiom-dataset: dokploy-log
      tls:
        insecureSkipVerify: true

tracing:
  otlp:
    http:
      endpoint: https://api.axiom.co
      headers:
        authorization: Bearer xaat-miantiao-replace-me
        x-axiom-dataset: dokploy-trace
      tls:
        insecureSkipVerify: true


4、如果使用了 Cloudlfare 代理, 给 websecure 和 web 下面增加配置,可以识别真实 IP。

forwardedHeaders:
  trustedIPs:
    # Cloudflare
    - "173.245.48.0/20"
    - "103.21.244.0/22"
    - "103.22.200.0/22"
    - "103.31.4.0/22"
    - "141.101.64.0/18"
    - "108.162.192.0/18"
    - "190.93.240.0/20"
    - "188.114.96.0/20"
    - "197.234.240.0/22"
    - "198.41.128.0/17"
    - "162.158.0.0/15"
    - "104.16.0.0/13"
    - "104.24.0.0/14"
    - "172.64.0.0/13"
    - "131.0.72.0/22"
    - "2400:cb00::/32"
    - "2606:4700::/32"
    - "2803:f800::/32"
    - "2405:b500::/32"
    - "2405:8100::/32"
    - "2a06:98c0::/29"
    - "2c0f:f248::/32"


5、重启 Traefik 后在 Axiom 就可以看见实时日志,Trace 的大盘 Axiom 集成了,Log 的需要我们自己创建,由于无法导出现有大盘,需要使用下面的语句手动配置:

# Request
['dokploy-log']
| summarize count() by bin_auto(_time), ['attributes.RequestHost']
| limit 20

# Duration
['dokploy-log']
| summarize stdev(['attributes.Duration']) by bin_auto(_time), ['attributes.RequestHost']
| limit 20

# Host
['dokploy-log']
| summarize count() by bin_auto(_time), ['attributes.RequestHost']
| limit 20

# StatusCode
['dokploy-log']
| summarize count() by bin_auto(_time), ['attributes.DownstreamStatus']
| limit 20

# Method IP 同上

# Path
['dokploy-log']
| summarize count() by bin_auto(_time), ['attributes.RequestHost'], ['attributes.RequestPath']
| order by ['count_'] desc
| limit 20

# 404
['dokploy-log']
| where ['attributes.DownstreamStatus'] == 404
| summarize count() by bin_auto(_time), ['attributes.RequestHost'], ['attributes.RequestPath']
| order by ['count_'] desc
| limit 20

# 50x
['dokploy-log']
| where ['attributes.DownstreamStatus'] >= 500
| summarize count() by bin_auto(_time), ['attributes.RequestHost'], ['attributes.RequestPath']
| order by ['count_'] desc
| limit 20

# Live
['dokploy-log']
又出现一个基于 VSCode 的 AI 编辑器 Trae

可免费使用 Claude 3.5 和 GPT-4o 模型。

支持从 Cursor 和 VSCode 导入现有配置。

https://index.html.zone/ai/trae-ai
最近使用 GitHub #Actions 打包 #Docker 镜像后存储在 GitHub #Packages

私有仓库的 Packages 后面会收费,为了避免不必要的指出,只保留了最新的几个版本

方法也很简单,给 Workflow 加一个 Action 就行

https://404.li/delete-versions
HTTP 状态码里边有个 451,意思是“因法律原因不可用”

#TikTok
说到 #VPS 还有一个推荐服务商 V.PS

对,他们的域名就是 V.PSIP.SBDNS.SB 都是他们的。

出过一些传家宝产品,线路不错,可以关注下

https://index.html.zone/cloud-service/vps
推荐一个断断续续用了 10 年的 #VPS 服务商 Vultr

可以按小时计费,方便临时测试一些程序,或者编译固件。

而且还支持免费的 BGP sessions, AS215507 就跑在它上边。

如果你想跑一些生产业务,稳定性不错,十分推荐。

可以申请 Free Tier Program,我申请过,运气不错通过了

https://index.html.zone/cloud-service/vultr
最近一直在使用 Jina #AI Reader 将 URL 转成简洁、LLM 友好的文本

最近他们开源了他们的小模型 ReaderLM-v2 ,有兴趣的朋友可以本地跑一下试试效果

https://index.html.zone/ai/jina-ai
在发营销邮件的时候,邮件不进垃圾箱已经很不容易。

想让用户点击邮件中的链接,那简单漂亮的 UI 必不可少。

非设计出身想快速做出漂亮的电子邮件模板,我推荐 Maily. to

使用可视化方式编辑邮件,而且还是开源的。

https://index.html.zone/dev/maily-to
Raphael AI 基于 Flux.1 模型的免费 AI 图片生成工具

目前除了一个 Cloudflare Turnstile 验证码外,无其他限制,无需注册登录。

https://index.html.zone/ai/raphael
Hoarder 已经 11k Star 了,但是他们最近收到了商标流氓的骚扰。

让他们删除所有代码和内容,并且把域名无偿转让。

想问问大伙,你们遇到这种情况怎么处理的?

https://404.li/hoarder-being-stolen
Scira - 一个极简的开源 AI 搜索引擎

支持实时搜索 、学术论文分析 、社交媒体洞察 、YouTube 搜索 、航班追踪 、电影搜索,功能倒是挺多。

但是目前只支持 xAI 的 Grok 还不能换模型,不过用的 Vercel SDK 支持下 DeepSeek 应该很容易

https://index.html.zone/ai/scira
#工具推荐 Zipic - 精致的图片压缩工具

使用了一年多,是一个把图片压缩做到极致的小工具。

有个好处是多次压缩不会导致图片质量很差。

免费版本每天可压缩 25 张图片,如果是内容创作者可以考虑购买付费版本

https://index.html.zone/productivity/zipic
之前看到 Google 团队要弃坑 #Flutter 了, 现在又看到使用 #Swift UI 写安卓应用

果然 App 跨端是个经久不衰的话题

https://404.li/skip-tools
嘟友都在买美国股票,我有个想法:去小红书教美国人买中国股票。

大家看下是否可行?
又看见一个清新漂亮的个人主页 Ned. im

这个作者也挺有趣,把人生经历当 Changelog 来写

https://404.li/ned
Back to Top 1px