Skip to content

Instantly share code, notes, and snippets.

View robertg042's full-sized avatar

Robert Górnicki robertg042

View GitHub Profile
@Diogo-Rossi
Diogo-Rossi / syncextensions.py
Last active July 28, 2023 20:01
Python script to sync extensions in VS Code
from __future__ import annotations
ignoreextensions = [] # cSpell:disable-line
print('-'*60)
import os
import subprocess
from dataclasses import dataclass
from packaging.version import parse as version, Version
from typing import Union
@callumlocke
callumlocke / .zshrc
Last active March 24, 2024 08:12
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".