Files
gpu-program-swapper/.gitignore
drjones 172d812820 Harden .gitignore and drop hardcoded home paths before publishing
The repo is about to be pushed to a remote, so this covers what should never
travel with it and what should not be baked into the source.

.gitignore now covers credentials (.env, keys, tokens, .netrc), host-local
config (*.local.json), the SQLite telemetry store and its WAL sidecars, logs,
benchmark and sweep output, and the timestamped .bak files this project has
accumulated before. Verified that no currently tracked file is caught by the
new patterns.

Also removed /home/drjones from tracked source, which an ignore file cannot
help with. BASE_DIR now derives from the module's own location, the ComfyUI
model directory falls back to ~/ComfyUI/models, and start_manager.sh resolves
its interpreter through $HOME with a python3 fallback. All three still resolve
to exactly the same paths on this machine; they just no longer hardcode one
user's home directory into a published repository.

Note for the record: the git history was scanned across all refs and contains
no credentials. The password visible in `git remote -v` lives only in
.git/config, which is never pushed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 10:30:37 -07:00

119 lines
2.7 KiB
Plaintext

# ---------------------------------------------------------------------------
# Credentials and secrets — never commit these.
#
# Note: the remote URL in .git/config may embed a username and password. That
# file is local-only and is never pushed, but it does mean `git remote -v`
# prints your password to the terminal. Prefer a credential helper or a token.
# ---------------------------------------------------------------------------
.env
.env.*
*.env
!.env.example
secrets.json
credentials.json
*.credentials
.netrc
.htpasswd
*.pem
*.key
!*.pub
id_rsa*
id_ed25519*
*.p12
*.pfx
*_token
*.token
token.txt
auth.json
# ---------------------------------------------------------------------------
# Local machine state — paths, tuning and service config specific to one host.
# Commit the .example variants instead.
# ---------------------------------------------------------------------------
*.local.json
*.local.sh
settings.local.*
config.local.*
overclock_profiles.local.json
hyperswap.conf
.hyperswap_env
# ---------------------------------------------------------------------------
# Persistent telemetry store (SQLite + WAL sidecars).
# Grows ~0.4 MB/hour; contains this machine's hardware history, not source.
# ---------------------------------------------------------------------------
hyperswap.db
hyperswap.db-wal
hyperswap.db-shm
*.sqlite
*.sqlite3
*.db-journal
# ---------------------------------------------------------------------------
# Logs and captured run output
# ---------------------------------------------------------------------------
*.log
logs/
manager.log
nohup.out
# ---------------------------------------------------------------------------
# Benchmark, sweep and profiling artefacts
# ---------------------------------------------------------------------------
sweep_*.json
autotune_*.json
pl_*.json
benchmark_*.json
*.prof
*.pstats
perf.data*
# ---------------------------------------------------------------------------
# Backups and scratch files (timestamped .bak files have appeared here before)
# ---------------------------------------------------------------------------
*.bak
*.bak-*
*.backup
*.pre-tuning
*.orig
*.rej
*.tmp
*.swp
*.swo
*~
.#*
scratch/
tmp/
# ---------------------------------------------------------------------------
# Python
# ---------------------------------------------------------------------------
__pycache__/
*.py[cod]
*$py.class
*.so
.venv/
venv/
env/
.Python
build/
dist/
*.egg-info/
.eggs/
.pytest_cache/
.mypy_cache/
.ruff_cache/
.coverage
htmlcov/
.tox/
# ---------------------------------------------------------------------------
# Editors and OS
# ---------------------------------------------------------------------------
.vscode/
.idea/
*.iml
.DS_Store
Thumbs.db
desktop.ini