Skip to content

Instantly share code, notes, and snippets.

View birdfly's full-sized avatar

Birdfly birdfly

View GitHub Profile
@birdfly
birdfly / libre-link-up-http-dump.md
Created July 13, 2022 10:05 — forked from khskekec/libre-link-up-http-dump.md
HTTP dump of Libre Link Up used in combination with FreeStyle Libre 3
{"sig":"571c85f4f0cf0aa6030f8993583cb9a0261b184281647047c110d6fc58610259e81e916bc601c4fd215c23d2498796abcb95fe5f289b28f2c597794fc6e203370","msghash":"d0373b0f7d2cfc173bdee7f1462a94068417f5535c217def75861a6e749d68bf"}
In the event loop, each cycle do this:
class Player {
const carbsAbsorptionRate; // how many carbs are absorbed per cycle
const insulinAbsorptionRate; // how many units of insulin are absorbed per cycle
const carbsPerInsulinUnit; // how many grams of carbs are metabolise per insulin unit
const carbsToHealthMagicNumber; // how many carbs convert to 1 unit of player health when metabolised
const carbsToBGLMagicNumber; // how many carbs convert to one point of BGL when unmetabolised
const BGLCorrectionPerInsulinUnitMagicNumber; // how many BGL points drop per one unit of insulin without carbs
carbsOnBoard; // current carbs onboard
@birdfly
birdfly / surge.conf
Created July 2, 2016 02:37 — forked from jason5ng32/surge.conf
Surge Configs ( for 2.x )
[General]
loglevel = notify
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29,223.5.5.5,114.114.115.115
# external-controller-access = PASSWORD@0.0.0.0:6155
# ipv6 = true
// REMEMBER TO CHANGE THE external-controller-access' PASSWORD