Skip to content

Instantly share code, notes, and snippets.

View Fakesum's full-sized avatar
🎯
Focusing

Fakesum Fakesum

🎯
Focusing
  • Gurgaon, India
  • 10:46 (UTC +05:30)
View GitHub Profile
@Fakesum
Fakesum / gist:82148fefb6ec081c3610368defec09e1
Created March 31, 2025 09:35
Switch google Colab to 3.12.7
# Install Miniconda to manage environments
!wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!bash Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
import sys
sys.path.append('/usr/local/bin')
# Create a conda environment with Python 3.12.7
!conda create -n py312 python=3.12.7 -y
# Activate the environment and install ipykernel (to use as a Jupyter kernel)
@Fakesum
Fakesum / command.ps1
Created March 30, 2025 13:01
Single Command to stop tracking any file in git above 50MB, to fix messed up git instances.
Get-ChildItem -Recurse -File | Where-Object { $_.Length -gt 50MB } | ForEach-Object { $_.Name >> .gitignore; git rm --cached $_.FullName }; git commit -m "Stop tracking files >50MB"