Skip to content

Instantly share code, notes, and snippets.

View aufi's full-sized avatar

Marek Aufart aufi

View GitHub Profile
@aufi
aufi / CLAUDE.md
Created September 25, 2026 15:11
Minimal personal adjustment for opencode and claude

Use gh for GitHub reads without asking. Never post pull request review comments without explicit confirmation; keep reviews local and focus on material issues.

Write GitHub comments and created files in English by default, even when the conversation uses another language. Use another language only when the user explicitly requests it.

For gh commands, always enclose text payloads in single quotes ('...'), never double quotes ("..."); pass longer payloads from a file using --input. Never use backticks inside double-quoted shell strings because they trigger command substitution; warn the user before running any command that contains this pattern.

@aufi
aufi / transform-optionals-examples.md
Last active August 12, 2026 08:07
crane transform plugin optionals examples

Transform Optional Flags: Usage Examples

Optional flags control plugin behavior during crane transform. They can be set globally (for all stages) or per-stage (overriding the global value for that stage).

Discovering Available Flags

crane transform optionals
@aufi
aufi / CONTEXT_GUIDE.md
Created February 10, 2026 16:06
k8s client contexts

Working with Kubernetes Contexts in client-go

This guide explains how to work with Kubernetes contexts using the client-go library.

What are Kubernetes Contexts?

A context in Kubernetes is a combination of three elements:

  • Cluster - which Kubernetes cluster to connect to
  • User - authentication credentials to use
@aufi
aufi / README.md
Last active September 29, 2025 09:39
AI notes

Agents and mostly local AI tooling notes. The focus is on writing tools using AI providing greater abilities than before, and making development more productive with AI assistants.

Agents as part of tools

MCP tools use-mcp langchain nanobot? parlant?

@aufi
aufi / patch.diff
Created February 12, 2025 09:34
kantra containerless dep labels
diff --git a/cmd/analyze-bin.go b/cmd/analyze-bin.go
index 47b663f..5ed82e7 100644
--- a/cmd/analyze-bin.go
+++ b/cmd/analyze-bin.go
@@ -98,14 +98,17 @@ func (a *analyzeCommand) RunAnalysisContainerless(ctx context.Context) error {
selectors = append(selectors, selector)
}
+ // analyze internal deps by default
var dependencyLabelSelector *labels.LabelSelector[*konveyor.Dep]
@aufi
aufi / get_kantra.sh
Created February 2, 2025 17:42
Get upstream kantra
#!/bin/bash
export KANTRA_DIR=~/.kantra
mkdir -p $KANTRA_DIR
podman create --name kantra-download quay.io/konveyor/kantra:latest # replace latest with required tag if needed
podman cp kantra-download:/usr/local/bin/kantra $KANTRA_DIR/kantra
podman cp kantra-download:/usr/local/bin/windows-kantra $KANTRA_DIR/windows-kantra.exe
podman cp kantra-download:/usr/local/bin/darwin-kantra $KANTRA_DIR/darwin-kantra
podman cp kantra-download:/jdtls $KANTRA_DIR/jdtls
podman cp kantra-download:/bin/fernflower.jar $KANTRA_DIR/fernflower.jar
@aufi
aufi / shell.out
Last active November 26, 2024 09:35
clean RHEL/Alma9 sdkman daytrader dep:tree failure reproducer
[aufi@localhost sample.daytrader7]$ sdk use maven 3.9.5
Using maven version 3.9.5 in this shell.
[aufi@localhost sample.daytrader7]$
[aufi@localhost sample.daytrader7]$ mvn -B dependency:tree -Djava.net.useSystemProxies=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] WAS Liberty Sample - Java EE7 Benchmark Sample - EJB Module [jar]
@aufi
aufi / konveyor_latest.log
Created November 25, 2024 18:08
daytrader application mvn failures0.6 vs main
sh-5.1$ cd /shared/source/sample/
sh-5.1$ mvn -B dependency:tree -Djava.net.useSystemProxies=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] WAS Liberty Sample - Java EE7 Benchmark Sample - EJB Module [jar]
[INFO] WAS Liberty Sample - Java EE7 Benchmark Sample - Web Module [war]
[INFO] WAS Liberty Sample - Java EE7 Benchmark Sample [pom]
[INFO] WAS Liberty Sample - Java EE7 Benchmark Sample - EAR [ear]
import argparse
import csv
import json
import requests
import sys
from dataclasses import dataclass
from pprint import pprint
# Use python >= 3.9 (datatypes and list)
@aufi
aufi / deps.yaml
Created September 24, 2024 12:09
acmeair-webapp analysis test tier0
- fileURI: /shared/bin/acmeair-webapp-1-0-SNAPSHOT-war-exploded/WEB-INF/lib/WEB-INF/lib/acmeair-common-1.0-SNAPSHOT-decompiled/acmeair-common-1.0-SNAPSHOT.jar/acmeair-common-1.0-SNAPSHOT.jar
provider: java
dependencies:
- name: net.wasdev.wlp.sample.acmeair-common
version: 1.0-SNAPSHOT
labels:
- konveyor.io/dep-source=open-source
- konveyor.io/language=java
prefix: file:///root/.m2/repository/net/wasdev/wlp/sample/acmeair-common/1.0-SNAPSHOT
- fileURI: /shared/bin/acmeair-webapp-1-0-SNAPSHOT-war-exploded/WEB-INF/lib/WEB-INF/lib/acmeair-services-1.0-SNAPSHOT-decompiled/acmeair-services-1.0-SNAPSHOT.jar/acmeair-services-1.0-SNAPSHOT.jar