Skip to content

Instantly share code, notes, and snippets.

View StevenJDH's full-sized avatar
🎯
Focusing

Steven Jenkins De Haro StevenJDH

🎯
Focusing
View GitHub Profile
@StevenJDH
StevenJDH / Strimzi-0.48.0-Kafka 4.1.0-OAuth-0.17.1-Dockerfile
Created November 6, 2025 23:45
Strimzi 0.48.0 with Kafka 4.1.0 custom image workaround for strimzi/strimzi-kafka-oauth#283 to fix topic authorization failures when using Keycloak and delegateToKafkaAcls until official fix is released.
# USAGE:
# docker build -f ./Strimzi-0.48.0-Kafka-4.1.0-OAuth-0.17.1-Dockerfile -t stevenjdh/kafka:0.48.0-kafka-4.1.0-oauth-0.17.1 .
# docker run --rm -it stevenjdh/kafka:0.48.0-kafka-4.1.0-oauth-0.17.1 sh -c "ls -l /opt/kafka/libs/*.jar | grep kafka-oauth"
FROM quay.io/strimzi/kafka:0.48.0-kafka-4.1.0
USER root:root
ENV OAUTH_VERSION=0.17.1 \
MAVEN_BASE_URL=https://repo1.maven.org/maven2/io/strimzi \
@StevenJDH
StevenJDH / WireFormatAvroConsumer.java
Created October 22, 2025 19:50
Example showing how a Kafka consumer can read an Avro message using Confluent Wire Format without integrating with the Schema Registry.
/*
* This file is part of Wire Format Consumer Gist <https://github.com/StevenJDH>.
* Copyright (c) 2025 Steven Jenkins De Haro
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree or at
* https://opensource.org/licenses/MIT.
*/
package io.github.stevenjdh.examples.avro;
@StevenJDH
StevenJDH / WireFormatAvroProducer.java
Created October 22, 2025 19:47
Example showing how a Kafka producer can send an Avro message using Confluent Wire Format without integrating with the Schema Registry.
/*
* This file is part of Wire Format Producer Gist <https://github.com/StevenJDH>.
* Copyright (c) 2025 Steven Jenkins De Haro
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree or at
* https://opensource.org/licenses/MIT.
*/
package io.github.stevenjdh.examples.avro;
@StevenJDH
StevenJDH / battery.cs
Created April 8, 2018 11:06 — forked from ahawker/battery.cs
Battery info from win32 api
using System;
using System.IO;
using Microsoft.Win32.SafeHandles;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;
namespace Test
{