Skip to content

Instantly share code, notes, and snippets.

View MaxistheSpy's full-sized avatar

MaxistheSpy MaxistheSpy

View GitHub Profile
@MuhsinFatih
MuhsinFatih / fix-macos-python.md
Last active May 15, 2025 15:21
How to recover from messed up python installation on mac, and never have to mess with apple's shitty python confusion factory

I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.

What the hell?

Here is what I had messed up, which you also probably did:

  • I had too many different python interpreters
  • Too many different symlinks which I lost track of
  • almost no package I installed with pip worked without a headache
  • any attempt to fix using online resources made it worse.
@hrz6976
hrz6976 / download_from_anonymous_github.py
Created October 6, 2022 06:27
Download a repository as a zip archive from anonymous.4open.science
import os
import zipfile
import requests
repo_name = input("Enter 4open.science repository name: ")
api_url = f"https://anonymous.4open.science/api/repo/{repo_name}/files/"
r = requests.get(api_url)
r.raise_for_status()
r_j = r.json()
@therealparmesh
therealparmesh / zed-vim-mode-cheatsheet.md
Created October 24, 2024 14:38
Zed vim mode cheatsheet

Zed Vim Mode Cheat Sheet

Zed's Vim mode replicates familiar Vim behavior while integrating modern features like semantic navigation and multiple cursors. This cheat sheet summarizes essential shortcuts and settings to help you navigate and edit code efficiently in Zed.


Enabling/Disabling Vim Mode

  • Enable/Disable Vim Mode: Open the command palette and use Toggle Vim Mode.
  • This updates your user settings: "vim_mode": true or false.