Commit Graph

556 Commits

Author SHA1 Message Date
1721275423 refactor(praca/generate_images): fix ruff violations in generate_q20_diagrams.py 2026-03-14 16:04:14 +01:00
9041e87d32 refactor(praca/generate_images): fix ruff violations in generate_scheduling_diagrams.py 2026-03-14 15:51:02 +01:00
7c47befe04 refactor(praca/generate_images): fix ruff violations in diagram generators batch 1 2026-03-14 14:29:54 +01:00
03409b6839 refactor(praca): fix ruff violations in visualize scripts 2026-03-14 14:29:18 +01:00
d488c87203 refactor(praca_magisterska_video): fix ruff violations and remove noqa from diagram generators
- Add type annotations, docstrings, and constants
- Remove commented-out code and print statements
- Fix all lint issues in 11 generate_images files
2026-03-13 20:52:27 +01:00
1e108d1e3f refactor(tests): remove noqa comments from test files
- Fix lint issues in keyboard_coop, lichess_bot, and tag_divider tests
- Prefix unused parameters with underscore instead of noqa: ARG002
2026-03-13 20:49:25 +01:00
0d47f77ee5 refactor: remove noqa comments from miscellaneous scripts
- Fix underlying lint issues instead of suppressing with noqa
- Files: moviepy_showcase, pomodoro-wake-daemon, brother_printer,
  http_status_anki, geo_data, repo_explorer, steam_backlog_enforcer,
  music_generator
2026-03-13 20:48:40 +01:00
078a4c0071 refactor(anki_decks): remove all noqa comments and fix underlying issues
- Replace module-level globals with _mp_state dict (PLW0603)
- Use hashlib.sha256 instead of md5 (S324)
- Use secrets.randbelow instead of random.randrange (S311)
- Use tempfile.gettempdir() instead of hardcoded /tmp (S108)
- Replace assert statements with RuntimeError (S101)
2026-03-13 20:47:52 +01:00
8623276339 refactor(screen_locker): remove all noqa comments from tests
- Prefix unused mock parameters with underscore instead of noqa: ARG002
- Remove 102 noqa suppression comments
2026-03-13 20:46:45 +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
0460f3fac6 refactor(word_frequency): fix all ruff violations and remove noqa comments
- Replace print() with logging module throughout
- Add type annotations and Google docstrings to all functions
- Introduce DeckInput and LessonConfig dataclasses to reduce function parameters
- Use specific exception types instead of bare except (BLE001)
- Remove all noqa suppression comments
- Fix test fixtures: remove unused _capsys/_tmp_path parameters
2026-03-13 20:41:31 +01:00
5cd30db5a2 refactor(cinema_planner): fix all ruff violations, add type hints, docstrings, logging
- Replace print() with logging module
- Add type annotations to all functions
- Add Google-style docstrings to all public functions/classes
- Extract magic numbers into named constants
- Break complex functions into smaller helpers
- Use Path.open() instead of open()
- Use contextlib.suppress where appropriate
2026-03-13 20:35:21 +01:00
cffd445b0b docs: add repository README 2026-03-13 19:47:11 +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
f4b77e51dc feat: improvements in steam backlog and brother printer 2026-03-04 22:40:49 +01:00
e76c2c68ee feat: steam 100 percent extension 2026-03-02 20:29:32 +01:00
253b327b72 fix: bluetooth optimze arch desktop phone foucs mode and no secres 2026-03-02 19:13:22 +01:00
bf4a8ce173 refactor: move home coordinates to gitignored secrets file 2026-03-02 12:57:34 +01:00
3f5d57871f refactor: auto-detect wireless ADB device, remove phone_config.txt
- Replace stored phone_config.txt with _get_wireless_serial() which
  parses 'adb devices' and auto-picks the ip:port (wireless) entry
- Replace _scan_phone_port-based reconnect with _try_wireless_reconnect
  that scans local /24 subnet on port 5555 via parallel probing
- Add _get_local_subnet_prefix() using UDP socket trick (8.8.8.8:80)
- Remove PHONE_CONFIG_FILE, _load_phone_config, _save_phone_config,
  _save_connected_device_config, _scan_phone_port
- No config file needed; device is always discovered dynamically
- 112 tests passing
2026-02-24 21:19:47 +01:00
64a382e82c feat: screen locker phone check at startup with background thread
- ADB check runs in background thread (ThreadPoolExecutor) so the UI
  remains responsive while checking StrongLifts on the phone
- Poll result every 500ms via root.after instead of blocking main thread
- Show success screen for 1.5s before auto-unlocking when verified
- Target specific ADB device via -s flag using saved phone_config.txt
  to avoid errors when multiple devices (USB + wireless) are connected
- Demo mode uses local grab_set() instead of grab_set_global() so it
  works alongside other fullscreen apps
- Stub _start_phone_check in create_locker to prevent background threads
  leaking into unrelated tests (fixes flaky test_run_adb_success)
- 112 tests passing, 100% branch coverage
2026-02-24 21:11:05 +01:00
192c91094e feat: screen locker made even stronger 2026-02-23 22:50:42 +01:00
2a8d61088b chore: added delio option 2026-02-23 22:09:52 +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
21c9180b00 feat: optimized isbn number calculations 2026-02-22 22:19:28 +01:00
cc8cc53dfb feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00
f4f25821e5 feat: shell scripts 2026-02-22 16:57:36 +01:00
265488a478 feat: added scripts for generating images for praca magisterska obrona 2026-02-22 13:08:14 +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
feac2a7aa8 fix: install sh i3 2026-02-20 20:43:37 +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
96eb511c83 feat: great beautiful fixes 2026-02-20 00:37:32 +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
7523c708d1 feat: added sounds and fixed skip button functionality 2026-02-14 19:00:08 +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
11427631cd feat: added flake8 max funciton length 2026-02-06 21:39:15 +01:00
029a99aaba feat: added flake8 2026-02-06 21:25:57 +01:00