RSSAmplifier

Blog

Blogs of Maoyin Sun

my blog

maoyin.euRSS feed ↗6 posts

Latest posts

Monitoring Infrastructure Deployment

Note: This is a collection of notes taken during improvements on the observability of my services. Table of Contents Fundamental Components Prometheus Alertmanager Loki Grafana Data Collectors Promtail node-exporter cAdvisor blackbox-exporter ping-exporter Other Exporters on specific devices Summary In order to monitor the running status of various services on the servers (as well as local…

Quines in LLM

I suddenly have interest in writing a quine in LLM. First we need to define a “quine” in LLM. A quine is usually a program that outputs its own source code. Under the context of LLM, we can define a quine as an input (prompt) into the LLM that outputs itself. However the usual target, “writing a quine as short as possible”, is too easy. I can simply let ChatGPT echo my input . From searching the…

我们结婚了!We are married! Wir sind verheiratet! Ci siamo sposati!

我很高兴地告诉大家, Luby 和 我 现在已经结婚了。 I am happy to share with you that Luby and I are now married. Ich freue mich, Ihnen mitteilen zu können, dass Luby und ich jetzt verheiratet sind. Sono felice di condividere con voi che Luby ed io siamo ora sposati.

Docker with Wireguard for routing between Prometheus and exporters

Table of Contents Why bother Routing the traffic between containers Create a bridging subnet with a fixed IP range Add a route for the Prometheus container to the bridging subnet Add a rule allowing traffic from the bridging subnet to the Wireguard subnet Misc Let exporters listen to the subnet Start Docker daemon and Prometheus after Wireguard Results Why bother Using Docker with Wireguard is…

fontconfig 很重要

在意大利新装了一个 Linux 系统,结果发现在浏览器里没有特殊样式的情况下“一”有时会以黑体渲染,有时会以宋体渲染。我的第一反应是可能其中一个“一”是什么奇怪的 unicode 字符,然而不是。检查了一下 locale、桌面环境和浏览器字体设置也没看出什么。一个稳定可复现的例子是在我这里访问: data:text/html;charset=utf8,<!DOCTYPE html><html%20lang="en"%20contenteditable><head><meta charset="utf-8"></head><body>%E8%A2%AB%E4%B8%80x%E4%B8%80%E4%B8%80%E4%BA%8C%E4%B8%80</body></html> 于是在 TUNA…

Cleaning my Archlinux

I installed Blackarch when I first set up my Archlinux system and have been using it for years. However, having Blackarch alongside the host system sometimes disrupts the rolling updates of the system. This can result in package name conflicts, duplicates, packages which are in my system but not in any of the mirrors, or packages that are not compatible with the system. Additionally, Blackarch…