Assumptions
- All repos live in
~/GitHub/
- You always start inside a repo:
pwd = ~/GitHub/my-repo
- Create worktrees as siblings (e.g.,
../my-repo--my-feature
) — never nested insidemy-repo/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family = FiraCode Nerd Font Mono | |
font-style = Retina | |
font-thicken = false | |
font-size = 16 | |
background = #111111 | |
background-opacity = 0.85 | |
unfocused-split-opacity=0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Python Enviornment Activation | |
alias activate-venv='source .venv/bin/activate' | |
# Function to source .venv if it exists | |
auto_source_env() { | |
if [[ -d ".venv" && -f ".venv/bin/activate" ]]; then | |
echo "Activating virtual environment in .venv..." | |
activate-venv | |
fi | |
} |
How to fix TqdmWarning: IProgress not found
problem
- Install Jupyter Notebook Renderers
uv add --dev -U ipywidgets jupyterlab ipykernel
python -m ipykernel install --user --name=".venv"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey 2.0+ | |
#SingleInstance Force | |
#HotIf WinActive("ahk_class Progman") || WinActive("ahk_class WorkerW") | |
^+d::DesktopIcons() | |
#HotIf | |
DesktopIcons(){ | |
hProgman:=WinExist("ahk_class WorkerW","FolderView")?WinExist():WinExist("ahk_class Progman","FolderView") | |
hShellDefView:=DllCall("user32.dll\GetWindow","ptr",hProgman,"int",5,"ptr") |
- Generate an SSH Key
ssh-keygen
- Create .ssh dir on remote
mkdir ~/.ssh/
ngrok.exe http http://localhost:7071 --domain=warm-severely-boxer.ngrok-free.app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dict_none_remover(d:dict) -> dict: | |
""" | |
Remove keys with None values from a multi-level nested dictionary. | |
Parameters | |
---------- | |
d : dict | |
The input dictionary from which keys with None values should be removed. | |
Returns |
NewerOlder