loading
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).

Brief git Cheat Sheet

Tutorials

2020.04.02

Brief git Cheat Sheet

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. This cheat sheet summarizes commonly used Git command line instructions for quick reference.

Mac 重置小记

小日子 / Tools

2020.01.17

Mac 重置小记

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