Skip to content

Instantly share code, notes, and snippets.

View jmsaavedra's full-sized avatar

Joe Saavedra jmsaavedra

View GitHub Profile
@jmsaavedra
jmsaavedra / cleo-regenerated.png
Last active August 3, 2026 07:56
Temporary Somewhere synthetic profile-source inspection
cleo-regenerated.png
@jmsaavedra
jmsaavedra / Mar12-5a-SL-Failure-Forensics.md
Created March 12, 2026 13:44
Slipstream Trader: Mar 12 5AM ET Stop-Loss Failure Forensics

Mar 12, 5:00-6:00 AM ET — SL Failure Forensics

Summary

  • ETH DOWN (SL 887): Entry 88¢, SL triggered at 50.1¢. GTC sell placed → cancelled after 14s. FAK fallback floor (48¢) was above market (~35¢) → all attempts missed. 29.35 shares never sold. Total loss ~$25.83.
  • BTC DOWN (SL 888): Entry 82¢, SL triggered at 52¢. GTC sell placed → filled on Polymarket at 60¢ ($18.26) but trader saw gtc_terminal_status:canceled. FAK fallback: "not enough balance/allowance" (shares already sold). Loss ~$6.95.

Key Findings

  1. BTC GTC sell DID fill on-chain but trader status check returned "canceled" → infinite retry loop on already-sold position
  2. ETH FAK floor too high — market crashed from 84.5¢ to ~35¢ by the time FAKs ran, but the 48¢ floor prevented all sell attempts from matching. NOT an empty orderbook — the floor was the problem.
  3. Both SLs stuck in retry loops (50+ attempts each) burning cycles on dead/sold positions

WhatsApp Conversations Feature!!!

Overview

The WhatsApp Conversations feature enables automated, personalized WhatsApp messaging flows for customers who interact with places through Forkast. When a customer taps the WhatsApp button in a PasosModule step, a conversation is automatically created and tracked in the database, enabling contextual, fork-specific replies without requiring the customer to send any codes or identifiers.

Implementation Status:Production Ready

  • ✅ conversations collection with 9 indexes (including TTL)
  • ✅ Multi-channel form_templates architecture (pasos-form, whatsapp, email)
@jmsaavedra
jmsaavedra / INTERACTIONS-VISITS-CUSTOMERS.md
Last active October 29, 2025 12:47
Data Architecture, relationship, and timing between Interactions, visits, and customer data

Interactions, Visits, and Customers

Complete Data Model Documentation

Last Updated: October 2025

Documentation Accuracy: Verified against codebase implementation October 2025


Overview

@jmsaavedra
jmsaavedra / vercel-ignored-build-commands.md
Created October 14, 2025 23:26
Vercel Ignored Build Command

Vercel Ignored Build Step Command Explanation

My Favorite Version

if [[ "$VERCEL_GIT_COMMIT_REF" != "main" ]]; then exit 1; fi; git diff HEAD^ HEAD --quiet -- . && exit 0 || exit 1

What It Does

@jmsaavedra
jmsaavedra / adb_commands.md
Last active March 19, 2025 14:57
ADB commands

Useful ADB Commands

Connecting to Device:

  • adb start-server
  • adb connect <ip-address>:4321 or adb connect <ip-address>:5555
  • adb devices

Resolution Settings:

  • adb shell wm size
  • adb shell wm size 1920x1920
@jmsaavedra
jmsaavedra / ffmpeg_install.md
Last active June 7, 2024 17:33
Install FFmpeg on a Linux Box

Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.

  • SSH into your instance and become root
@jmsaavedra
jmsaavedra / ffmpeg_cmds.md
Last active May 8, 2024 20:14
Collection of ffmpeg commands

Collection of Useful ffmpeg Commands

  • optimize with faststart (for mobile web)
  • crf (quality) goes from 0 (lossless) - 50 (very poor).
ffmpeg -i input.mp4 -crf 30 -profile:v baseline -level 3.0 -movflags +faststart -an output.mp4

@jmsaavedra
jmsaavedra / contracts...IoSingleTransferExt.sol
Created September 11, 2023 23:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: Infinite Objects
import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@manifoldxyz/creator-core-solidity/contracts/core/IERC1155CreatorCore.sol";
import "@manifoldxyz/creator-core-solidity/contracts/extensions/ERC1155/IERC1155CreatorExtensionApproveTransfer.sol";
@jmsaavedra
jmsaavedra / .deps...npm...@manifoldxyz...creator-core-solidity...contracts...core...CreatorCore.sol
Created September 11, 2023 23:24
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";