Skip to content

Instantly share code, notes, and snippets.

View amoAHCP's full-sized avatar

Andy Moncsek amoAHCP

View GitHub Profile
@amoAHCP
amoAHCP / llm-wiki-obsidian-setup.md
Created April 27, 2026 19:21 — forked from kennyg/llm-wiki-obsidian-setup.md
LLM-Wiki Obsidian Setup Guide — full implementation of Karpathy's llm-wiki pattern

Setting Up the LLM-Wiki Pattern in Obsidian

Based on Karpathy's llm-wiki pattern — using LLMs to incrementally build and maintain a persistent, interlinked wiki from raw sources rather than re-deriving knowledge on every query.

Quick Start — Paste This Into Your Agent

Copy the prompt below into Claude Code, Codex, or any LLM agent with file access. It will scaffold the wiki, configure the tooling, and update your CLAUDE.md with the schema. Then you just start ingesting sources.

I want to set up the llm-wiki pattern in my Obsidian vault. Follow this guide exactly:
@amoAHCP
amoAHCP / claude-code-token-saving-guide.md
Created February 4, 2026 20:55 — forked from artemgetmann/claude-code-token-saving-guide.md
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@amoAHCP
amoAHCP / profiling-jvm-kubernetes-visualvm.md
Created November 2, 2023 09:55 — forked from anderson-custodio/profiling-jvm-kubernetes-visualvm.md
Profiling JVM on Kubernetes using VisualVM

Profiling JVM on Kubernetes using VisualVM

Enable JMX server

Edit Dockerfile to enable JMX server and change the hostname with the IP where the container will run:

FROM openjdk:8-jre-alpine
ADD ./target/app.jar app.jar
EXPOSE 8080
ENTRYPOINT java -Dcom.sun.management.jmxremote.rmi.port=9090 -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.local.only=false -Djava.rmi.server.hostname=192.168.1.2 -jar app.jar
@amoAHCP
amoAHCP / Dockerfile
Created June 20, 2018 07:01 — forked from brendan-rius/Dockerfile
DeamonSet for setting inotify config in each nodein k8s
FROM alpine
COPY configure-node.sh configure-node.sh
CMD ["/bin/sh", "configure-node.sh"]
@amoAHCP
amoAHCP / Dockerfile
Created May 18, 2018 12:39
modular runtime Image
FROM openjdk:9-jdk-sid AS builder
WORKDIR /app
COPY target/vxms-core-demo-1.2-SNAPSHOT.jar .
COPY target/mod/ .
RUN jlink --module-path vxms-core-demo-1.2-SNAPSHOT.jar:mod:$JAVA_HOME/jmods \
@amoAHCP
amoAHCP / pom.xml
Created May 18, 2018 12:35
moditec modular build
<!--
~ Copyright [2018] [Andy Moncsek]
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
@amoAHCP
amoAHCP / SimpleREST.java
Created February 1, 2017 12:54
Fabric8-Kubernetes-usage
package org.jacpfx;
import io.fabric8.kubernetes.api.model.EndpointSubset;
import io.fabric8.kubernetes.api.model.EndpointsList;
import io.fabric8.kubernetes.client.Config;
import io.fabric8.kubernetes.client.ConfigBuilder;
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Future;
/**
* Discovers the nodes. It queries all endpoints (services) with a label `label` set to `labelValue`. By default,
* it's `vertx-cluster=true`. When no endpoints were found, all endpoints in namespace without specific label are queried.
*
* @return the list of discovery nodes
*/
@Override
public Iterable<DiscoveryNode> discoverNodes() {
EndpointsList list = client.endpoints().inNamespace(namespace).withLabel(label, labelValue).list();
apiVersion: v1
kind: Service
metadata:
name: etcd-client
spec:
ports:
- name: etcd-client-port
port: 2379
protocol: TCP
targetPort: 2379
@amoAHCP
amoAHCP / DnsEndpointResolver.java
Created May 28, 2016 20:47
fallback port number for hazelcast
/*
* Copyright (c) 2015, Christoph Engelbert (aka noctarius) and
* contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*