Skip to content

Instantly share code, notes, and snippets.

View LogCreative's full-sized avatar

LogCreative LogCreative

View GitHub Profile
@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 May 8, 2025 15:32
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>
@LogCreative
LogCreative / mac-vpn-pptp.md
Last active March 19, 2023 06:26
MacOS Ventura Connects VPN over PPTP Protocol

MacOS Ventura Connects VPN over PPTP Protocol

Since macOS 10.15, PPTP support has been dropped and no longer available. But I have to connect to a server throught VPN that only supports PPTP or L2TP without IPSec (No shared key or credentials). I tried the following ways:

  • There is no selection of PPTP in the Settings.
  • vpn-pptp-macos but PPTP.ppp has already been removed.
  • VPN Tracker 365 is expensive.
  • Activate VPN on the router if possible.
  • Use a Windows machine as the mobile hotspot. First start the mobile hotspot, connect the macbook to this hotspot. Then start the VPN on the Windows machine. Then in the router settings, in the VPN Connection Properities, enable Internet connection sharing to allow other network users to connect through this computer's Internet connection, select the adapter corresponding to the hotspot. You may need to repeat this process when restarting the Windows