Skip to content

Instantly share code, notes, and snippets.

View MaxClerkwell's full-sized avatar
🦖

Stephanos MaxClerkwell

🦖
View GitHub Profile
@MaxClerkwell
MaxClerkwell / social_media_plan_2026-W17.csv
Created April 20, 2026 17:40
Social media posting plan — Week 17 (Apr 20–26 2026)
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
date,channel,format,topic,source_post,draft
2026-04-20,X / Twitter,thread (7 tweets),Manifesto launch — indicators are not data,ai-gruppe-manifesto,"Tweet 1: Everyone racing to add AI to their factory floor. Nobody asks where the data comes from. 🧵
Tweet 2: Most operators think they're watching their process. They're not. They're watching indicators. Indicators are not data.
Tweet 3: Data pulled from a PLC through a protocol never designed for scale — that's a bottleneck dressed as instrumentation. SAP forms filled by hand — that's a human acting as a transducer. Neither is a real transform.
Tweet 4: The physicist doesn't solve problems in the noisy physical domain. They transform the problem first — into an abstract space where solutions are tractable. That's the Laplace transform. It's also exactly what a monitoring system does.
Tweet 5: Sensor → timestamped data stream → anomaly detection → actuation. You can't skip step one and call the rest AI. You cannot solve in the abstract if your transform is br
@MaxClerkwell
MaxClerkwell / OmnAIPlot.py
Last active March 20, 2025 19:49
This script can be used to display captured data from an AUTO-INTERN OmnAIScope (https://www.amazon.de/OmnAIScope-AUTO-INTERN-Aufl%C3%B6sung-Scriptbar/dp/B0DY1FJDPC/)
import pandas as pd
import matplotlib.pyplot as plt
import argparse
def load_data(input_path):
df = pd.read_csv(args.input_file, header=0, skipinitialspace=True, encoding="utf-8")
df.columns = df.columns.str.strip()
return df
def show_plot(dataframe):
/home/stephan/yocto/poky-honister/bitbake/lib/bb/cooker.py:16: DeprecationWarning: module 'sre_constants' is deprecated
import sre_constants
28828 13:19:28.141493 --- Starting bitbake server pid 28828 at 2025-03-17 13:19:28.141481 ---
28828 13:19:28.143602 Started bitbake server pid 28828
28828 13:19:28.143679 Entering server connection loop
28828 13:19:28.143803 Accepting [<socket.socket fd=6, family=1, type=1, proto=0, laddr=bitbake.sock>] ([])
28828 13:19:28.144269 Processing Client
28828 13:19:28.144291 Connecting Client
28828 13:19:28.144412 Running command ['setFeatures', [2, 1]]
28828 13:19:28.144448 Command Completed
/home/stephan/yocto/poky-honister/bitbake/lib/bb/cooker.py:16: DeprecationWarning: module 'sre_constants' is deprecated
import sre_constants
28828 13:19:28.141493 --- Starting bitbake server pid 28828 at 2025-03-17 13:19:28.141481 ---
28828 13:19:28.143602 Started bitbake server pid 28828
28828 13:19:28.143679 Entering server connection loop
28828 13:19:28.143803 Accepting [<socket.socket fd=6, family=1, type=1, proto=0, laddr=bitbake.sock>] ([])
28828 13:19:28.144269 Processing Client
28828 13:19:28.144291 Connecting Client
28828 13:19:28.144412 Running command ['setFeatures', [2, 1]]
28828 13:19:28.144448 Command Completed
@MaxClerkwell
MaxClerkwell / CMakeLists.txt
Last active May 14, 2023 14:36
This Gist helps to get the first Copperspice Tutorial from the CS-Journal running under Ubuntu 20.04. Check out the CS-Journal at https://journal.copperspice.com
cmake_minimum_required(VERSION 3.16)
project(example_1)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)
include(CheckIncludeFile)
include(CheckIncludeFiles)
find_package(CopperSpice REQUIRED)
@MaxClerkwell
MaxClerkwell / CMakeLists.txt
Last active May 14, 2023 13:26
This is example 1 of the Copperspice-Journal at https://journal.copperspice.com/
cmake_minimum_required(VERSION 3.16)
project(example_1)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)
include(CheckIncludeFile)
include(CheckIncludeFiles)
find_package(CopperSpice REQUIRED)
@MaxClerkwell
MaxClerkwell / CMakeLists.txt
Created May 14, 2023 13:15
This is the minimalistic CMake file for example 1 of the copperspice-journal at https://journal.copperspice.com/?p=160
cmake_minimum_required(VERSION 3.16)
project(example_1)
include(CheckCXXCompilerFlag)
include(CheckCXXSourceCompiles)
include(CheckIncludeFile)
include(CheckIncludeFiles)
find_package(CopperSpice REQUIRED)
@MaxClerkwell
MaxClerkwell / csv.py
Created April 25, 2023 08:10
FastAPI to upload .csv and write into Database
import csv
import io
from fastapi import FastAPI, File, UploadFile, HTTPException
from sqlalchemy import create_engine, Column, Integer, String, Float, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import declarative_base, relationship, sessionmaker
# Datenbankkonfiguration
DATABASE_URL = "sqlite:///./sensordaten.db"
engine = create_engine(DATABASE_URL)
@MaxClerkwell
MaxClerkwell / fetch_and_sort.py
Created April 21, 2023 13:45
Zechen fetch and sort
import requests
import sys
def fetch_data(api_url):
response = requests.get(api_url)
data = response.json()
return data
def sort_data(data, column):
try:
import tkinter as tk
from tkinter import messagebox
import requests
# Keycloak-Konfiguration
keycloak_url = "https://your-keycloak-server/auth/realms/your-realm/protocol/openid-connect/token"
client_id = "your-client-id"
client_secret = "your-client-secret"