Skip to content

Instantly share code, notes, and snippets.

View LogCreative's full-sized avatar

LogCreative LogCreative

View GitHub Profile
@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 April 16, 2025 15:12
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 July 3, 2025 04:22
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
Created July 8, 2024 04:06
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_Font7
@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.

@LogCreative
LogCreative / hkrpg.playmap
Last active July 3, 2023 03:42
macOS Honkai: Star Rail (v1.1) - PlayCover Method
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleIdentifier</key>
<string>com.miHoYo.hkrpg</string>
<key>buttonModels</key>
<array>
<dict>
<key>keyCode</key>