This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Patch R02_3.00.06_FasterRawValuesMOD.bin into an optimized accel-only firmware. | |
| This script takes the FasterRawValuesMOD firmware and applies three optimizations: | |
| 1. NOPs the PPG (photoplethysmography) driver initialization — frees CPU cycles | |
| 2. NOPs the Blood and HRS BLE notification sends — only accelerometer data is sent | |
| 3. Sets the timer config byte to 0x04 for maximum stable rate (~40Hz) | |
| The result is a firmware that streams accelerometer data at ~40Hz without crashing, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { config, lib, pkgs, ...}: | |
| # Cut from https://raw.githubusercontent.com/NixOS/nixpkgs/refs/heads/master/nixos/modules/services/system/dbus.nix | |
| let | |
| cfg = config.dbus; | |
| dbus-start-bin = "dbus-start"; | |
| dbus-start = pkgs.writeScriptBin dbus-start-bin '' | |
| #!${pkgs.runtimeShell} | |
| ${pkgs.dbus}/bin/dbus-daemon --session & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {- cabal: | |
| build-depends: base | |
| , scotty | |
| , aeson | |
| , http-client-tls | |
| , http-client | |
| , bytestring | |
| , text | |
| , http-types | |
| -} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: "Fira Code NerdFont"; | |
| font-style: normal; | |
| font-weight: 200; | |
| src: url('https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/FiraCode/Regular/complete/Fira%20Code%20Regular%20Nerd%20Font%20Complete.ttf') format('truetype')); | |
| } | |
| @font-face { | |
| font-family: "Fira Code NerdFont"; | |
| font-style: normal; | |
| font-weight: 400; |