You can also check the traditional chinese version (中文版). Just discovered that my wiki was taken down again. From the access logs, it looks like a bot scanning through proxies. This time, relying only on the Caddy Defender Plugin wasn’t enough. Suddenly thought that for this kind of attack,...
tl;dr: Use this shell command in my crontab: @reboot sh -c "while ! systemctl status network-online.target > /dev/null; do sleep 1; done; exec /foo/bar.sh" The problem I've encountered is, sometimes /foo/bar.sh would failed at boot. After digging into details, I found it's because the network...
Flutter in CLI (mainly flutter run) cannot auto hot reload by itself in Linux, so we need to setup some commands to trigger it. The basic idea is to use inotifywait in inotify-tools (which is already in Debian/Ubuntu's APT repository): inotifywait -e create,delete,modify -mr android/ lib/ | awk...
ocserv is an open-source VPN software compatible to many proprietary solutions including Cisco AnyConnect, so I use it for my iOS devices. Recently I noticed that my ocserv service was not working after upgrading to Ubuntu 22.04, and got this message: [Tue Sep 26 17:35:27 2023] traps:...
I want to stream my logs on my home RPi3b to a Slack channel for my vacation side project. With some searches I found an article including a simple shell script to implement this function: "Stream Any Log File to Slack Using curl". However it's a little tricky as the script replaces " to ' as...
I just got curious during handling the invoice of AWS. My gut feeling is that all inbound traffic are free (mostly), for example, you can see this in "Amazon EC2 On-Demand Pricing": Data Transfer IN To Amazon EC2 From Internet All data transfer in $0.00 per GB But if you're dealing with inbound...
Open build services like Launchpad PPA usually forbid internet connections during building, therefore it's impossible to download dependencies during building, and we need to include all dependencies into the source package. Two things need to be done for building Golang softwares on no-internet...
Just add Amazon CloudFront to this blog service.
Amazon EC2 outbound traffic is quite expensive, but CloudFront provides some free bandwidth, and traffic between Amazon EC2 instances and CloudFront is free, it's a strong incentive to use CloudFront...
Okay, apart from my Chinese blog, I would like to create another blog, and this time it would be in English.
It looks like many plugins need to be installed for easier writing, the default WordPress environment is not so friendly for me...