Skip to content

Instantly share code, notes, and snippets.

View vincenzopalazzo's full-sized avatar
:octocat:
The commit can contain poetry

Vincenzo Palazzo vincenzopalazzo

:octocat:
The commit can contain poetry
View GitHub Profile
final systemPrompt = '''
You are an elite AI fitness advisor and exercise physiologist with expertise in training periodization, recovery science, and personalized programming.
CRITICAL: You MUST respond ONLY with valid JSON. No markdown, no explanations, no text outside the JSON structure.
ANALYSIS GUIDELINES:
- Analyze trends over the provided time period, not just single data points
- Consider the interplay between sleep, stress, recovery, and training capacity
- Factor in training load progression and recovery needs
- Prioritize injury prevention and sustainable training practices
SCORING CRITERIA (0-100):
- Sleep Score: Quality and duration of sleep (70+ = good, 80+ = excellent)
I/flutter (11586): │ #0 PremAIService.callPremAPI (package:pump/services/prem_ai_service.dart:286:15)
I/flutter (11586): │ #1 <asynchronous suspension>
I/flutter (11586): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (11586): │ 🐛 Response Headers: {connection: keep-alive, access-control-allow-origin: *, transfer-encoding: chunked, date: Tue, 01 Jul 2025 14:05:46 GMT, content-encoding: gzip, cf-cache-status: DYNAMIC, report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=4uWNnJPVND9mDDgTh%2FnqLTsEQnEbGZ0hOarVibu0k39Jtg5R8vTJbZtNRNF52FJ7u9TgfWpts6GY%2FrD%2B7covgwWfLhvFtXxgelYzLLoN"}]}, x-clerk-auth-status: signed-out, content-type: application/json, x-clerk-auth-reason: token-invalid, x-clerk-auth-message: Invalid JWT form. A JWT consists of three parts separated by dots. (reason=token-invalid, token-carrier=header), server: cloudflare, alt-svc: h3=":443"; ma=86400, nel:
# 🚀 AI Training Advisor v2.0 - Major Update
## Overview
This major update brings comprehensive improvements to the AI Training Advisor, eliminating critical runtime crashes, enhancing user experience, and implementing robust caching mechanisms for optimal performance.
---
## 🔧 **Critical Bug Fixes**
### Runtime Crash Elimination
error: failed to run custom build command for `secp256k1-sys v0.9.2`
Caused by:
process didn't exit successfully: `/Users/vincenzopalazzo/github/work/btc/ark-rs/target/debug/build/secp256k1-sys-9e8eae326563623e/build-script-build` (exit status: 1)
--- stdout
OUT_DIR = Some(/Users/vincenzopalazzo/github/work/btc/ark-rs/target/wasm32-unknown-unknown/debug/build/secp256k1-sys-cd6cec27dcc08ea4/out)
OPT_LEVEL = Some(0)
TARGET = Some(wasm32-unknown-unknown)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CC_wasm32-unknown-unknown
@vincenzopalazzo
vincenzopalazzo / gist:34c1486bf5949ac14eaa05664a73fc61
Last active May 2, 2025 07:16
Privacy policy for epump app
Privacy Policy for [App Name]
Last Updated: [Insert Date, e.g., May 2, 2025]
[App Name] ("we," "us," or "our") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, store, and disclose your personal information when you use our mobile application ([App Name], the "App"). By using the App, you agree to the terms of this Privacy Policy.
1. Information We Collect
We may collect the following types of personal information when you use the App:
Device Information: Details about your device, such as device type, operating system, and unique device identifiers.
Usage Data: Information about how you use the App, including features you interact with and usage patterns.
Location Data: If the App requires location services, we may collect your location information.
Personal Information You Provide: If you contact us directly, we may collect information such as your name and email address.
➜ ~ tac .lightning/bitcoin/log.log
2025-04-10T07:19:40.365Z **BROKEN** gossipd: STATUS_FAIL_INTERNAL_ERROR: gossip_store: bad checksum offset 14396: bb304cdbc06e683843c86db2349bb6a6190000000ae833fc9e0000000010050000000002625a00000001b08baba71166596b9601003519f9c04f909f7d80c922702f97bac0e07c274f376a858492080d01a186140406964f61ba9a04baf3ec568fd6bf7e01018b17b0a14cc5d6007edce73f90150e9b6268ccdcd144723e8d0cfd00919a2e3c6568d60fd49a0449c9f6c465a5b3c21a55adefbd99fb4d77db27d9e2121f6cf833a7d51b265420790126a29cc7a97ebe49d0514d9daa76f08d0f29ed62df656f71765fa9bee6171150feafaef4d4c7333ab635e6b0d06806bfbde95e14843e909982a6d392f453ebb194aa5df2d414665a10df10465bb878849e6cde200510eb29801607da0d4acf32c47140dc779e7af57efb94c5c74fb44896df0038556a378a306f5394e965d7346a6fb33d83fe00006fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d61900000000000bf4f60004be000102c197ffa4c2aa4105dd4c4b7279ba1b9061b22910ebbfa759b0001bed9ee48a1602f1a8c87607f415c8f22c00593002775941dea48869ce23096af27b0cfdcc0b690348c80d791bde6c41ab7133c210885ca13b68fa
➜ ~ lightning-cli listclosedchannels 03db10aa09ff04d3568b0621750794063df401e6853c79a21a83e1a3f3b5bfb0c8
{
"closedchannels": [
{
"peer_id": "03db10aa09ff04d3568b0621750794063df401e6853c79a21a83e1a3f3b5bfb0c8",
"channel_id": "55723d2fced081b834c118c8fe0281a6b8a1bf662dcf8fc38975ee13ad4841d7",
"short_channel_id": "870026x2631x0",
"alias": {
"local": "13876233x16241684x55225",
"remote": "574853x2274x7"
➜ ~ lightning-cli listpeerchannels 027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98
{
"channels": [
{
"peer_id": "027cb24c3c92387cba9a35ea145e2c41ab1849b4601b94b3fa27b2ffb429ebaf98",
"peer_connected": true,
"reestablished": true,
"channel_type": {
"bits": [
12,
diff --git a/vls-core/src/channel.rs b/vls-core/src/channel.rs
index 99825743..7aa2c398 100644
--- a/vls-core/src/channel.rs
+++ b/vls-core/src/channel.rs
@@ -2537,6 +2537,7 @@ impl Channel {
pub fn sign_holder_htlc_tx_phase2(
&self,
tx: &Transaction,
+ witness_script: &ScriptBuf,
commitment_number: u64,
➜ ~ sudo fwupdtool get-devices --plugins flashrom --verbose
09:56:46.952 FuDebug verbose to info (on console 1)
09:56:46.952 FuEngine starting fwupd 2.0.1…
Loading… [ - ]09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/lvfs-testing.conf
09:56:46.957 FuRemoteList auto-fixing remote lvfs-testing MetadataURI from https://cdn.fwupd.org/downloads/firmware-testing.xml.xz to https://cdn.fwupd.org/downloads/firmware-testing.xml.zst
09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/lvfs.conf
09:56:46.957 FuRemoteList loading remote from /etc/fwupd/remotes.d/vendor-directory.conf
09:56:46.957 FuRemoteList enabled remotes: vendor-directory[1000], lvfs-testing[1], lvfs[0]
Loading… [* ]09:56:46.963 FuQuirks loading quirks from /usr/share/fwupd/quirks.d
09:56:46.963 FuQuirks loading quirks from /v