mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
- New companion Android app (com.kuhy.focusstatus) under phone_focus_mode/focus_status_app/ with a pure-Java, Gradle-less command-line build pipeline (build.sh). Shows an ongoing notification titled 'Focus: HOME / AWAY / DAEMON DOWN' with distance, GPS, disabled-app count, last check, daemon checkmarks, and a 'Re-check now' action button. - focus_daemon.sh: write_status_snapshot() + sleep_with_recheck() for JSON status + early-wake on trigger file. init() chmods STATE_DIR 777 so the app can drop the trigger file. - config.sh: new STATUS_FILE / RECHECK_TRIGGER; WHITELIST expanded with com.kuhy.focusstatus and 11 more user-requested apps (podcini X, mpv, bible/openbible, pkp/portalpasazera, orange, runnerup, splitbills/splitwise, xiaomi smarthome). - focus_ctl.sh: new 'recheck' + 'notif-status' subcommands. - deploy.sh: new step [7/7] builds APK, installs, grants POST_NOTIFICATIONS, pre-approves Magisk SU policy, launches foreground service. - .gitignore: exclude focus_status_app/build symlink + debug.keystore. End-to-end verified on device: notification live with real values; Re-check button triggers a daemon location check within ~1s.
438 lines
9.6 KiB
Plaintext
438 lines
9.6 KiB
Plaintext
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
|
|
# Compiled output
|
|
/dist
|
|
/tmp
|
|
/out-tsc
|
|
/bazel-out
|
|
|
|
# Node
|
|
**/node_modules/
|
|
npm-debug.log
|
|
yarn-error.log
|
|
|
|
# IDEs and editors
|
|
.idea/
|
|
.project
|
|
.classpath
|
|
.c9/
|
|
*.launch
|
|
.settings/
|
|
*.sublime-workspace
|
|
|
|
# Visual Studio Code
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/tasks.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
.history/*
|
|
|
|
# Miscellaneous
|
|
/.angular/cache
|
|
.sass-cache/
|
|
/connect.lock
|
|
**/coverage/
|
|
/libpeerconnection.log
|
|
testem.log
|
|
/typings
|
|
|
|
# System files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# ===========================================================================
|
|
# BINARY / IMAGE FILES - Move to ../testsAndMisc_binaries/ instead
|
|
# See .binary-allowlist for exceptions required by builds
|
|
# ===========================================================================
|
|
# Images
|
|
*.png
|
|
*.jpg
|
|
*.jpeg
|
|
*.gif
|
|
*.webp
|
|
*.bmp
|
|
*.ico
|
|
*.tiff
|
|
*.tif
|
|
*.psd
|
|
# SVG is text but often used as image asset
|
|
*.svg
|
|
# Audio / Video
|
|
*.mp3
|
|
*.mp4
|
|
*.wav
|
|
*.avi
|
|
*.mkv
|
|
*.flac
|
|
*.ogg
|
|
*.wma
|
|
*.aac
|
|
*.m4a
|
|
*.mov
|
|
*.wmv
|
|
*.flv
|
|
# Archives
|
|
*.zip
|
|
*.tar.gz
|
|
*.tgz
|
|
*.bz2
|
|
*.xz
|
|
*.7z
|
|
*.rar
|
|
# Documents
|
|
*.pdf
|
|
*.doc
|
|
*.docx
|
|
*.xls
|
|
*.xlsx
|
|
*.ppt
|
|
*.pptx
|
|
# Fonts
|
|
*.ttf
|
|
*.woff
|
|
*.woff2
|
|
*.eot
|
|
*.otf
|
|
# Data / binary
|
|
*.apkg
|
|
*.bin
|
|
*.flat
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
# Compiled
|
|
*.o
|
|
*.so
|
|
*.a
|
|
*.exe
|
|
*.dll
|
|
*.dylib
|
|
|
|
# Explicitly allowed binary files (override above with !)
|
|
!pomodoro_app/android/app/src/main/res/mipmap-*/ic_launcher.png
|
|
!pomodoro_app/packaging/arch/pomodoro-app.svg
|
|
!TS/battery-status/public/favicon.svg
|
|
|
|
# Binary asset symlinks (point to ../testsAndMisc_binaries/)
|
|
pomodoro_app/assets/sounds/long_break_done.wav
|
|
pomodoro_app/assets/sounds/long_break_start.wav
|
|
pomodoro_app/assets/sounds/short_break_done.wav
|
|
pomodoro_app/assets/sounds/work_done.wav
|
|
horatio/horatio_app/assets/demo_recordings/hamlet_line0_take1.wav
|
|
horatio/horatio_app/assets/demo_recordings/hamlet_line0_take2.wav
|
|
horatio/horatio_app/assets/demo_recordings/hamlet_line0_take3.wav
|
|
horatio/horatio_app/assets/demo_recordings/hamlet_line1_take1.wav
|
|
|
|
# ===========================================================================
|
|
|
|
# Byte-compiled / optimized / DLL files
|
|
__pycache__/
|
|
*.py[codz]
|
|
*$py.class
|
|
|
|
# C extensions (*.so covered in binary block above)
|
|
|
|
# Distribution / packaging
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
/lib/
|
|
/lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
share/python-wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
|
|
# PyInstaller
|
|
# Usually these files are written by a python script from a template
|
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
*.manifest
|
|
*.spec
|
|
|
|
# Installer logs
|
|
pip-log.txt
|
|
pip-delete-this-directory.txt
|
|
|
|
# Unit test / coverage reports
|
|
htmlcov/
|
|
.tox/
|
|
.nox/
|
|
.coverage
|
|
.coverage.*
|
|
.cache
|
|
nosetests.xml
|
|
coverage.xml
|
|
coverage.lcov
|
|
*.cover
|
|
*.py.cover
|
|
.hypothesis/
|
|
.pytest_cache/
|
|
cover/
|
|
|
|
# Translations
|
|
*.mo
|
|
*.pot
|
|
|
|
# Django stuff:
|
|
*.log
|
|
local_settings.py
|
|
db.sqlite3
|
|
db.sqlite3-journal
|
|
|
|
# Flask stuff:
|
|
instance/
|
|
.webassets-cache
|
|
|
|
# Scrapy stuff:
|
|
.scrapy
|
|
|
|
# Sphinx documentation
|
|
docs/_build/
|
|
|
|
# PyBuilder
|
|
.pybuilder/
|
|
target/
|
|
|
|
# Jupyter Notebook
|
|
.ipynb_checkpoints
|
|
|
|
# IPython
|
|
profile_default/
|
|
ipython_config.py
|
|
|
|
# pyenv
|
|
# For a library or package, you might want to ignore these files since the code is
|
|
# intended to run in multiple environments; otherwise, check them in:
|
|
# .python-version
|
|
|
|
# pipenv
|
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
# install all needed dependencies.
|
|
#Pipfile.lock
|
|
|
|
# UV
|
|
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
# commonly ignored for libraries.
|
|
#uv.lock
|
|
|
|
# poetry
|
|
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
# commonly ignored for libraries.
|
|
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
#poetry.lock
|
|
#poetry.toml
|
|
|
|
# pdm
|
|
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
#pdm.lock
|
|
#pdm.toml
|
|
.pdm-python
|
|
.pdm-build/
|
|
|
|
# pixi
|
|
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
#pixi.lock
|
|
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
.pixi
|
|
|
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
__pypackages__/
|
|
|
|
# Celery stuff
|
|
celerybeat-schedule
|
|
celerybeat.pid
|
|
|
|
# SageMath parsed files
|
|
*.sage.py
|
|
|
|
# Environments
|
|
.env
|
|
.envrc
|
|
.venv
|
|
env/
|
|
venv/
|
|
ENV/
|
|
env.bak/
|
|
venv.bak/
|
|
|
|
# Spyder project settings
|
|
.spyderproject
|
|
.spyproject
|
|
|
|
# Rope project settings
|
|
.ropeproject
|
|
|
|
# mkdocs documentation
|
|
/site
|
|
|
|
# mypy
|
|
.mypy_cache/
|
|
.dmypy.json
|
|
dmypy.json
|
|
|
|
# Pyre type checker
|
|
.pyre/
|
|
|
|
# pytype static type analyzer
|
|
.pytype/
|
|
|
|
# Cython debug symbols
|
|
cython_debug/
|
|
|
|
# PyCharm
|
|
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
#.idea/
|
|
|
|
# Abstra
|
|
# Abstra is an AI-powered process automation framework.
|
|
# Ignore directories containing user credentials, local state, and settings.
|
|
# Learn more at https://abstra.io/docs
|
|
.abstra/
|
|
|
|
# Visual Studio Code
|
|
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
# you could uncomment the following to ignore the entire vscode folder
|
|
# .vscode/
|
|
|
|
# Ruff stuff:
|
|
.ruff_cache/
|
|
|
|
# PyPI configuration file
|
|
.pypirc
|
|
|
|
# Marimo
|
|
marimo/_static/
|
|
marimo/_lsp/
|
|
__marimo__/
|
|
|
|
# Streamlit
|
|
.streamlit/secrets.toml
|
|
fps_demo
|
|
server_c
|
|
Bash/ffmpeg-build/FFmpeg
|
|
|
|
# C/C++ coverage and test artifacts
|
|
*.gcda
|
|
*.gcno
|
|
**/coverage.info
|
|
C/1dvelocitysimulator/test_physics
|
|
C/lichess_random_engine/test_movegen
|
|
C/lichess_random_engine/test_search
|
|
C/vocabulary_curve/test_vocabulary
|
|
CPP/miscelanious/test_challenges
|
|
|
|
# C/C++ compiled binaries
|
|
C/1dvelocitysimulator/1dvelocitysimulator
|
|
C/imageViewer/imageviewer
|
|
C/lichess_random_engine/random_engine
|
|
C/lichess_random_engine/perft
|
|
C/misc/generating_words
|
|
C/misc/randomJPG/generate_images
|
|
C/misc/split/split
|
|
C/opening_learner/opening_learner
|
|
C/scrapeWebsite/scrape
|
|
C/tests/polish_letters
|
|
C/vocabulary_curve/vocabulary_curve
|
|
C/websocketServer/websocket_server
|
|
CPP/miscelanious/brydz/brydz
|
|
CPP/miscelanious/calculateShotsDarts/darts
|
|
CPP/miscelanious/findIntegerPercentageValue/find_percentage
|
|
CPP/miscelanious/howManyValidISBNNumbersAreThere/isbn_counter
|
|
CPP/miscelanious/howOftenDoesCharOccur
|
|
CPP/miscelanious/quickchallenges
|
|
CPP/miscelanious/reverseString
|
|
CPP/miscelanious/solveQuadraticEquation
|
|
CPP/miscelanious/markovChainGenerator/markov
|
|
CPP/miscelanious/mutiplicationWithoutStar/multiplication
|
|
CPP/miscelanious/Pi/pi
|
|
CPP/miscelanious/randomDevice/random_device_demo
|
|
CPP/miscelanious/tictactoe/tictactoe
|
|
CPP/miscelanious/tierListConverter/tier_list_converter
|
|
CPP/miscelanious/xGoesTo0/xgoes
|
|
CPP/miscelanious/yousuckatcards/a.out
|
|
CPP/miscelanious/yousuckatcards/Bernouli/bernouli
|
|
CPP/miscelanious/yousuckatcards/Bernouli/test
|
|
CPP/tests/division_test
|
|
|
|
# Screen locker workout log
|
|
python_pkg/screen_locker/workout_log.json
|
|
python_pkg/music_gen/output/
|
|
|
|
# Screen locker state files
|
|
python_pkg/screen_locker/sick_day_state.json
|
|
python_pkg/screen_locker/workout_log.json.bak
|
|
preview_images
|
|
# Anki generated packages (*.apkg covered in binary block above)
|
|
|
|
# Geographic data cache (can be regenerated)
|
|
python_pkg/geo_cache/
|
|
|
|
# Local venvs in subpackages
|
|
python_pkg/*/.venv/
|
|
python_pkg/*/cache/
|
|
|
|
# HTTP cat image cache
|
|
python_pkg/download_cats/http_cat_cache/
|
|
|
|
# Large geojson files that can be downloaded
|
|
python_pkg/anki_decks/warsaw_districts/warszawa-dzielnice.geojson
|
|
|
|
# Wikipedia cache (can be refreshed)
|
|
python_pkg/anki_decks/polish_license_plates/.wikipedia_cache/
|
|
python_pkg/cinema_planner/pasted_content.txt
|
|
|
|
# FVM Version Cache
|
|
.fvm/
|
|
CPP/miscelanious/howManyValidISBNNumbersAreThere/ISBN.txt
|
|
|
|
# Focus mode secrets (contains home GPS coordinates)
|
|
phone_focus_mode/config_secrets.sh
|
|
|
|
# Generated output files
|
|
out.txt
|
|
cinema_plan_*.txt
|
|
|
|
# Binary images moved to external storage (testsAndMisc_binaries/)
|
|
python_pkg/praca_magisterska_video/images/
|
|
|
|
# Build output symlinks (point to ../testsAndMisc_builds/)
|
|
# Patterns without trailing / to match symlinks, not just directories
|
|
pomodoro_app/build
|
|
horatio/horatio_app/build
|
|
sonic_pi/build
|
|
CPP/mini_browser/build
|
|
phone_focus_mode/focus_status_app/build
|
|
phone_focus_mode/focus_status_app/debug.keystore
|
|
pomodoro_app/.dart_tool
|
|
horatio/horatio_app/.dart_tool
|
|
horatio/horatio_core/.dart_tool
|
|
|
|
# Web icon symlinks (point to ../testsAndMisc_binaries/horatio_app_web_icons/)
|
|
horatio/horatio_app/web/favicon.png
|
|
horatio/horatio_app/web/icons/Icon-192.png
|
|
horatio/horatio_app/web/icons/Icon-512.png
|
|
horatio/horatio_app/web/icons/Icon-maskable-192.png
|
|
horatio/horatio_app/web/icons/Icon-maskable-512.png
|