loading
Custom CSS for Firefox

Tools

2020.08.01

Custom CSS for Firefox

Firefox allows users to create and include user stylesheets to modify every single web page as necessary or even modify the UI of Firefox itself. Let's see how to do it!

Enable DoH on MacOS with cloudflared

Tools

2020.06.15

Enable DoH on MacOS with cloudflared

Cloudflared is an open source golang DNS over HTTPS client developed by Cloudflare, which allow us quick start DoH for MacOS system.

Get Let's Encrypt certs with HAProxy and Nginx

Tutorials / Linux Notes

2020.05.19

Get Let's Encrypt certs with HAProxy and Nginx

I have used Nginx virtual host to get Let's Encrypt SSL certificates, it's easy and straightforward. However, when HAProxy was added in front of Nginx, some issues arises. So let's see how to deal with it.

Homebrew 替换国内镜像源

Tutorials / Tools

2020.05.15

Homebrew 替换国内镜像源

在国内使用 brew 的速度真心不敢恭维,尤其是在 brew update 的时候经常卡住不动。换用 brew update --verbose 你会发现是 git fetch 的速度慢导致的,所以还是要看本地网络连接 GitHub 的速度咯。换个镜像源救救急。

Automatically purge Cloudflare cache after Netlify build

Tutorials / Web Notes

2020.05.15

Automatically purge Cloudflare cache after Netlify build

Although Netlify provides CDN service, Cloudflare has more edge locations around the world. What's more, Netlify hosted sites are hardly reached in China, while Cloudflare still lives. With this in mind, I decided to switch to Cloudflare for load balancing. However, pushing post/file changes to Netlify did not clear Cloudflare's cache, that's a mess. So, I'm going to use Cloudflare's API together with Netlify's outgoing webhook to make them in the same pace.

Setup h5ai with Nginx on Ubuntu server

Tutorials / Linux Notes

2020.05.07

Setup h5ai with Nginx on Ubuntu server

h5ai is a modern file indexer for HTTP web servers with focus on your files. Directories are displayed in a appealing way and browsing them is enhanced by different views, a breadcrumb and a tree overview.

Basics of load balancing with HAProxy

Tutorials / Linux Notes

2020.04.05

Basics of load balancing with HAProxy

HAProxy is free, open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications. Its most common use is to improve the performance and reliability of a server environment by distributing the workload across multiple servers (e.g. web, application, database).

Mac 重置小记

小日子 / Tools

2020.01.17

Mac 重置小记

要重装系统的想法一经冒出来,就挥之不去。虽已多次暗示自己重装挺麻烦的,可就是劝不住心底另一个自己,既如此那就动手把 Mac 归置归置一下吧。

Setup an IKEv2 server with StrongSwan

Tutorials / Linux Notes

2020.01.09

Setup an IKEv2 server with StrongSwan

IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunneling between the server and client. In IKEv2 implementations, IPSec provides encryption for the network traffic. IKEv2 is natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary, and it handles client hiccups quite smoothly.