Skip to content

Instantly share code, notes, and snippets.

View suiahae's full-sized avatar
🏫
Working at school

suiahae

🏫
Working at school
View GitHub Profile
@karuboniru
karuboniru / podman qq setup
Last active October 10, 2021 01:47
Podman QQ
podman run --name qq \
--device /dev/snd --net=host --ipc=host \ # remove net=host if you don't want this
--device=/dev/dri/card0:/dev/dri/card0 \
--device=/dev/dri/renderD128:/dev/dri/renderD128 \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ${XDG_RUNTIME_DIR}/pulse/native:/run/user/0/pulse/native \
-e PULSE_SERVER=unix:/run/user/0/pulse/native \
-v $HOME/containerhome:/root:Z \ # choose a path you like, same for following
-v $HOME/containerhome/TencentFiles:/TencentFiles:Z \
-v $HOME/文档/Fonts:/usr/share/fonts/Windows:Z \ # external fonts, any path in /usr/share/fonts will be fine
@abn
abn / 00-lenovo-x1-5th-gen-thinkfan-setup.md
Last active January 19, 2025 05:20
Fedora thinkfan configuration for Lenovo X1 Carbon (5th Gen)

Thinkfan Configuration Notes

This are notes for configuration thinkfan for Fedora. This configuration procedure was followed on a Lenovo Thinkpad X1 Carbon (5th Gen) running Fedora 25.

Non standard (default) configuration was required for this machine as the default sensors are not available. Eg: /proc/acpi/ibm/thermal does not exist for this model.

An annoted configuration file has been included below. However, there is no guarentee that this will work as-is on every machine.

Installation

dnf -y install thinkfan
@nanpuyue
nanpuyue / fonts-rename.sh
Last active July 1, 2023 12:48
读取字体文件内部名称并以此重命名字体文件文件。
#!/bin/bash
# 南浦月
# [email protected]
# 2013-5-11
# 用法:
# fonts-rename.sh <字体目录>
# fonts-rename.sh <字体文件>