Skip to content

Instantly share code, notes, and snippets.

View lexpank's full-sized avatar
⚔️
Focusing

Alexander lexpank

⚔️
Focusing
View GitHub Profile
@lexpank
lexpank / pulsepost.py
Created May 31, 2026 19:35
A tiny keep-alive JSON POST load tester for checking API headroom before overbuilding
#!/usr/bin/env python3
"""PulsePost: tiny keep-alive JSON POST load tester.
Example:
python pulsepost.py \
--url https://api.example.com/v1/events/value \
--api-key "$API_KEY" \
--stat-name api.random_load_test \
--workers 50 \
--duration 60
@lexpank
lexpank / microgpt.cu
Created March 17, 2026 22:48
CUDA C microgpt
// Nobody asked for microgpt in CUDA C, which is exactly why it had to happen.
// It is no longer particularly micro.
// It is, however, stupidly fast.
#include <cuda_runtime.h>
#include <cublas_v2.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>