Skip to content

Instantly share code, notes, and snippets.

View gartmeier's full-sized avatar

Joshua Gartmeier gartmeier

  • Pitcher AG
  • Switzerland
View GitHub Profile
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Donation Completed Event",
"description": "Schema for donation.completed webhook events",
"required": ["id", "event", "created", "environment", "data"],
"properties": {
"id": {
"type": "integer",
"description": "Unique event identifier"
@gartmeier
gartmeier / udp-ingress-batched.js
Last active December 18, 2025 09:09
Node.js UDP ingress with batching for high-throughput IoT measurements
// udp-ingress.js
// Node.js UDP ingress with batching for high-throughput IoT measurements
const dgram = require('dgram');
const http = require('http');
const cluster = require('cluster');
const os = require('os');
// Configuration
const CONFIG = {
# views.py
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
import json
from .models import Measurement
from .tasks import process_measurement_batch
@csrf_exempt