50fd6812d7
refactor: enforce 500-line limit on all Python source files
...
Split 18+ Python files that exceeded 500 lines into smaller modules
with helper files (prefixed with _). All functions are re-exported
from the original modules to maintain backward compatibility with
test patches and external imports.
Files split:
- moviepy_showcase.py (1212 -> 302 + 3 helpers)
- anki_generator.py (1174 -> 473 + 4 helpers)
- test_analyze_chess_game.py (1152 -> 361 + 2 parts)
- poker_modifier_app.py (1024 -> 263 + 2 helpers)
- transcribe_fw.py (1007 -> 342 + 3 helpers)
- music_generator.py (1002 -> 319 + 2 helpers)
- translator.py (951 -> 442 + 2 helpers)
- cinema_planner.py (893 -> 369 + 2 helpers)
- lichess_bot/main.py (757 -> 495 + _game_logic.py)
- test_translator.py (725 -> 289 + part2 + conftest)
- test_lichess_api.py (680 -> 475 + part2)
- learning_pipe.py (668 -> 375 + 2 helpers)
- cache.py (655 -> 360 + _cache_decks.py)
- analyze_chess_game.py (632 -> 463 + _move_analysis.py)
- visualize_q02.py (609 -> 371 + helper)
- repo_explorer.py (602 -> 347 + 2 helpers)
- keyboard_coop/main.py (515 -> 416 + _dictionary.py)
- scanning.py (501 -> 314 + _enforce_loop.py)
All tests pass: 144 lichess_bot (100% branch coverage), 243 others.
No new lint errors introduced.
2026-03-17 22:47:42 +01:00
8998883a6c
feat: add auto-close suspension for digital wellbeing
...
Add is_autoclose_suspended() function that checks for a per-app
suspend file dated today. When suspended, launches the app directly
without the auto-close timer via exec.
2026-03-15 19:15:38 +01:00
11a5574011
feat: add per-app timeout overrides for digital wellbeing
...
Allow specific apps (beeper, signal-desktop) to have longer
auto-close timeouts (20min) than the default (10min).
2026-03-14 17:52:38 +01:00
4d3da460fc
refactor(linux_configuration): fix ruff violations in digital wellbeing and transcription scripts
...
- Add type annotations and docstrings to focus_mode_daemon.py, transcribe_fw.py, transcribe_helpers.py
- Use logging module instead of print
- Fix bare except clauses with specific exception types
2026-03-13 20:42:39 +01:00
KRZYSZTOF RUDNICKI
89a8d57971
Merge branch 'main' of https://github.com/kuhyx/testsAndMisc
2026-03-12 08:50:22 +01:00
ee68d47a4c
feat: improvements in hosts bluetooth focus mode and backglog scripts
2026-03-11 20:47:03 +01:00
KRZYSZTOF RUDNICKI
1a32d8dc51
Merge branch 'main' of https://github.com/kuhyx/testsAndMisc
2026-03-11 08:51:39 +01:00
KRZYSZTOF RUDNICKI
24be13a17a
feat: install code insiders fix ubuntu performance gif to square and upgrae ubuntu script
2026-03-11 08:51:32 +01:00
497dcfd8b3
feat: screen replay feature
2026-03-09 18:52:48 +01:00
7fa2019124
Merge branch 'main' of https://github.com/kuhyx/testsAndMisc
2026-03-09 18:36:54 +01:00
de98faafc9
feat: robotgo improvements in phone focus bluetooth and printer scripts
2026-03-09 18:34:15 +01:00
43f5ef321d
feat: better screen lock checker
2026-03-08 21:39:39 +01:00
253b327b72
fix: bluetooth optimze arch desktop phone foucs mode and no secres
2026-03-02 19:13:22 +01:00
192c91094e
feat: screen locker made even stronger
2026-02-23 22:50:42 +01:00
720a291388
leechblock: switch defaults to gist JSON, seed LevelDB directly, block unsupported browsers
...
- Replace leechblock_defaults.js with LeechBlockOptions.json fetched from
private gist (30 block sets, 1568 keys)
- Add seed_leechblock_storage.js: writes settings directly into Chrome's
LevelDB via classic-level, bypassing content-verification entirely
- Supports both .json and legacy .js defaults files
- Chunked writes (individual db.put) to avoid batch size limits
- Per-profile error isolation; Thorium LevelDB warning demoted to non-fatal
- Add package.json (type:module + classic-level dep) and .gitignore for
node_modules
- install_leechblock.sh: drop background.js patching, call seeder instead;
auto-installs classic-level if node_modules absent
- install_pacman_wrapper.sh: deploy .json defaults, seeder, and package.json
to /usr/local/share/digital_wellbeing; run npm install there
- pacman_blocked_keywords.txt: add browsers not handled by install script
(Microsoft Edge family, firefox-esr/nightly, opera-beta/dev,
iridium, slimjet, chromium-dev, qutebrowser, midori)
2026-02-23 22:00:31 +01:00
f4f25821e5
feat: shell scripts
2026-02-22 16:57:36 +01:00
e44661f381
fix bluetooth script
2026-02-21 21:06:41 +01:00
8fb2e96363
feat: moviepy showcase full
2026-02-21 20:40:33 +01:00
6ec85106b7
Protect nsswitch.conf and resolved.conf from hosts bypass
...
- Add enforce-resolved.sh: validates ReadEtcHosts=yes, prevents
DNSOverTLS bypass, removes drop-in overrides, locks drop-in dir
- Add resolved-guard.path/service: watches /etc/systemd/resolved.conf
and its drop-in directory for tampering
- Update pacman hooks to unlock/relock nsswitch.conf and resolved.conf
alongside /etc/hosts during package transactions
- Extend setup_hosts_guard.sh with --skip-resolved option, resolved
canonical snapshot, drop-in directory locking, and enforcement
- Add resolved.conf checks to check_and_enable_services.sh: validates
ReadEtcHosts, DNSOverTLS, drop-in overrides, immutable attribute,
and resolved-guard.path status with auto-fix capability
Fixed on live system: ReadEtcHosts was set to 'no' and nsswitch.conf
was missing 'files' in the hosts line, completely bypassing /etc/hosts.
2026-02-20 23:21:25 +01:00
09e85cd914
feat: LeechBlock default config, Chrome repo, nsswitch fixes, extended checker
...
- Add leechblock_defaults.js with pre-configured blocking rules matching
hosts/install.sh (YouTube, food delivery, fast food — 3 block sets)
- install_leechblock.sh: switch to LeechBlockNG-chrome repo, download
jQuery UI, inject defaults.js into extension, patch background.js to
seed storage on first run, replace browser binary in-place
- remove_guest_mode.sh: fix associative array key spacing
- enforce-nsswitch.sh: handle 'resolve' without 'dns' in emergency fix
- setup_hosts_guard.sh: ensure 'files' in nsswitch hosts line before
snapshotting, remove erroneous 'local' outside function
- check_and_enable_services.sh: extend from 5 to 12 services, add
nsswitch.conf validation and auto-fix
2026-02-20 20:24:13 +01:00
4c4e966e5f
feat: great beautiful fixes
2026-02-20 01:17:53 +01:00
9e4fee54d7
pre commit fixes
2026-02-20 00:21:41 +01:00
aa8501cc49
arch laptop fixes
2026-02-20 00:13:25 +01:00
20337f07eb
fixes for existing scripts and pomodoro with local sync
2026-02-14 18:42:20 +01:00
4f37aad321
feat: install joplin script
2026-02-07 19:39:08 +01:00
93426490c4
Consolidate all Anki deck generators into python_pkg/anki_decks/
...
Move warsaw_bridges, warsaw_districts, warsaw_landmarks, warsaw_metro,
warsaw_osiedla, warsaw_streets, and car_brand_logos into the existing
python_pkg/anki_decks/ directory alongside the polish_* generators.
Also move preview_all.html into anki_decks/.
Update all import paths, filesystem references in geo_data.py,
docstrings, READMEs, test imports, and .gitignore accordingly.
2026-02-07 15:32:23 +01:00
04c132c9a4
Add 'linux_configuration/' from commit '0762e3d07b90bac9256eb272de10bf9f42878094'
...
git-subtree-dir: linux_configuration
git-subtree-mainline: 11427631cd
git-subtree-split: 0762e3d07b
2026-02-06 21:43:26 +01:00