Skip to content

Instantly share code, notes, and snippets.

View vinesmsuic's full-sized avatar
💸
Fly, My Wings

Max Ku vinesmsuic

💸
Fly, My Wings
View GitHub Profile
@vinesmsuic
vinesmsuic / git-lfs-install.md
Created April 1, 2025 21:22 — forked from pourmand1376/git-lfs-install.md
Single User Installation of Git-LFS without sudo

I wanted to install GIT-Lfs on my user account without access to server root account. I write this to my future self.

  1. Download tar.gz file from git-lfs website.
wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz

2.Untar it

tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz
@vinesmsuic
vinesmsuic / readme.md
Created March 14, 2025 08:37
nvcc not found but installed
# using CUDA 12.4
export PATH="/usr/local/cuda-12.4/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH"
export CUDA_PATH="/usr/local/cuda-12.4"
@vinesmsuic
vinesmsuic / readme.md
Created March 14, 2025 07:29
Fixing Errors were encountered while processing: tex-common

Fixing Errors were encountered while processing: tex-common

sudo apt remove --purge tex-common '^texlive'
sudo rm -rf /etc/texmf/
sudo apt install tex-common
@vinesmsuic
vinesmsuic / readme.md
Last active September 26, 2024 05:30
Solving torch-scatter / torch_sparse building forever issue when using PyTorch 2.X

Swap cu121 with whatever cuda version you have

pip install torch-scatter torch_sparse torch_cluster torch_geometric -f https://data.pyg.org/whl/torch-2.4.0+cu121.html
@vinesmsuic
vinesmsuic / mp4_to_gif.sh
Created September 6, 2024 05:20
convert all mp4 to gif
#!/bin/bash
# Check if an argument was provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 SEARCH_DIR"
exit 1
fi
# Use the first argument as the directory to search for MP4 files.
SEARCH_DIR=$1
@vinesmsuic
vinesmsuic / ss.md
Created July 25, 2024 06:56
Kill running program in terminal
ps aux | grep <program_name>
kill -9 <pid>
@vinesmsuic
vinesmsuic / ss.md
Created July 5, 2024 02:15
Cheatsheet for cleaning up server

Check disk usage and sorted by size

du -sh ./* .[!.]*/ | sort -hr

Delete HuggingFace cache

cd .cache
rm -rf huggingface
gdown --id <FILE_ID> -O filename.ext
@vinesmsuic
vinesmsuic / gist:8c9544da6a0e6d59d348b7764183db77
Created January 23, 2024 22:44
Fixing "The NVIDIA driver on your system is too old" issue
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia