Skip to content

Instantly share code, notes, and snippets.

View LogCreative's full-sized avatar

LogCreative LogCreative

View GitHub Profile
@LogCreative
LogCreative / rm_dummy_files.sh
Created November 21, 2025 01:09
remove dummy files starting with ._ or .DS_Store
find . \( -name '.DS_Store' -or -name '._*' \) -delete
@LogCreative
LogCreative / refresh-mac-dns.sh
Created July 11, 2025 00:47
Refresh the dns cache of mac, and take into effect after the next reconnection
sudo dscacheutil -flushcache
@LogCreative
LogCreative / nvidia-5070-ti-llm-env-setup.md
Last active July 29, 2025 08:51
Setup LLM environment for Nvidia 5070Ti

The original post in Simplified Chinese could be viewed here. This is the auto-translated version.

Environment Setup

For AI research, using the Linux operating system is undoubtedly the best choice. However, to avoid interfering with my gaming, I installed a Windows 11-Ubuntu 24.10 dual-boot system following this guide. On the Ubuntu system, I used the frp tool to enable remote SSH access within the LAN (this is managed via systemctl to enable auto-start; for more details, you can refer to this blog post).

Graphics Driver

Let's get started with the first challenge: the graphics driver. Since this GPU model is too new, it is currently not possible to obtain the driver through Ubuntu'

@LogCreative
LogCreative / 1-install-nvidia-driver-5070ti.sh
Last active October 6, 2025 16:46
Install Nvidia Driver for 5070 Ti on Ubuntu 24.04 (2025/03/09)
sudo apt install build-essential
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
# goto tty3 by ctrl+alt+F3 now!
sudo systemctl stop gdm3
sudo apt install nvidia-driver-570
# choose MIT license one, the prioritory one can not detect 5070ti now!
reboot
@LogCreative
LogCreative / curl-unicode.sh
Created October 7, 2024 14:23
display the unicode characters from curl
echo -e `curl http://...`
@LogCreative
LogCreative / lualatex_mac_font.sh
Last active November 19, 2025 06:48
Fix the lualatex fontdir when updating macOS
# Reference: https://mp.weixin.qq.com/s/3Jz8jZPE3wWPO6jtadtcnA
tlmgr conf texmf OSFONTDIR $HOME/Library/Fonts:/System/Library/Fonts:/Library/Fonts:/System/Library/AssetsV2/com_apple_MobileAsset_Font8
@LogCreative
LogCreative / installtmux.md
Last active May 24, 2024 12:08
Install tmux by python
conda install -c conda-forge tmux

If Moonlight returns 521 error, update not only the driver itself, but also update the Geforce Experience as well.