Mainly focus on technology, reading, excerpts, miscellaneous, article review, tool sharing, workflow, inspiration, English learning, attention management, deep work and other directions
Simple bash to generate template markdown file for the initial blog post
When you’re using markdown to write your blog, you can use the following template to generate a new markdown file, you may use some template like this to generate a new markdown file:
Adding search to zola blog with meilisearch deployed on Mogenius
I deployed Meilisearch on my VPS a couple of days ago, but I’m panic, because I mess up my VPS a lot, and I rebuild my VPS a lot, so it’s not a stable environment to deploy meilisearch. So I started to browse free-for-dev, see if there are some good(and cheap) solutions for me. I saw this:
mogenius - A code-to-cloud platform to easily deploy any service, from static website to advanced microservice architectures. mogenius comes with fully managed hyper-scaling cloud resources, Kubernetes, CI/CD and security from Cloudflare. Free tier includes 1 CPU core, 2 GB RAM, 10 GB traffic, 4 GB SSD persistent storage.
The main point:
- Free tier includes 1 CPU core, 2 GB RAM, 10 GB traffic, 4 GB SSD persistent storage.
- from static website to advanced microservice architectures.
I think it’s enough for my blog’s search index.
Now, I'm in IndieWeb?
Since I saw the concept of IndieWeb last year, I’ve been wanting to support it on my Zola blog. Before that my blog had never had a commenting system, and this time with Webmention I was finally able to get a static blog to display responses to articles on the web in plain html. I will document how I did it in this article.
Wiki Links to Markdown Links for VSCode
Recently, I migrated my Wiki to
Zola. Zola does not support relative internal links,
it only support @/xxx.md
internal link format. This is a bit painful, I posted
a
feature request
to Zola. But for now, I will use my own edited version of Zola, this change will
allow me to use /content/xxx.md
internal link format.
Caddy File Server Browser with URL Scheme
Copy the Template to your local caddy config folder.
Makefile Template
Common Makefile Template.
Mastdon Development Setup
Also see dev/setup admin/install
Mini Reset CSS
Nodejs Monorepo
Use changesets as monorepo mananger.
Rclone Setup
Rclone setup.
FileBrowser Setup
File Browser Setup.
Bazarr Setup
Bazarr setup.
Caddy2 Setup for Debian
Debian Server Setup
For linux common commands, see 开发技巧收藏
How to check if there are uncommited changes in Github Actions?
Check if there are uncommited changes in Github Actions workflow file.
Postgres Setup for Debian
Postgres Setup for Debian.
qBittorrent setup for Debian
Because there is no official ppa of qBittorrent for debian, so we use a third party service - qbittorrent-nox-static to compile qb.
Shadowsocks Rust Setup for Debian
Shadowsocks Repo: https://github.com/shadowsocks/shadowsocks-rust
Setup rust first: Debian 初始化 Rust 环境
A new Gatsby theme [Timeline] - Show your all posts, tweets, instagram posts into one
Don’t you think there are too many different personal profile for us? Like twitter, instagram, facebook, blog, etc, So do I, I suppose there is an elegant site to show all my creative work, that’s the new gatsby theme Timeline, a Gatsby theme, you can use it to show your all posts, tweets, instagram posts etc into one blog. In my opinion, this is a real personal home.
Checkout my blog: https://blog.owenyoung.com/
Open BBR for Debian
Enable TCP BBR on Debian.
Install PHP 8.0 On CentOS 7 / RHEL 7
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y --enablerepo=remi-php80 php php-cli
php -v
Metube Setup
Metube Setup with docker.
Nginx Setup for Debian
Install latest stable nginx for debian
Also see here
Nodejs Setup for Debian
Install🔗
See also here
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
Peertube Setup with Caddy Server
Peertube is an activityPub-federated video streaming platform using P2P directly in your web browser.
Radarr Setup
Sonarr Setup
Before setup sonarr, you should setup qBittorrent setup for Debian