Skip to content

Instantly share code, notes, and snippets.

View pgellert's full-sized avatar

Gellért Peresztegi-Nagy pgellert

View GitHub Profile
% echo '{
"Version": 12,
"AllowAutoTopicCreation": true,
"IncludeClusterAuthorizedOperations": false,
"IncludeTopicAuthorizedOperations": false,
"Topics": [{"Topic": "does-not-exist"}, {"TopicID": [
143,
47,
236,
130,
@pgellert
pgellert / gist:877f04bb5ee8d224dbe303573d994877
Created August 19, 2025 16:06
ak4-auto-topic-create-repro
# Start AK 4.0.0 with KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
# Create a topic
% rpk topic create metadata_autocreate_query
TOPIC STATUS
metadata_autocreate_query OK
# Get the topic ID of the created topic
% echo '{
"Version": 12
@pgellert
pgellert / pre-commit
Last active September 30, 2025 10:24
#!/bin/bash
# Run the linter on changed files:
#linter=./tools/clang-format
#linter=./bazel-out/k8-fastbuild/bin/external/toolchains_llvm++llvm+llvm_18_toolchain/clang-format
linter=./bazel-out/k8-fastbuild/bin/external/toolchains_llvm++llvm+current_llvm_toolchain/clang-format
#linter=./bazel-out/k8-fastbuild/bin/external/toolchains_llvm++llvm+previous_llvm_toolchain/clang-format
if [ ! -f "$linter" ]; then
echo "Linter not found at $linter"