Go to file
Krzysztof kuhy Rudnicki c47ac8d2eb Fix pytest OOM: nested 2GB cgroup per package with MemorySwapMax=0
Each pytest package runs in its own systemd-run scope with:
- MemoryMax=2G per package (nested inside the 4GB parent cgroup)
- MemorySwapMax=0 to prevent zram thrashing (the real cause of freezes)
- gc.collect() between packages to free Python heap
2026-04-12 21:43:18 +02:00
.github Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.vscode Fix pre-commit OOM: oom_score_adj + Node heap caps 2026-04-12 21:34:56 +02:00
C Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
CPP Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
horatio chore: optimize pre-commit, remove tracked binaries, fix lint issues 2026-04-10 18:48:37 +02:00
linux_configuration Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
phone_focus_mode feat: make horatio audio work on android 2026-03-30 20:18:33 +02:00
pomodoro_app Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
python_pkg Fix pre-commit OOM: oom_score_adj + Node heap caps 2026-04-12 21:34:56 +02:00
robotgo_demo feat: robotgo improvements in phone focus bluetooth and printer scripts 2026-03-09 18:34:15 +01:00
scripts Fix pytest OOM: nested 2GB cgroup per package with MemorySwapMax=0 2026-04-12 21:43:18 +02:00
sonic_pi feat: text learning pipe 2025-12-27 17:22:17 +01:00
TS Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.binary-allowlist feat: make horatio audio work on android 2026-03-30 20:18:33 +02:00
.copilotignore Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.fvmrc fixes for existing scripts and pomodoro with local sync 2026-02-14 18:42:20 +01:00
.gitignore Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.pre-commit-config.yaml Fix pre-commit OOM: oom_score_adj + Node heap caps 2026-04-12 21:34:56 +02:00
eslint.config.mjs feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
lint_python.sh fix: resolve shellcheck warnings 2025-11-30 13:48:17 +01:00
out.json test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
package-lock.json fix: resolve all pre-commit hook failures after file splits 2026-03-18 22:20:05 +01:00
package.json feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
pyproject.toml Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
README.md refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
requirements-dev.txt fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
requirements.txt Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
setup.sh feat: great beautiful fixes 2026-02-20 00:37:32 +01:00

testsAndMisc

A collection of personal projects, scripts, and experiments — from a GPS-based phone focus tool to C/C++ demos, with CI, linting, and pre-commit hooks across the board.

Highlights

Phone Focus Mode

Location-based app restriction for rooted Android. Automatically disables non-whitelisted apps within 500 m of home using ADB + Magisk. Features Haversine distance calculation, hysteresis to prevent toggling, fail-safe unlock, and state persistence. Bash, Android ADB.

Linux Configuration

Automated Arch Linux setup: fresh-install scripts, i3 window manager config, LaTeX environment, and system tests. Includes documentation and test result logging.

Scripts

Utility scripts for development workflows — C/C++ build file validation, secret detection, and custom makepkg helpers.

Other Projects

Directory Description
poker_modifier_app/ Browser-based poker hand modifier (HTML/JS)
pomodoro_app/ Pomodoro timer (Flutter)
Bash/ FFmpeg build scripts
C/, CPP/, TS/ Language-specific experiments
sonic_pi/ Music programming experiments
robotgo_demo/ Go desktop automation demo
python_pkg/ Python package structure example

Tooling

  • Python linting: Ruff with all rules enabled (see pyproject.toml)
  • JS/TS linting: ESLint (flat config)
  • CI: GitHub Actions — lint, build, and test on push
  • Testing: pytest (Python), custom shell-based test harness for scripts