Skip to content

Instantly share code, notes, and snippets.

View hibobmaster's full-sized avatar
🎯
working full-time

BobMaster hibobmaster

🎯
working full-time
View GitHub Profile
@ukazap
ukazap / chinese-input-fedora-35-kde.md
Last active August 13, 2023 12:50
How to set up Chinese input methods on Fedora 35 (KDE)

How to set up Chinese input methods on Fedora 35 (KDE)

Source: https://yanqiyu.info/2020/08/30/fcitx5-fedora/

Install fcitx5, fcitx5 configuration tool, Pinyin & Zhuyin input method engines

sudo dnf install -y fcitx5 kcm-fcitx5 fcitx5-chinese-addons fcitx5-table-extra fcitx5-zhuyin
@matusnovak
matusnovak / README.md
Last active March 22, 2024 08:31
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
@lanceliao
lanceliao / samba-openwrt.md
Last active May 12, 2022 18:28
Samba on OpenWrt 配置

##安装

opkg update && opkg install samba luci-app-samba

##配置

匿名登录

#/etc/config/samba
config sambashare
@gitaarik
gitaarik / git_submodules.md
Last active May 25, 2024 06:48
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@denji
denji / nginx-tuning.md
Last active May 24, 2024 10:14
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.