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 os | |
| import subprocess | |
| import time | |
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| from pathlib import Path | |
| from typing import Callable, Sequence | |
| PROGRESS_BAR_WIDTH = 28 | |
| __all__ = ["parallel_rsync_copy"] |
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
| """Project quota runout trajectory from slash-status style text. | |
| Quick launcher install (so you can run `quota-trajectory ...`): | |
| # Run these commands from the directory containing quota_trajectory.py. | |
| SCRIPT_PATH="$(realpath ./quota_trajectory.py)" | |
| cat > ~/bin/quota-trajectory <<'BASH' | |
| #!/usr/bin/env bash | |
| exec python3 "__QUOTA_TRAJECTORY_PATH__" "$@" | |
| BASH |
OlderNewer