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
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # dependencies = ["rich", "pydantic"] | |
| # /// | |
| from pydantic import BaseModel | |
| print(BaseModel) | |
| print("Hello via shebang") |
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
| HERE=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) |
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
| import logging | |
| import sys | |
| def global_logger(name): | |
| logging.basicConfig( | |
| stream=sys.stdout, | |
| level=logging.INFO, | |
| format="%(asctime)s - %(levelname)s - %(name)s - %(funcName)s - %(message)s", | |
| ) | |
| return logging.getLogger(name) |
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
| #!/usr/bin/env bash | |
| sudo apt -y install python3-pip | |
| sudo pip3 install dvc[gs] | |
| sudo pip3 install cookiecutter | |
| sudo rm /etc/apt/sources.list.d/cuda* | |
| sudo apt remove nvidia-cuda-toolkit | |
| sudo apt -y remove nvidia-* | |
| sudo apt update |