Skip to content

Instantly share code, notes, and snippets.

View R4wm's full-sized avatar
πŸ’
tab tab tab...

r4wm R4wm

πŸ’
tab tab tab...
View GitHub Profile
@R4wm
R4wm / CDP-Events-Endpoint-Guide.md
Last active January 28, 2026 23:27
CDP Events Endpoint - Client Integration Guide (TVM-1727)

CDP Events Endpoint - Client Integration Guide

Endpoint

Development:

POST https://playtv-api.forte.ws/v1/events

Production: (coming soon)

@R4wm
R4wm / 20260128_kafka_summary.md
Last active January 28, 2026 17:42
Kafka meeting summary 2026-01-28

Here’s a concise summary + work items focused on implementation‑relevant points from the Kafka meeting notes.

Summary (implementation‑relevant highlights)

  • The events endpoint currently requires auth, but there’s consensus that unauthenticated (guest) events are needed. This is a potential DDoS vector, so any unauthenticated mode needs rate‑limiting or an API key strategy.
  • Clients were hitting 500s on the events endpoint. Root cause likely in validation/headers. Once the correct request + headers were used, responses became sane (401 or validation errors). Accept header absence can trigger HTML response instead of JSON.
  • Logging quality is important for debugging bad payloads; logs should be useful in dev.
  • Feature flag is required on mobile/web so event sending can be toggled off by default, especially in production builds.
  • Batching events is expected; payloads should accept arrays and clients can send every 5–10 seconds.
  • Brand/tenant identification s
@R4wm
R4wm / CDP_Meeting_TODOs_2026-01-27.md
Last active January 27, 2026 17:51
CDP Meeting TODOs - 2026-01-27

CDP Meeting TODOs - 2026-01-27

For Raymond Mintz

  1. Send Yan the metrics endpoint and payload (explicitly requested)

    • Endpoint already exists at POST /v1/events (no /api prefix)
    • Controller: app/Http/Controllers/EventController.php
    • Returns 202 {"success": true}
  2. Increase payload size limit - Support batch events (~500KB suggested)

@R4wm
R4wm / cdp-event-envelope.md
Created January 22, 2026 21:02
CDP Event Envelope Schema for Kafka messages

CDP Event Envelope Schema

This is the JSON structure for all events published to Kafka topics (events.raw, events.views).

Structure

{
  "metadata": {
    "event_id": "uuid-v7",

RAID1 Hot-Swap Procedure & Maintenance

Array Info

  • Device: /dev/md0
  • Type: RAID1 (mirror)
  • Size: 8TB (2x 8TB drives)
  • Mount: /mnt/storage

Engine Build Comparison

Specs Overview

Build Name Static CR Dyn CR @68Β° HP Range TQ Range Notes
347 TFS 11R 170/53 Flat-Top 11.39 8.86 420–450 hp 400–430 lb-ft High comp, CNC heads, pump gas 93 required
347 TFS 11R 170/53 Dish 9.95 7.77 395–425 hp 380–410 lb-ft Safe pump gas, still strong street combo
347 Liberty 180/64 Flat-Top 9.95 7.77 410–440 hp 395–420 lb-ft Non-CNC, lower comp, safer but slightly softer
347 Liberty 180/64 Dish 8.86 6.95 375–410 hp 365–400 lb-ft Very safe CR, better for boost than NA
@R4wm
R4wm / media-processor_flow.md
Last active August 19, 2025 22:24
media-processor process flow

  Moderation Process Flow

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚   User      │────▢│    API Server    │────▢│   PostgreSQL    β”‚
  β”‚   Upload    β”‚ β‘    β”‚  (FastAPI)       β”‚ β‘‘   β”‚   Database      β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚ β‘’
                               β–Ό
@R4wm
R4wm / sbf_302_torque_specs.json
Created June 8, 2025 16:15
sbf_302_torque_specs
{
"Ford_302_Push_Rod_Engine_Torque_Specs": {
"Main_Cap_Bolts": "60-70 ft.-lbs.",
"Connecting_Rod_Bolts": {
"Standard": "22-25 ft.-lbs.",
"289HP_and_Boss_302": "40-45 ft.-lbs."
},
@R4wm
R4wm / gist:9879b31fb832d0ad2f47e424fec7d997
Created February 26, 2025 15:41
backup Obsidian notes to remote private machine
Ξ» rsync -e ssh -avz Obsidian\ Vault/ [email protected]:~/Documents/
@R4wm
R4wm / reverse_ssh_tunnel.sh
Created January 10, 2025 13:46
so i can get to my desktop from my internal jump box
#!/bin/bash
autossh -M 20002 -N -R 20000:localhost:22 [email protected]