Skip to content

Instantly share code, notes, and snippets.

View d3nd3's full-sized avatar

Graham Fenner d3nd3

  • United Kingdom
View GitHub Profile
@d3nd3
d3nd3 / hrm.js
Last active December 31, 2023 16:21
Bangle.js HRM basic
var squareroot = x=>Math.sqrt(x);
var c = E.compiledC(`
// void onHRM(int,int,int,JsVar)
// void onInit(void)
// void setCutOffUp(int)
// void setCutOffLow(int)
// void setThreshold(int)
float doubleToFloat(double value);
double floatToDouble(float value);
@d3nd3
d3nd3 / patch.sh
Created April 15, 2023 18:07
Exagear License for pi-legacy
rmdir '/opt/exagear/lic'
rm '/opt/exagear/bin/actool'
# non legacy versions
printf '\x00\xf0\x20\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al_mem2g' bs=1 seek=866740 count=8 conv=notrunc 2> /dev/null
printf '\x00\xf0\x20\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al_mem3g' bs=1 seek=996256 count=8 conv=notrunc 2> /dev/null
# legacy version (pi0 armv6)
printf '\x01\x00\xa0\xe3\x01\x00\xa0\xe3' | dd of='/opt/exagear/bin/ubt_x32a32_al' bs=1 seek=1071816 count=8 conv=notrunc 2> /dev/null
@d3nd3
d3nd3 / Z bangle.md
Last active January 25, 2023 10:57
Bangle.js

Info related to the Bangle.js watches

@d3nd3
d3nd3 / Z docker.md
Last active June 18, 2024 16:16
Docker

How to use docker

@d3nd3
d3nd3 / Z raspberry pi.md
Last active January 25, 2023 10:57
Raspberry Pi

Gist with useful information about using a raspberry pi 4