<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>keeb.dev</title>
    <link>https://keeb.dev/</link>
    
    <atom:link href="https://keeb.dev/rss.xml" rel="self" type="application/rss+xml"/>
    
    <description>I&#39;m keeb. I&#39;ve been on the internet forever. I build companies at the bleeding edge that become industry standards. This is where I write about what I&#39;m building.</description>
    <pubDate>Wed, 14 Oct 2026 02:06:03 GMT</pubDate>
    <generator>http://hexo.io/</generator>
    
    <item>
      <title>Announcing Swamp Club</title>
      <link>https://keeb.dev/2026/10/14/announcing-swamp-club/</link>
      <guid>https://keeb.dev/2026/10/14/announcing-swamp-club/</guid>
      <pubDate>Wed, 14 Oct 2026 00:00:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;It feels weird starting a software company when everyone around you says software is dead. And look around you - just this week people ar</description>
        
      
      
      
      <content:encoded><![CDATA[<p>It feels weird starting a software company when everyone around you says software is dead. And look around you - just this week people are <a href="https://getartcraft.com/">reverse engineering tools we all grew up with</a>, every company and technology out there has an AI story, the SaaSpocalypse is coming for us all. And yet.</p><p>We started Swamp with two simple ideas.</p><p>First, let’s embrace this change and maximize the use of AI across our business. From our pitch deck, our business model, forecasting, all the way to engineering. Everything. We set out to put ourselves in the seat of every job function and feel the impact from first principles.</p><p>It’s working. Swamp is in use in every aspect of our business from finance to customer success, and everything in between. The team is lean and shipping. If you find a bug or submit a feature request for Swamp, the stats say it will be looked at in about 3 hours and solved an hour later. Working software, in your hands.</p><p>Second, let’s build software for <em>you</em> so that <em>you</em> love it. It sounds trite. Of course you want to build software that people love. I mean something deeper than that. Swamp is built for you, specifically. The person reading this post. The one who shows up. Who has something to build. With a network of peers sharing what works, and what doesn’t. Because after all, the first rule of Swamp Club is to tell all of your friends about Swamp Club.</p><p><img src="/2026/10/14/announcing-swamp-club/swamp-club-sticker.png" alt="Swamp Club sticker"></p><p>Today, we’re officially launching the company. <a href="https://swamp-club.com/">Swamp Club</a> has raised a $7M seed round to empower builders wherever they sit in the business and keep shipping software built for you. The round is led by <a href="https://www.amplifypartners.com/">Amplify Partners</a>, with participation from <a href="https://encoded.vc/">Encoded Ventures</a> and some awesome angel investors.</p><p>In the <a href="https://swamp-club.com/press/swamp-ushers-in-the-second-ai-frontier">press release</a> you’ll find we’re well on our journey: we have thousands of users who have built with Swamp over 340 million times. In addition, we have an ecosystem of extensions that reach into the systems you work with, <a href="https://swamp-club.com/feed">a community that communicates by writing</a>, and a whole slew of customers who are solving real business problems.</p><p>Let’s get building.</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/swamp/">swamp</category>
      
      
      <comments>https://keeb.dev/2026/10/14/announcing-swamp-club/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Three Minutes of Trouble, 20 million events</title>
      <link>https://keeb.dev/2026/07/22/three-minutes-of-trouble/</link>
      <guid>https://keeb.dev/2026/07/22/three-minutes-of-trouble/</guid>
      <pubDate>Wed, 22 Jul 2026 00:00:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;This is a &lt;a href=&quot;https://webframp.com/posts/six-million-events/&quot;&gt;reflection of a post&lt;/a&gt; written by Sean aka webframp on a serious loa</description>
        
      
      
      
      <content:encoded><![CDATA[<p>This is a <a href="https://webframp.com/posts/six-million-events/">reflection of a post</a> written by Sean aka webframp on a serious load test performed against the club. An insight into how it looked from the other side.</p><p>I spent this last Saturday hacking on <a href="https://swamp-club.com/">Swamp Club</a> building a <a href="https://swamp-club.com/u/keeb/activity">combat log</a> and a couple handfuls of other non-user facing performance and architecture changes. Quick aside: The combat log is awesome. It exists to answer how users at the top of the leaderboard get there. Ultimate transparency. What are they doing, exactly? </p><p>Anyway, to further set the stage, I enjoy working over the weekend while chatting on <a href="https://discord.gg/swamp-club">Discord.</a> Get a little Claude going, talk a little shit, dream a little, maybe watch some world cup. It’s cozy, it’s nice, most of all, it’s fun. </p><p>Fast forward to the evening, I’m almost finished with the campaign in the new Torchlight Infinite season, and I see these 2 messages from <a href="https://matgreten.dev/">Mat Greten</a> in the span of 30 seconds. </p><blockquote><p>🚨 swamp club site may be down<br>…<br>It’s back for me now</p></blockquote><p>Check the site myself. Seems slow. Pop open Grafana, look at the nodes. Looks bad. Ask homie claude to look at the logs…</p><p><img src="/2026/07/22/three-minutes-of-trouble/grafana-load.png" alt="CPU, memory, network, and disk during the load test"></p><p>Traefik keeps getting oom-killed. Telemetry service is <em>struggling</em>. Something is happening. Fun is happening.</p><p>In the end, all that needed to change was 2 things. Scale Traefik up from 2 instances to 6. Scale our ingest servers up from 2 to 4. That was enough to sustain the <del>attack</del> 600 event&#x2F;second burst of usage and drain the backlog at 2,400 events&#x2F;second. </p><p>3 minutes of instability. ~45 minutes to drain. No data lost.</p><h1 id="Growth"><a href="#Growth" class="headerlink" title="Growth"></a>Growth</h1><p>On Saturday morning, Swamp Club had processed ~12.5 million automation events. That’s anytime someone runs a <code>swamp</code> command with telemetry enabled. That’s you, that’s me, that’s automation, that’s CI. Swamp delivering value to someone, somewhere.</p><p>By midnight on Saturday evening, Swamp Club was at 32 million events. 9 am Sunday morning: 36.2 million. As I write this: 41.3 million. That’s 20 million events in an evening.</p><p>To put this in perspective: it took ~60 days to go from 0 to 1 million. ~8 days to go from 1 to 2 million. On July 6th we celebrated 10 million.</p><p>And we’re still just getting started.</p><h1 id="Comms-and-the-aftermath"><a href="#Comms-and-the-aftermath" class="headerlink" title="Comms and the aftermath"></a>Comms and the aftermath</h1><p>I had a hunch, based on a number of data points, about who the culprit was. I sent webframp a discord DM</p><blockquote><p>are you running something insane rn?</p></blockquote><p>Turns out yes, yes he was. He gave me the details he shared in his post. Apologized for bringing stuff down. My response? “yeah, don’t stop. you’re completely fine this is helping”</p><p>You see - it’s one thing to design for scale. It’s another to live it. When someone gives you the opportunity, you don’t shy away. You embrace it. Own it. </p><p>I called the shot after a little back and forth.</p><blockquote><p>this is exactly the type of demand we need to meet, and we should design for, and don’t apologize! this is how stories are made</p></blockquote><p>Yep. That’s it. The entire post can be boiled down to this sentence.</p><p>As Sean points out, there’s a lot of ways to respond to a situation like this, downtime on the line, when the perceived stakes are low. I could have told him to turn it off and knock it out. It would have been valid, even. </p><p>But honestly; that’s not fun. I’d rather know when the stakes are low. He’d rather know, too. How does this small team react when things go bad? Now he knows.</p><h1 id="Fun"><a href="#Fun" class="headerlink" title="Fun"></a>Fun</h1><p>It’s hard in retrospect to convey just how much fun I was having: to see it all playing out exactly as I’d hoped. To dare the test to continue. To harden the design afterwards.</p><p>And I think that’s what it all boils down to in the end. I’m having a blast building Swamp Club for you all, interacting with our community of builders every day. Software may be dead, but whatever this is? It’s alive.</p><p>And that’s all that matters.</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/swamp/">swamp</category>
      
      <category domain="https://keeb.dev/tags/op/">op</category>
      
      <category domain="https://keeb.dev/tags/games/">games</category>
      
      
      <comments>https://keeb.dev/2026/07/22/three-minutes-of-trouble/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Building a Group TV Recommendation Engine</title>
      <link>https://keeb.dev/2026/05/22/tv-recommendations-ai/</link>
      <guid>https://keeb.dev/2026/05/22/tv-recommendations-ai/</guid>
      <pubDate>Fri, 22 May 2026 00:00:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;AI sucks at following instructions; as tokens increase, its accuracy drops. Ultimately, it lets you down. Like a hyped up kid on too much</description>
        
      
      
      
      <content:encoded><![CDATA[<p>AI sucks at following instructions; as tokens increase, its accuracy drops. Ultimately, it lets you down. Like a hyped up kid on too much addy with 17 different distractions, lets just say it tends to drift a little from your initial intent.</p><p>What it’s <em>great</em> at is objectively analyzing against a set of principles. </p><p>In practical terms: <code>go find me a list of tv shows with this criteria</code> gets you vastly inferior results to <code>here&#39;s a bunch of metadata about a TV Show - render a verdict based on the following criteria</code></p><p><video src="./demo.mp4" autoplay muted loop playsinline preload="auto" style="width:100%;max-width:960px;height:auto;border-radius:6px;"></video></p><div style="text-align: right; font-size: 0.85em; font-style: italic; color: #888; margin-top: 0.5em;">Watch/Skip verdicts rolling in for this week's popular shows.</div><h1 id="Why-I-built-it"><a href="#Why-I-built-it" class="headerlink" title="Why I built it"></a>Why I built it</h1><p>I have a <a href="https://gameswiththebois.com/">discord group of friends</a> that regularly hangs together - play games, stream movies, watch TV. Normal stuff - Except we watch a lot, and sometimes it’s difficult to figure out what to watch next. Classic.</p><p>There’s so much TV, all coming out on different schedules, on different streaming services. The TV show databases out there only give a generic answer to what’s popular. Asking our homie <a href="https://claude.ai/">Claudius</a> directly only gets you info about some hits based on last year’s data - I’ve tried. Not helpful.</p><p>What if I could somehow divine our group preferences based on what we’ve watched previously and judge any new TV that comes out against it? So I built it - with <a href="https://swamp.club/">swamp</a>.</p><h1 id="How-it-works"><a href="#How-it-works" class="headerlink" title="How it works"></a>How it works</h1><p>Three pieces, one workflow.</p><h2 id="The-composition"><a href="#The-composition" class="headerlink" title="The composition"></a>The composition</h2><ul><li><a href="/2026/05/22/tv-recommendations-ai/host.txt">The host</a> - The recommendation engine - generated by distilling about 20MB of yappity over the past couple of years. Decides - Watch or Skip?</li><li><a href="https://rottentomatoes.com/">Rotten Tomatoes</a> for list of what’s new and what’s popular</li><li><a href="https://themoviedb.org/">The Movie Database</a> to enrich those listings with metadata</li></ul><p>The whole pipeline is one workflow: scrape the browse page, enrich each show via TMDB, fan out one Claude call per show with <code>host.md</code> baked into the prompt, aggregate the verdicts into the table.</p><h2 id="The-results"><a href="#The-results" class="headerlink" title="The results"></a>The results</h2><p>The holy grail - an answer! In the shape of a swamp report. Best part? It’s all versioned, query-able data, stored as an artifact of the run. Next time you run Claude you can say - “We watched X, what was left on the list?” And it can just look it up. Or you can.</p><h1 id="Run-it-yourself"><a href="#Run-it-yourself" class="headerlink" title="Run it yourself"></a>Run it yourself</h1><p>The extension is on <a href="https://swamp-club.com/extensions/@keeb/mms">Swamp Club</a> as <code>@keeb/mms</code>. You’ll need swamp, node + playwright for the RT scraper, a <a href="https://www.themoviedb.org/settings/api">TMDB</a> key, and an <a href="https://console.anthropic.com/">Anthropic</a> key.</p><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="comment"># in a swamp repo</span></span><br><span class="line">swamp extension pull @keeb/mms</span><br><span class="line">npm install playwright   <span class="comment"># node module the RT scraper requires</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># secrets</span></span><br><span class="line">swamp vault put homelab tmdb-api-key      sk-...</span><br><span class="line">swamp vault put homelab anthropic-api-key sk-ant-...</span><br><span class="line"></span><br><span class="line"><span class="comment"># wire up the three model instances</span></span><br><span class="line">swamp model create @keeb/rottentomatoes       rottentomatoes</span><br><span class="line">swamp model create @keeb/anthropic/claude     host-evaluator</span><br><span class="line">swamp model create @keeb/mms/tv-recommender   tv-recommender</span><br></pre></td></tr></table></figure><p>Then edit each instance’s <code>globalArguments</code>. The scraper needs your TMDB key (it’s a model arg, not just used by the enricher) and runs headless:</p><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># models/@keeb/rottentomatoes/&lt;id&gt;.yaml</span></span><br><span class="line"><span class="attr">type:</span> <span class="string">&#x27;@keeb/rottentomatoes&#x27;</span></span><br><span class="line"><span class="attr">globalArguments:</span></span><br><span class="line">  <span class="attr">tmdbApiKey:</span> <span class="string">&#x27;$&#123;&#123; vault.get(&quot;homelab&quot;, &quot;tmdb-api-key&quot;) &#125;&#125;&#x27;</span></span><br><span class="line">  <span class="attr">headless:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><p><code>host-evaluator</code> is just <code>@keeb/anthropic/claude</code> pointed at your Anthropic key. Pick the model and cap the tokens — verdicts are short:</p><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># models/@keeb/anthropic/claude/&lt;id&gt;.yaml</span></span><br><span class="line"><span class="attr">type:</span> <span class="string">&#x27;@keeb/anthropic/claude&#x27;</span></span><br><span class="line"><span class="attr">globalArguments:</span></span><br><span class="line">  <span class="attr">apiKey:</span> <span class="string">&#x27;$&#123;&#123; vault.get(&quot;homelab&quot;, &quot;anthropic-api-key&quot;) &#125;&#125;&#x27;</span></span><br><span class="line">  <span class="attr">model:</span> <span class="string">claude-sonnet-4-5-20250929</span></span><br><span class="line">  <span class="attr">maxTokens:</span> <span class="number">400</span></span><br></pre></td></tr></table></figure><p><code>tv-recommender</code> needs nothing — leave it empty and it uses the <code>host.md</code> bundled with the extension. Point <code>personaPath</code> at a file in your repo to bring your own:</p><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># models/@keeb/mms/tv-recommender/&lt;id&gt;.yaml</span></span><br><span class="line"><span class="attr">type:</span> <span class="string">&#x27;@keeb/mms/tv-recommender&#x27;</span></span><br><span class="line"><span class="attr">globalArguments:</span></span><br><span class="line">  <span class="comment"># personaPath: design/adversary/host.md   # optional — your own persona</span></span><br></pre></td></tr></table></figure><p>Then run it:</p><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">swamp workflow run rt-popular --input <span class="built_in">limit</span>=20</span><br><span class="line">swamp data get --workflow rt-popular report-keeb-mms-tv-recommendations</span><br></pre></td></tr></table></figure><p>Swap <code>rt-popular</code> for <code>rt-newest</code> if you’d rather evaluate what just dropped instead of what’s trending. Replace the bundled <code>host.md</code> with your own group’s profile and you’ve got a recommender that knows <em>your</em> people.</p><p>What are you watching?</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/swamp/">swamp</category>
      
      <category domain="https://keeb.dev/tags/tv/">tv</category>
      
      <category domain="https://keeb.dev/tags/streaming/">streaming</category>
      
      <category domain="https://keeb.dev/tags/friends/">friends</category>
      
      
      <comments>https://keeb.dev/2026/05/22/tv-recommendations-ai/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Building Infrastructure Automation with Claude and Swamp</title>
      <link>https://keeb.dev/2026/02/03/ai-native-infrastructure/</link>
      <guid>https://keeb.dev/2026/02/03/ai-native-infrastructure/</guid>
      <pubDate>Tue, 03 Feb 2026 00:00:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;I’ve been building with swamp, an AI-native automation framework, and I wanted to see what happens when Claude and swamp work together on</description>
        
      
      
      
      <content:encoded><![CDATA[<p>I’ve been building with swamp, an AI-native automation framework, and I wanted to see what happens when Claude and swamp work together on a real infrastructure problem. The prompt was simple:</p><blockquote><p>“Describe my Proxmox infrastructure. Go as deep as you need to. Use swamp. Build what you need.”</p></blockquote><p>What follows is a story of two systems working together: <strong>swamp</strong> provides the runtime, CLI, model orchestration, immutable state storage, and validation—while <strong>Claude</strong> writes code, makes architectural decisions, and invokes swamp’s CLI to bring it all together.</p><h2 id="How-This-Works"><a href="#How-This-Works" class="headerlink" title="How This Works"></a>How This Works</h2><p>Before diving in, here’s the relationship: swamp is the framework and runtime. It provides a CLI (<code>swamp model create</code>, <code>swamp model method run</code>, etc.), a model system for defining typed resources, workflow orchestration, expression evaluation, and persistent state storage. Claude uses swamp’s CLI to create models, run methods, and store infrastructure state. Claude writes the TypeScript code; swamp compiles, validates, and executes it.</p><p>Every time you see “we ran” or “we created” below, that’s Claude invoking swamp commands and swamp executing them.</p><h2 id="The-Starting-Point-Nothing"><a href="#The-Starting-Point-Nothing" class="headerlink" title="The Starting Point: Nothing"></a>The Starting Point: Nothing</h2><p>Swamp had zero Proxmox support. No models, no auth, no API bindings. Just some generic stuff like echo and curl. And if you’ve ever worked with Proxmox’s API, you know the curl model wasn’t going to cut it—Proxmox uses this whole ticket-based auth flow where you POST to get a session ticket, then pass it as a cookie on subsequent requests. Plus CSRF tokens. Plus self-signed certs because it’s a homelab.</p><p>So Claude looked at swamp’s extension model system and said: “I can build what we need.”</p><h2 id="Building-the-Extension"><a href="#Building-the-Extension" class="headerlink" title="Building the Extension"></a>Building the Extension</h2><p>Swamp’s extension model system is what makes this possible. You write TypeScript models that swamp compiles and executes via Deno. Claude created <code>extensions/models/proxmox_api.ts</code>:</p><figure class="highlight typescript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">const</span> model = &#123;</span><br><span class="line">  <span class="attr">type</span>: <span class="string">&quot;proxmox/api&quot;</span>,</span><br><span class="line">  <span class="attr">version</span>: <span class="number">1</span>,</span><br><span class="line">  <span class="attr">inputAttributesSchema</span>: <span class="title class_">InputSchema</span>,</span><br><span class="line">  <span class="attr">dataAttributesSchema</span>: <span class="title class_">DataSchema</span>,</span><br><span class="line">  <span class="attr">methods</span>: &#123; authenticate, listVms, getVm &#125;</span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure><p>Swamp provides the schema validation, method execution runtime, and state persistence. Claude writes the implementation. The key insight was creating a <code>fetchWithCurl()</code> wrapper (lines 129-182 in the extension) that handles all the Proxmox quirks—self-signed certs, cookie auth, response parsing. Once that foundation was there, adding new API methods became trivial: Claude writes the code, runs <code>swamp model method run</code> to test it, swamp validates and executes.</p><h2 id="Then-We-Hit-the-Walls"><a href="#Then-We-Hit-the-Walls" class="headerlink" title="Then We Hit the Walls"></a>Then We Hit the Walls</h2><p>This is where it got interesting. Swamp is still early, and we hit some edge cases. But here’s the thing about working with an AI-native framework: <strong>we found them, diagnosed them, and some got fixed during the session</strong>.</p><p><strong>1. Vault expressions had validation gaps</strong></p><p>Wrote this:</p><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">password:</span> <span class="string">$&#123;&#123;</span> <span class="string">vault.get(&quot;proxmox-vault&quot;,</span> <span class="string">&quot;password&quot;</span><span class="string">)</span> <span class="string">&#125;&#125;</span></span><br></pre></td></tr></table></figure><p>Got an error about vaults not being configured, even though it was. The vault resolution code exists (<code>execution_service.ts:503-506</code>) but there were gaps in how it handled certain cases. We worked around it for this session, but it’s now a known issue to fix.</p><p><strong>2. Hyphenated model names broke CEL (fixed)</strong></p><p>Named a model <code>proxmox-auth</code>. Tried to reference it:</p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">$&#123;&#123; model.proxmox-auth.data.attributes.ticket &#125;&#125;</span><br></pre></td></tr></table></figure><p>CEL parsed this as <code>model.proxmox</code> minus <code>auth.data.attributes.ticket</code>. Math on strings. Not great.</p><p><strong>This one got fixed during the session.</strong> Swamp now has <code>transformHyphenatedModelRefs()</code> in the expression parser that handles this. That’s the value of AI-native development—find a bug, fix it, move on.</p><p><strong>3. Data refresh between workflow steps (fixed)</strong></p><p>Step 1 authenticates and writes the ticket to its data. Step 2 tries to read that ticket:</p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">Error: Identifier &#x27;data&#x27; not found</span><br></pre></td></tr></table></figure><p>The workflow wasn’t refreshing the data context between steps. <strong>Also fixed during this work</strong>—<code>execution_service.ts:866-909</code> now updates context after each step.</p><h2 id="The-Workarounds-and-Fixes"><a href="#The-Workarounds-and-Fixes" class="headerlink" title="The Workarounds (and Fixes)"></a>The Workarounds (and Fixes)</h2><p>Some issues got fixed immediately. Others we worked around:</p><ul><li><strong>Vault issue</strong>: Stored credentials directly in model input for this session (not ideal, but unblocked the work)</li><li><strong>Naming issue</strong>: Actually fixed in swamp’s expression parser</li><li><strong>Data refresh issue</strong>: Actually fixed in swamp’s execution service</li></ul><p>The vault workaround led to a cleaner architecture anyway. Instead of a two-step workflow (authenticate, then list VMs), Claude created <code>syncVms</code>—one method that does auth internally and returns both the session tokens AND the VM list. No workflow step dependencies needed. Sometimes constraints push you toward better design.</p><h2 id="Going-Deeper"><a href="#Going-Deeper" class="headerlink" title="Going Deeper"></a>Going Deeper</h2><p>Once the basics worked, I asked to go deeper. Each method addition follows the same pattern: Claude writes the TypeScript, then runs <code>swamp model method run proxmoxAuth &lt;methodName&gt;</code> to test it. Swamp compiles, executes, and stores the results.</p><figure class="highlight typescript"><table><tr><td class="code"><pre><span class="line">getVmConfig        <span class="comment">// Full VM hardware config</span></span><br><span class="line">getNodeStatus      <span class="comment">// CPU, memory, kernel version</span></span><br><span class="line">getStorage         <span class="comment">// Storage pools with capacity</span></span><br><span class="line">getClusterNodes    <span class="comment">// All nodes in cluster</span></span><br><span class="line">fullInfrastructureScan  <span class="comment">// Everything in one call</span></span><br></pre></td></tr></table></figure><p>The <code>fullInfrastructureScan</code> method chains all of these together: authenticate, get nodes, get storage, get VMs, get config for each VM. One call, complete infrastructure state—all stored immutably in swamp’s model system for later querying.</p><h2 id="Actually-Using-It-The-Memory-Upgrade"><a href="#Actually-Using-It-The-Memory-Upgrade" class="headerlink" title="Actually Using It: The Memory Upgrade"></a>Actually Using It: The Memory Upgrade</h2><p>Then came a real task: two VMs were running hot on memory. A Minecraft server at 95% and a Terraria server at 77%. Time to upgrade them.</p><p>Claude added <code>updateVmConfig</code> to the model—straightforward PUT request to change memory&#x2F;CPU. But here’s the thing: you can’t just YOLO stop a game server. You need to gracefully shut down the game, then stop the VM, then change config, then start everything back up.</p><p>Problem: <strong>How do you SSH into a VM when you don’t know its IP?</strong></p><p>First attempt: Claude added <code>getVmGuestNetwork</code> to the model—query the QEMU guest agent for network interfaces. That’s the “right” way. But: guest agent wasn’t installed on these VMs. <code>swamp model method run proxmoxAuth getVmGuestNetwork</code> returned nothing useful.</p><p>So Claude extended the model again. Added <code>getVmIpByMac</code>:</p><figure class="highlight typescript"><table><tr><td class="code"><pre><span class="line">getVmIpByMac  <span class="comment">// Correlate VM MAC address with node ARP table</span></span><br></pre></td></tr></table></figure><p>The method grabs the MAC from the VM config (<code>net0: &quot;virtio=BC:24:11:XX:XX:XX&quot;</code>), then queries the ARP table on the Proxmox node and matches it up. Old school network debugging, wrapped in a clean model method.</p><figure class="highlight typescript"><table><tr><td class="code"><pre><span class="line"><span class="comment">// From the extension model</span></span><br><span class="line"><span class="keyword">async</span> <span class="keyword">function</span> <span class="title function_">getVmIpByMac</span>(<span class="params">input, data</span>) &#123;</span><br><span class="line">  <span class="keyword">const</span> config = <span class="keyword">await</span> <span class="title function_">getVmConfig</span>(input, data);</span><br><span class="line">  <span class="keyword">const</span> mac = <span class="title function_">parseMacFromNet0</span>(config.<span class="property">net0</span>);</span><br><span class="line">  <span class="keyword">const</span> arpTable = <span class="keyword">await</span> <span class="title function_">queryNodeArp</span>(input);</span><br><span class="line">  <span class="keyword">return</span> arpTable.<span class="title function_">find</span>(<span class="function"><span class="params">entry</span> =&gt;</span> entry.<span class="property">mac</span> === mac)?.<span class="property">ip</span>;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p>Claude ran the method through swamp, got the IPs, SSH’d in, gracefully stopped the game servers, then ran the upgrade through the model. Swamp stored the whole operation in memory at <code>proxmox-manager/memory/vm-memory-upgrade-2026-02-03.md</code>.</p><p>Both VMs now have more memory. Minecraft and Terraria servers are back up. No data loss.</p><h2 id="The-Results"><a href="#The-Results" class="headerlink" title="The Results"></a>The Results</h2><p>Running the final scan through swamp:</p><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">swamp model method run proxmoxAuth fullInfrastructureScan --json</span><br></pre></td></tr></table></figure><p>Output:</p><ul><li>1 node: Intel i5-12600H, 31GB RAM, Proxmox 8.x</li><li>3 storage pools: local SSD, LVM, NAS mount</li><li>9 VMs with full configs: disks, NICs, CPU types, everything</li></ul><p>All stored as queryable data in swamp’s model system. I can now ask Claude questions about my infrastructure and it can query swamp’s stored state to answer them.</p><h2 id="What-I-Learned"><a href="#What-I-Learned" class="headerlink" title="What I Learned"></a>What I Learned</h2><p><strong>1. Swamp and Claude are complementary</strong></p><p>This isn’t “AI did everything.” Swamp provides the runtime, CLI, schema validation, state storage, and execution environment. Claude provides code authorship, architectural decisions, and debugging. Neither works without the other. Swamp without Claude is an empty framework. Claude without swamp has no persistent state or execution model.</p><p><strong>2. Extension models are the escape hatch</strong></p><p>When swamp’s built-in models don’t cover your use case, you can write real TypeScript. Claude used this to handle Proxmox’s weird auth flow. Swamp compiles and executes it.</p><p><strong>3. AI-native development fixes bugs in real-time</strong></p><p>Two of the three issues we hit got fixed during the session. That’s the pattern: Claude finds an edge case, looks at swamp’s code, proposes a fix, we apply it, move on. The framework improves as you use it.</p><p><strong>4. “Build what you need” is the right prompt</strong></p><p>I didn’t spec out an API binding library. I said “describe my infrastructure” and Claude figured out what needed to exist, building it through swamp’s extension system. Exactly what was required—no more, no less.</p><h2 id="The-Pattern"><a href="#The-Pattern" class="headerlink" title="The Pattern"></a>The Pattern</h2><p>This is what AI-native automation looks like:</p><ol><li>State a goal</li><li>Claude checks what exists in swamp</li><li>Claude builds what’s needed, using swamp’s extension system</li><li>Hit limitations—some get fixed immediately, others get workarounds</li><li>Extend as the task requires more, each method tested via <code>swamp model method run</code></li></ol><p>The extension model grew from 3 methods to 8 as we needed deeper infrastructure data. Each addition was driven by an actual need, not speculation about future requirements. Each method is testable in isolation via swamp’s CLI.</p><p>The full extension is <a href="/2026/02/03/ai-native-infrastructure/proxmox_api.ts">proxmox_api.ts</a>—about 1500 lines of TypeScript that Claude wrote to solve a real problem, executed and validated by swamp.</p><hr><p><em>Built with swamp and Claude. Thanks to <a href="https://matthewsanabria.dev/">Matthew Sanabria</a> for feedback that improved this post.</em></p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/ai/">ai</category>
      
      <category domain="https://keeb.dev/tags/automation/">automation</category>
      
      <category domain="https://keeb.dev/tags/swamp/">swamp</category>
      
      <category domain="https://keeb.dev/tags/proxmox/">proxmox</category>
      
      
      <comments>https://keeb.dev/2026/02/03/ai-native-infrastructure/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>AI is great at parsing</title>
      <link>https://keeb.dev/2025/09/26/local-ai-parsing/</link>
      <guid>https://keeb.dev/2025/09/26/local-ai-parsing/</guid>
      <pubDate>Fri, 26 Sep 2025 00:00:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;I’ve been writing a &lt;a href=&quot;https://github.com/keeb/media-management-service&quot;&gt;media management service&lt;/a&gt; for years. Think of it like t</description>
        
      
      
      
      <content:encoded><![CDATA[<p>I’ve been writing a <a href="https://github.com/keeb/media-management-service">media management service</a> for years. Think of it like the *arr services, only less cohesive and more brittle. It’s exactly how I want to manage <em>my</em> media, not how anyone else should manage <em>theirs</em>. When I’m feeling inspired to create, or just bored, this is the project I work on. </p><p>At the heart of every good catalogue is the ability to sort and store arbitrary inputs. What that usually devolves into, is a <a href="https://github.com/keeb/media-management-service/blob/main/mediaservice/parse.py">parser</a> of some sort. I tweaked this mother fucker constantly. It’s not very good, or computer sciencey, but it worked most of the time.</p><p>I got tired of manually sorting thousands of files into the right directories and managing this brittle parsing process, especially when it broke. So I taught a local AI to do it for me.</p><h1 id="The-problem"><a href="#The-problem" class="headerlink" title="The problem"></a>The problem</h1><p>Media filenames are chaos. <code>The.Sopranos.S01E01.Pilot.avi</code> sits next to <code>Attack on Titan - 01 [1080p].mkv</code> and <code>The Matrix (1999) 1080p BluRay.mp4</code>. Different formats, different naming conventions, same problem: figuring out what each file is and where it belongs. Even worse when there’s arbitrary <code>fields</code> that the filename can contain, like <code>The Handmaid&#39;\&#39;&#39;s Tale (2017) - S02E01 - June (1080p BluRay x265 Silence).mkv</code>.</p><p>Because of the distributed nature of the system and the fact that files are unsorted by nature when they arrive, there’s nothing I can do ahead of time to “pre-sort.” Anything can show up at any time in a central location for processing. I call this the staging area, or just <code>staging</code>. </p><h1 id="Two-prompts-one-system"><a href="#Two-prompts-one-system" class="headerlink" title="Two prompts, one system"></a>Two prompts, one system</h1><p>The system uses two specialized prompts that work together:</p><ol><li><a href="https://github.com/keeb/media-management-service/blob/main/prompts/filename-to-json.prompt">filename-to-json.prompt</a> parses any media filename into structured JSON</li><li><a href="https://github.com/keeb/media-management-service/blob/main/prompts/json-to-save-path.prompt">json-to-save-path.prompt</a> takes that JSON and returns the exact storage path</li></ol><h2 id="filename-to-json"><a href="#filename-to-json" class="headerlink" title="filename-to-json"></a>filename-to-json</h2><p>The first prompt handles the hardest part: making sense of the filename chaos. It classifies files into TV shows, Anime, Movies, or Books, then extracts metadata like season, episode, title, and year.</p><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">  <span class="attr">&quot;media_type&quot;</span><span class="punctuation">:</span> <span class="string">&quot;tv_show&quot;</span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;title&quot;</span><span class="punctuation">:</span> <span class="string">&quot;The Sopranos&quot;</span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;season&quot;</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;episode&quot;</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;episode_title&quot;</span><span class="punctuation">:</span> <span class="string">&quot;Pilot&quot;</span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;year&quot;</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span> </span><br><span class="line">  <span class="attr">&quot;confidence&quot;</span><span class="punctuation">:</span> <span class="string">&quot;High&quot;</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>I taught it to recognize patterns rather than memorizing formats. Movies don’t contain Season or Episode markers. <code>S01E01</code> maps to season 1&#x2F;episode 1, square brackets contain quality info, and parentheses with years indicate movies.</p><p>Then I added examples. Think of these like test cases. Provide sample input, provide exact output. This works well.</p><blockquote><p>Input: <code>Call of the Night v01 (2021) (Digital) (1r0n) (f2).cbz</code><br>Output: <code>{&quot;media_type&quot;: &quot;book&quot;, &quot;title&quot;: &quot;Call of the Night&quot;, &quot;season&quot;: null, &quot;episode&quot;: null, &quot;volume&quot;: 1, &quot;episode_title&quot;: null, &quot;year&quot;: 2021, &quot;confidence&quot;: &quot;High&quot;}</code></p></blockquote><p>I don’t actually use the confidence scoring. It only matters on low quality models. High quality models basically always get it right. When there’s an issue, all LLM interactions are saved for debugging and prompt refinement. </p><h2 id="json-to-save-path"><a href="#json-to-save-path" class="headerlink" title="json-to-save-path"></a>json-to-save-path</h2><p>One of the main reasons I do not like the *arr services is that I cannot customize how the resulting files are stored on disk. Everything is stored according to some simple rules:</p><ul><li>Anime: <code>/home/keeb/media/video/anime/completed/{show-name}</code></li><li>TV Shows: <code>/home/keeb/media/video/shows/{show-name}/s{season}</code>  </li><li>Movies: <code>/home/keeb/media/video/movies</code></li><li>Books: <code>/home/keeb/media/manga/{book-title}/v{volume}</code></li></ul><p>You can see how extensible this scheme could be - if I wanted to start archiving audio books, I would think about how I would want to store it, then just write this rule.</p><p>Since I do a lot of work in the command line, I do not like special characters or spaces and a few other oddities. Here’s my complete rules for names. This keeps things neat!</p><blockquote><p>Follow these steps exactly in order:</p><ol><li>Convert title to lowercase</li><li>Replace ALL spaces with single hyphens</li><li>Remove trailing separators (spaces, hyphens, dots, underscores)  </li><li>Remove duplicate hyphens (– becomes -)</li><li>Strip leading&#x2F;trailing hyphens</li></ol></blockquote><h2 id="Legacy-special-rules-exceptions"><a href="#Legacy-special-rules-exceptions" class="headerlink" title="Legacy, special rules, exceptions"></a>Legacy, special rules, exceptions</h2><p>Obviously, this system pre-dated the use of AI in this way, and, unsurprisingly, I don’t always follow my own rules. What is surprising is exception handling just kind of works. On <a href="https://github.com/keeb/media-management-service/blob/main/prompts/json-to-save-path.prompt#L25C1-L25C115">line 25</a> of the prompt you can see a clear example</p><blockquote><p>“Yofukashi no Uta S2” is a special case. it goes to &#x2F;home&#x2F;keeb&#x2F;media&#x2F;video&#x2F;anime&#x2F;completed&#x2F;call-of-the-night&#x2F;s2&#x2F;</p></blockquote><p>In this case, I stored file as the English name of the Anime instead of the original.</p><h2 id="Performance"><a href="#Performance" class="headerlink" title="Performance"></a>Performance</h2><p>It correctly classifies about 95% of files on the first pass. The confidence scoring helps identify the 5% that need manual review. Most failures happen with obscure formats, genuinely ambiguous files, or when I download something with a completely fucked filename like <code>hdtv-lol-omgwtfbbq-x264-2160p.mkv</code>.</p><p>Path generation works well once classification succeeds. Directory structure rules are deterministic, so if the JSON is right, the path will be right.</p><h2 id="Debugging-and-Refinement"><a href="#Debugging-and-Refinement" class="headerlink" title="Debugging and Refinement"></a>Debugging and Refinement</h2><p>The worker logs every LLM interaction as JSON files containing input, output, and metadata. When the AI gets something wrong, which is very rare, you can examine exactly what it saw and how it responded. This debug data helps refine the prompts. I’ve used failed cases to add examples and improve pattern recognition.</p><figure class="highlight python"><table><tr><td class="code"><pre><span class="line"><span class="comment"># Example debug log structure</span></span><br><span class="line">&#123;</span><br><span class="line">  <span class="string">&quot;timestamp&quot;</span>: <span class="string">&quot;2025-01-15T14:30:25&quot;</span>,</span><br><span class="line">  <span class="string">&quot;job_id&quot;</span>: <span class="string">&quot;507f1f77bcf86cd799439011&quot;</span>, </span><br><span class="line">  <span class="string">&quot;filename&quot;</span>: <span class="string">&quot;Attack.on.Titan.S04E28.mkv&quot;</span>,</span><br><span class="line">  <span class="string">&quot;step&quot;</span>: <span class="string">&quot;filename_to_json&quot;</span>,</span><br><span class="line">  <span class="string">&quot;input&quot;</span>: <span class="string">&quot;Attack.on.Titan.S04E28.mkv&quot;</span>,</span><br><span class="line">  <span class="string">&quot;output&quot;</span>: <span class="string">&quot;&#123;\&quot;media_type\&quot;: \&quot;anime\&quot;, \&quot;title\&quot;: \&quot;Attack on Titan\&quot;, ...&#125;&quot;</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><h1 id="The-pattern-generalizes"><a href="#The-pattern-generalizes" class="headerlink" title="The pattern generalizes"></a>The pattern generalizes</h1><p>Two specialized prompts, each focused on one transformation, connected by structured data. I’ve started to apply this to log parsing, document classification, or any problem where I need to extract structure from messy input.</p><p>Keep each prompt focused and testable. Provide rules, not structure. Be explicit. See x? Do y. When something breaks, you know exactly which step failed and can fix it without touching the rest of the system.</p><h1 id="Why-local"><a href="#Why-local" class="headerlink" title="Why local?"></a>Why local?</h1><p>With the parsing system working well, the next question was where to run it. Cloud APIs are the obvious choice, but I have a lot of hardware and it brings me great joy to use it and to understand, at some fundamental level, how it all works.</p><p>Turns out, even low powered models do a fairly good job at this. Finding the right model was half of the fun. I tried low quality models like <code>qwen3:0.6b</code>, <code>deepseek-r1:1.5b</code> and medium quality models like <code>dolphin3</code>.</p><p>The machine the LLM inference was originally running on was running a <code>NVIDIA GTX 970</code> and it worked.. slowly, and poorly. But it worked!</p><p>Upgrading the hardware a little bit solved a lot of problems:</p><ul><li>Zero latency once the model loads</li><li>No API costs scaling with usage</li><li>Complete privacy for your media collection</li><li>Works offline</li><li>Full control over the prompts and logic</li></ul><p>Is that worth it? Who knows, but it’s fun and it works, so it’s good enough for me.</p><h1 id="Conclusion"><a href="#Conclusion" class="headerlink" title="Conclusion"></a>Conclusion</h1><p>This project taught me that AI is exceptionally good at classification and pattern matching. I guess I shouldn’t be surprised, it’s literally what AI is. The structure of the prompt was the most enlightening.</p><p>The real lesson isn’t about media management, it’s about recognizing where AI naturally excels. Classification problems that would take hundreds of lines of parsing logic can often be solved with clear examples and well-structured prompts. I’ve started looking for these patterns everywhere: log parsing, document classification, data extraction from messy inputs.</p><p>Sometimes the right tool makes a hard problem trivial.</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/ai/">ai</category>
      
      <category domain="https://keeb.dev/tags/automation/">automation</category>
      
      <category domain="https://keeb.dev/tags/media/">media</category>
      
      
      <comments>https://keeb.dev/2025/09/26/local-ai-parsing/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Virtualization from scratch: Setting up a new vmhost</title>
      <link>https://keeb.dev/2023/07/03/Virtualization-from-scratch-Setting-up-a-new-host/</link>
      <guid>https://keeb.dev/2023/07/03/Virtualization-from-scratch-Setting-up-a-new-host/</guid>
      <pubDate>Mon, 03 Jul 2023 05:07:31 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;Disclaimer: You really should use something like &lt;a href=&quot;https://www.proxmox.com/en/&quot;&gt;Proxmox&lt;/a&gt; or VMWare or whatever other out of box</description>
        
      
      
      
      <content:encoded><![CDATA[<p>Disclaimer: You really should use something like <a href="https://www.proxmox.com/en/">Proxmox</a> or VMWare or whatever other out of box hypervisor. Proxmox is the standard for the homelab environment, given its powerful features and zero cost.</p><p>If you’re opting to use KVM, <code>virt-manager</code> is a decent wrapper. </p><p>The method outlined in this post only works for wired ethernet. Wireless needs to be done differently; I may cover that separately.</p><p>Disclaimers aside, I like to explore how something really works <strong>under the hood</strong> so lets dive in.</p><h1 id="Environment"><a href="#Environment" class="headerlink" title="Environment"></a>Environment</h1><p>The steps in this article are for an <code>Arch Linux</code> host, but the concepts can work in any distribution. Most of the work for KVM is taken care of by the package manager for any distro when installing <code>qemu</code>.</p><p>However, one major change we are making to the system is to by default bind the network interface (<code>eth0</code> or <code>eno1</code> or similar) to a bridge. This is done so that guest hosts can have their own IP address and be reached indepedently without having to do NAT or other methods like TAP devices.</p><p>The leads us to the first important step</p><h1 id="Enable-IP-forwarding"><a href="#Enable-IP-forwarding" class="headerlink" title="Enable IP forwarding"></a>Enable IP forwarding</h1><p>In order for guests to be reachable for ipv4, your hypervisor needs to turn into, effectively, a switch and forward any traffic it receives to any guests. </p><p>If you do not do this, <code>DHCP</code> will not work. If you assign a static IP to the guest, it will not be routable or pingable.</p><ul><li>Edit <code>/etc/sysctl.d/99-sysctl.conf</code></li><li>Add <code>net.ipv4.ip_forward = 1</code></li></ul><p>Or, as a simple command</p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">echo &quot;net.ipv4.ip_forward = 1&quot; &gt;&gt; /etc/sysctl.d/99-sysctl.conf</span><br></pre></td></tr></table></figure><h1 id="Set-up-network"><a href="#Set-up-network" class="headerlink" title="Set up network"></a>Set up network</h1><p><em>Note: Be careful here because changing these settings may impact your ability to connect to the machine and management access</em></p><h2 id="Create-br0-bridge-and-network"><a href="#Create-br0-bridge-and-network" class="headerlink" title="Create br0 bridge and network"></a>Create <code>br0</code> bridge and network</h2><p>Edit <code>/etc/systemd/network/br0.netdev</code></p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">[NetDev]</span><br><span class="line">Name=br0</span><br><span class="line">Kind=bridge</span><br></pre></td></tr></table></figure><p>Edit <code>/etc/systemd/network/br0.network</code></p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">[Match]</span><br><span class="line">Name=br0</span><br><span class="line"></span><br><span class="line">[Network]</span><br><span class="line">DHCP=yes</span><br></pre></td></tr></table></figure><p>You can also allocate a static IP address for your bridge here. In that case, change the <code>[Network]</code> section to</p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">[Network]</span><br><span class="line">Address=&lt;Static IP&gt;</span><br><span class="line">Gateway=&lt;Gateway IP&gt;</span><br></pre></td></tr></table></figure><p>These steps create the devices, will show up in <code>ip addr</code> (after network restart), however, will not hooked into your wired network until you connect your physical network with the bridge.</p><h2 id="Connect-br0-bridge-to-Wired-Network"><a href="#Connect-br0-bridge-to-Wired-Network" class="headerlink" title="Connect br0 bridge to Wired Network"></a>Connect <code>br0</code> bridge to Wired Network</h2><p>Bind the bridge to your network interface of choice. In my case, that is <code>eno1</code>, so I create a new file. This is, effectively, the glue that connects both worlds.</p><p>Edit <code>/etc/systemd/network/uplink.network</code></p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">[Match]</span><br><span class="line">Name=eno*</span><br><span class="line"></span><br><span class="line">[Network]</span><br><span class="line">Bridge=br0</span><br></pre></td></tr></table></figure><p>Arch has, by default, some rules in <code>/etc/systemd/network/20-ethernet.network</code>. Edit this file and adjust the <code>[Match]</code> configuration such that it does not override the changes we made in <code>uplink.network</code>.</p><p>For me, that was removing <code>Name=eno*</code> from <code>/etc/systemd/network/20-ethernet.network</code></p><h2 id="Restart-networking"><a href="#Restart-networking" class="headerlink" title="Restart networking"></a>Restart networking</h2><p>After these steps are completed, restart the <code>systemd-networkd</code> service for the changes to take effect.</p><h1 id="Verify"><a href="#Verify" class="headerlink" title="Verify"></a>Verify</h1><p>If all has gone according to plan <code>ip addr show br0</code> should result in something that looks like the following output</p><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">3: br0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP group default qlen 1000</span><br><span class="line">    link/ether 36:b0:61:28:49:de brd ff:ff:ff:ff:ff:ff</span><br><span class="line">    inet 10.0.0.12/8 brd 10.255.255.255 scope global br0</span><br><span class="line">       valid_lft forever preferred_lft forever</span><br><span class="line">    inet6 2601:647:100:fee:34b0:61ff:fe28:49de/64 scope global dynamic mngtmpaddr noprefixroute</span><br><span class="line">       valid_lft 596sec preferred_lft 596sec</span><br><span class="line">    inet6 fe80::34b0:61ff:fe28:49de/64 scope link</span><br><span class="line">       valid_lft forever preferred_lft forever</span><br></pre></td></tr></table></figure><p>In part 2, I’ll cover creating the first guest VM, attaching to it, viewing the <em>screen</em>, and running a workload.</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/qemu/">qemu</category>
      
      <category domain="https://keeb.dev/tags/virtualization/">virtualization</category>
      
      <category domain="https://keeb.dev/tags/linux/">linux</category>
      
      
      <comments>https://keeb.dev/2023/07/03/Virtualization-from-scratch-Setting-up-a-new-host/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>I made a keylogger</title>
      <link>https://keeb.dev/2022/06/12/I-made-a-keylogger/</link>
      <guid>https://keeb.dev/2022/06/12/I-made-a-keylogger/</guid>
      <pubDate>Sun, 12 Jun 2022 16:07:22 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;It’s true. But it’s for a good reason, promise.&lt;/p&gt;
&lt;p&gt;One of the best things about tiling window managers like &lt;a href=&quot;https://i3wm.org</description>
        
      
      
      
      <content:encoded><![CDATA[<p>It’s true. But it’s for a good reason, promise.</p><p>One of the best things about tiling window managers like <a href="https://i3wm.org/">i3m</a> is the ability to launch a terminal from anywhere by pressing a simple key combination like <code>alt+enter</code> and have it open in the correct place.</p><p><img src="/2022/06/12/I-made-a-keylogger/i3wm.png" alt="i3wm screenshot"></p><span style="text-align: right;font-size:8pt">image courtesy of <a href="https://medium.com/@ashwinvasudevan96/moving-from-ubuntu-to-manjaro-i3-window-manager-e13cd195ed7d">ashwin @ medium</a></span><p>Looks pretty, right?</p><p>While I haven’t exactly replicated the putting it in the right place part yet, <a href="https://docs.microsoft.com/en-us/windows/powertoys/">MS PowerToys</a> makes it easy to snap it to a particular zone once the terminal has been launched. Good enough for now.</p><h2 id="Enter-k"><a href="#Enter-k" class="headerlink" title="Enter k"></a>Enter <code>k</code></h2><p><code>k</code> is a <a href="http://github.com/keeb-dev/k">simple program</a> that spies on the keyboard, waiting for the magic character combination.</p><p>Once detected, it launches the editor of my choice.</p><p>The main magic resolves around polling of the 2 keys we are interested in, the <code>Enter</code> key and the <code>Win</code> key (specifically LWIN in this case.)</p><h2 id="Windows-Programming"><a href="#Windows-Programming" class="headerlink" title="Windows Programming"></a>Windows Programming</h2><p>Windows is kind of cool. I’ve been giving it a real shot to make it my main development environment over the past few months. You may remember <a href="/2022/05/28/The-beginning/">I started my journey programming</a> on Windows. Nostalgia!</p><p>One of the things that makes it cool is that interacting with it is pretty straightforward through the <a href="https://docs.microsoft.com/en-us/windows/win32/api/">WIN32 API</a>. For an extra layer of fun, let’s do it in Golang.</p><p>First we get the specific function we want from the win32 API. The docs do a great job describing how the keyboard and Windows interact, but to cut to the chase <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getasynckeystate">GetAsyncKeyState</a> is the API to know the specific state of a key - nada, pressed down or released.</p><p>So, let’s import it.</p><figure class="highlight golang"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> (</span><br><span class="line">user32   = syscall.NewLazyDLL(<span class="string">&quot;user32.dll&quot;</span>)</span><br><span class="line">keystate = user32.NewProc(<span class="string">&quot;GetAsyncKeyState&quot;</span>)</span><br><span class="line">)</span><br></pre></td></tr></table></figure><p>Next, define the keys we want to look at, in this case the <code>LWIN</code> and the <code>Enter</code> keys. Keycodes for all keys can be found <a href="https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes">in the docs</a></p><figure class="highlight golang"><table><tr><td class="code"><pre><span class="line">enterKey := <span class="number">0x0D</span></span><br><span class="line">winKey := <span class="number">0x5B</span></span><br></pre></td></tr></table></figure><p>OK. Boilerplate is out of the way.</p><h2 id="The-main-loop"><a href="#The-main-loop" class="headerlink" title="The main loop"></a>The main loop</h2><p>Now an infinite loop is needed so that the state of these keys are constantly available. Make sure to give the CPU some rest. I can’t press the combo faster than <code>50ms</code>. </p><figure class="highlight golang"><table><tr><td class="code"><pre><span class="line"><span class="keyword">for</span> &#123;</span><br><span class="line">    enterState, _, _ := keystate.Call(<span class="type">uintptr</span>(enterKey))</span><br><span class="line">    winState, _, _ := keystate.Call(<span class="type">uintptr</span>(winKey))</span><br><span class="line"></span><br><span class="line">    <span class="keyword">if</span> winState &gt; <span class="number">1</span> &#123;</span><br><span class="line">        <span class="keyword">if</span> enterState &gt; <span class="number">1</span> &#123;</span><br><span class="line">            <span class="keyword">if</span> !enterDown &#123;</span><br><span class="line">                fmt.Println(<span class="string">&quot;we did it!&quot;</span>)</span><br><span class="line">                enterDown = <span class="literal">true</span></span><br><span class="line">            &#125;</span><br><span class="line">        &#125; <span class="keyword">else</span> &#123;</span><br><span class="line">            enterDown = <span class="literal">false</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    time.Sleep(<span class="number">50</span> * time.Millisecond)</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure><p>Wait, what’s <code>enterDown</code> ? Good question. Glad you’re paying attention. The thing is, there’s a delay between when you start to press a button and when it is released. It even takes time, however short, for a key to travel from pressed, to fully up. Windows also has something called <code>repeat</code> which repeats the character press if you hold the character downnnnnnnnnnnnnnnnnnnnnnnnn.</p><p><code>k</code> doesn’t care about any of that. In fact, without the <code>enterDown</code> logic all of the other stuff just makes <code>k</code> think the button combination continues to be pressed. Resulting in hilarious outcomes like spawning 600 terminal windows.</p><h2 id="The-finished-product"><a href="#The-finished-product" class="headerlink" title="The finished product"></a>The finished product</h2><p>Main logic explained. How is it all put together? Take a <a href="http://github.com/keeb-dev/k">look at the repo</a>. </p><p>I am not sure if I will keep developing this tool. It kind of does exactly what I want it to do. It will be annoying to recompile if I decide to start using a different terminal. Or if I want to change the key combination. Or if I happen to want another macro to do something else.</p><p>I have no interest in spending energy on all of the what if’s. If I change any of those things a lot I may make it configurable to some extent. But I probably won’t.</p><p>How does it look?</p><p><a href="/2022/06/12/I-made-a-keylogger/desktop-full.png"><img src="/2022/06/12/I-made-a-keylogger/desktop.png" alt="my desktop"></a></p><h2 id="Why-not-use"><a href="#Why-not-use" class="headerlink" title="Why not use?"></a>Why not use?</h2><p>Of course, there’s a lot of tools I could be using instead of this, like <a href="https://www.autohotkey.com/">AutoHotKey</a>. I could get a better keyboard with programmable macros. Or I could do some <a href="https://docs.qmk.fm/#/">QMK</a> programming on my macropad?</p><p><img src="/2022/06/12/I-made-a-keylogger/macropad.jpg" alt="macropad"></p><p>Maybe next time :) </p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/windows/">windows</category>
      
      
      <comments>https://keeb.dev/2022/06/12/I-made-a-keylogger/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>Hexo &amp; VSCode</title>
      <link>https://keeb.dev/2022/05/28/Hexo-VSCode/</link>
      <guid>https://keeb.dev/2022/05/28/Hexo-VSCode/</guid>
      <pubDate>Sat, 28 May 2022 11:02:29 GMT</pubDate>
      
        
        
      <description>&lt;h2 id=&quot;Quickstart-Installation-Editing-and-Deployment&quot;&gt;&lt;a href=&quot;#Quickstart-Installation-Editing-and-Deployment&quot; class=&quot;headerlink&quot; title=&quot;</description>
        
      
      
      
      <content:encoded><![CDATA[<h2 id="Quickstart-Installation-Editing-and-Deployment"><a href="#Quickstart-Installation-Editing-and-Deployment" class="headerlink" title="Quickstart: Installation, Editing, and Deployment"></a>Quickstart: Installation, Editing, and Deployment</h2><p><a href="https://github.com/hexojs/hexo">Hexo</a> is the static site generator used to generate this blog, along with a modified version of the <a href="https://github.com/probberechts/hexo-theme-cactus">cactus</a> theme.</p><p>What I like about hexo is that it’s easy to install <code>npm install hexo-cli -g</code> (as root) and setup <code>hexo init blog</code> and start a server <code>hexo server</code> and create new posts <code>hexo new &quot;Post&quot;</code>.</p><p>Themes are just a simple, drop them into the themes directory, update the <code>_config.yml</code> to point to the correct theme, and you’re off and running.</p><p>When you’re done editing your auto generated <code>Post.md</code> in the <code>source/_posts</code> directory, you can <code>hexo generate</code> to build it all together into static HTML which exists in the <code>public</code> folder.</p><p>Copy the contents of the <code>public</code> folder to your favorite static site hoster, and viola, your website is ready to serve traffic.</p><h2 id="VSCode-Remote-editing"><a href="#VSCode-Remote-editing" class="headerlink" title="VSCode Remote editing"></a>VSCode Remote editing</h2><p>After more than 25 years using <code>vim</code> and carrying around my lightly modified <code>.vimrc</code> everywhere, I am starting to explore using IDE’s. For this project, I have been using <a href="https://code.visualstudio.com/">VSCode</a> because I appreciate the live preview of Markdown as I type and it’s much better than SublimeText.</p><p>One habit that hasn’t shaken, however, is that I really like to develop on Linux and I prefer to develop remotely. This allows me to work from any internet-connected device, seamlessly, without having to copy files or worry about committing changes in progress or really have to think about things at all. My code is just one <code>ssh</code> command away.</p><p>VSCode takes this a step further and can effectively mount remote filesystems and load source code as if it is local, seamlessly. You can follow <a href="https://code.visualstudio.com/docs/remote/ssh">this guide</a> to learn how to set it up.</p><h2 id="Running-Hexo-in-VSCode"><a href="#Running-Hexo-in-VSCode" class="headerlink" title="Running Hexo in VSCode"></a>Running Hexo in VSCode</h2><p>The only non-trivial part of this setup is that the default launch experience in VSCode doesn’t work with Hexo. This is because it is expecting to run <code>node</code> on a javascript file somewhere, but no such javascript exists. </p><p>This is remedied by clicking on <code>Run -&gt; Add Configration</code> or <code>Run -&gt; Open Configuration</code> in the menubar, which will open your local <code>launch.json</code> </p><p>Assuming you are using the latest version of hexo and installed it according to the above, the following <code>launch.json</code> will launch a <code>hexo server</code> instance so you can preview changes as you are making them</p><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;version&quot;</span><span class="punctuation">:</span> <span class="string">&quot;0.2.0&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;configurations&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">        </span><br><span class="line">        <span class="punctuation">&#123;</span></span><br><span class="line">            <span class="attr">&quot;type&quot;</span><span class="punctuation">:</span> <span class="string">&quot;node&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;request&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;name&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch hexo server&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;skipFiles&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;&lt;node_internals&gt;/**&quot;</span></span><br><span class="line">            <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;program&quot;</span><span class="punctuation">:</span> <span class="string">&quot;$&#123;workspaceFolder&#125;/node_modules/hexo/bin/hexo&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;args&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;server&quot;</span></span><br><span class="line">            <span class="punctuation">]</span></span><br><span class="line">        <span class="punctuation">&#125;</span></span><br><span class="line">    <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">&#125;</span> </span><br></pre></td></tr></table></figure><p>Adding another configuration task to run <code>build</code> your static site is similarly straghtforward, adding another configuration block like so</p><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;type&quot;</span><span class="punctuation">:</span> <span class="string">&quot;node&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;name&quot;</span><span class="punctuation">:</span> <span class="string">&quot;hexo generate&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;request&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;skipFiles&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">        <span class="string">&quot;&lt;node_internals&gt;/**&quot;</span></span><br><span class="line">    <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;program&quot;</span><span class="punctuation">:</span> <span class="string">&quot;$&#123;workspaceFolder&#125;/node_modules/hexo/bin/hexo&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;args&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">        <span class="string">&quot;generate&quot;</span></span><br><span class="line">    <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>The final full file then looks like this</p><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;version&quot;</span><span class="punctuation">:</span> <span class="string">&quot;0.2.0&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;configurations&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">        <span class="punctuation">&#123;</span></span><br><span class="line">            <span class="attr">&quot;type&quot;</span><span class="punctuation">:</span> <span class="string">&quot;node&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;request&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;name&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch hexo server&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;skipFiles&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;&lt;node_internals&gt;/**&quot;</span></span><br><span class="line">            <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;program&quot;</span><span class="punctuation">:</span> <span class="string">&quot;$&#123;workspaceFolder&#125;/node_modules/hexo/bin/hexo&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;args&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;server&quot;</span></span><br><span class="line">            <span class="punctuation">]</span></span><br><span class="line">        <span class="punctuation">&#125;</span><span class="punctuation">,</span></span><br><span class="line">        <span class="punctuation">&#123;</span></span><br><span class="line">            <span class="attr">&quot;type&quot;</span><span class="punctuation">:</span> <span class="string">&quot;node&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;name&quot;</span><span class="punctuation">:</span> <span class="string">&quot;hexo generate&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;request&quot;</span><span class="punctuation">:</span> <span class="string">&quot;launch&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;skipFiles&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;&lt;node_internals&gt;/**&quot;</span></span><br><span class="line">            <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;program&quot;</span><span class="punctuation">:</span> <span class="string">&quot;$&#123;workspaceFolder&#125;/node_modules/hexo/bin/hexo&quot;</span><span class="punctuation">,</span></span><br><span class="line">            <span class="attr">&quot;args&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line">                <span class="string">&quot;generate&quot;</span></span><br><span class="line">            <span class="punctuation">]</span></span><br><span class="line">        <span class="punctuation">&#125;</span></span><br><span class="line">    <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/meta/">meta</category>
      
      <category domain="https://keeb.dev/tags/hexo/">hexo</category>
      
      <category domain="https://keeb.dev/tags/dev/">dev</category>
      
      
      <comments>https://keeb.dev/2022/05/28/Hexo-VSCode/#disqus_thread</comments>
      
    </item>
    
    <item>
      <title>The Lore</title>
      <link>https://keeb.dev/2022/05/28/The-lore/</link>
      <guid>https://keeb.dev/2022/05/28/The-lore/</guid>
      <pubDate>Sat, 28 May 2022 00:20:00 GMT</pubDate>
      
        
        
      <description>&lt;p&gt;From the earliest days I can remember, I have been in love with technology. My first real computer memory was playing a game called &lt;a hr</description>
        
      
      
      
      <content:encoded><![CDATA[<p>From the earliest days I can remember, I have been in love with technology. My first real computer memory was playing a game called <a href="https://en.wikipedia.org/wiki/Mad_Dog_McCree">Mad Dog Mccree</a>, published in 1993 on for MS-DOS by IBM on some version of the Tandy home computer. </p><p>I was 8 years old, and I had no idea what I was doing, but I was having fun.</p><p>It wasn’t too long after this, my parents, who were vehemently against this new fangled thing called “The World Wide Web” went on vacation and left us kids and a devious aunt with a bunch of blank checks in order to pay for groceries or any other emergencies that cropped up. At the time, <a href="https://en.wikipedia.org/wiki/AOL">America Online (or AOL)</a> allowed you to sign up and pay by entering an Account Number&#x2F;Routing Number, and so we did. </p><p>My parents none the wiser, 8 year old me and my siblings had unfettered and unmonitored access to the Web. And what a wonderful thing it was.</p><p><img src="/2022/05/28/The-lore/aol.gif" alt="AOL Loading GIF"></p><h2 id="Early-AOL-Days-A-S-L"><a href="#Early-AOL-Days-A-S-L" class="headerlink" title="Early AOL Days - A&#x2F;S&#x2F;L??"></a>Early AOL Days - A&#x2F;S&#x2F;L??</h2><p>What made AOL unique was the easy access to a variety of chat rooms, both public and private. This was entirely the point of AOL. On AOL, the internet was primarily accesed through <code>keywords</code> instead of URLs. The experience, however, was ceneted around email, chat rooms, and instant  messaging. This meant that you would be quickly immersed and interacting with people from all walks of life.</p><p><img src="/2022/05/28/The-lore/aol.webp" alt="AOL Landing Page"></p><p>Sucked into this new found hobby, chatting away with anyone and everyone, a few trends start to make themselves. Really obvious ones like the now infamous <code>A/S/L?</code> (which stood for <code>age/sex/location</code>,) but also some more subtle ones such as new fields and colors in peoples profiles, people setting themselves as away with auto responders, anti idle tools to keep themselves online, and the infamous <code>PUNTER</code>. </p><p>Connecting to AOL was a pain in the ass, required a computer modem to dial another computer. The internet was slow. Connecting took time. Sometimes the phones were busy or you were stuck in a handshake sequence for what seemed like ever. Getting kicked off once you were on was a big deal, and being on the receiving end of this was <strong>INFURIATING.</strong></p><p>Of course, figuring out how to do this was step #1. What is <code>Fate X by MaGuS &amp; FuNGii</code> or <code>AOHell</code>? The path of finding out consumed me. Then later, after using them and finding my way to Private Room: VB, I became addicted. It turns out <a href="https://github.com/readme/featured/aol-programming-culture">I was not alone.</a></p><p><img src="/2022/05/28/The-lore/fatex.png" alt="FateX 2.5"> </p><h2 id="Decompiling"><a href="#Decompiling" class="headerlink" title="Decompiling"></a>Decompiling</h2><p>Like any noob on the internet who has no idea what is going on, I started asking people where they got these <code>progs</code>? who made these <code>progs</code>? and where can I learn to make my own <code>progs</code>?</p><p>Some helpful internet person told me to figure out how to make them, I needed something called a decompiler and I could point this decompiler at the prog in question and find out how it was made. This helpful person then sent me a decompiler over AOL Email and in returned asked me to give him any code I thought was cool that I found.</p><p>I did as I was told - but I had no idea what I was looking at and I had no idea what was cool or not. I remember vividly decompiling FateX for the first time and getting hundreds or Visual Basic <em>.frm</em> files cascading all over my screen. It would be a while before I returned to this.</p><h2 id="VB-bas-culture"><a href="#VB-bas-culture" class="headerlink" title="VB .bas culture"></a>VB .bas culture</h2><p>The anatomy of a prog was pretty straightforward - almost all progs were written in Visual Basic. Visual basic has <code>.frm</code> files - the window that gets displayed when your prog launches, <code>.bas</code> files, which were modules, or libraries, that contained generic functions that could be called that you’d use in buttons or in menus of your Forms to do certain things. </p><p>If you were really cool, you published your own ActiveX control which hid the implementation of your methods, but could still be distributed and used by others in your VB App.</p><p>Probably the most common method in all <code>.bas</code> files was some variation of <code>SendChat</code> or one of its aliases, <em>AOL25_Send_Chat</em>, <em>SendMessage</em> and the like did exactly what the method describes - sends some text to the chat.</p><p><img src="/2022/05/28/The-lore/bas-methods.webp" alt="SendChat Example"></p><p>Reading about some peoples nostalgic experiences, they mistakenly thought the way to do this was using the native windows <code>SendKeys</code> command. This was prone to error because the API sends keys to the active window only. Only the noobest of noobs used this method and would get your prog laughed out of the room. The tradeoff is that progs were not portable across AOL versions due to the way the client was updated. No one ever thought to make these things generic, so we just made version specific methods instead.</p><p>At this time, <em>Open Source</em> was not really as prevalent or as common of a term as it is today. In the progs scene, it became increasingly embarassing to be accused of or to engage in decompiling other peoples progs. Not cool. Copying and working on your own version of ideas was fair game, and <a href="https://members.tripod.com/~poLAr_/bas/bas.htm">sites started to pop up</a> with famous prog authors <code>.bas</code> <a href="https://psackley.tripod.com/vb/files.html">files.</a> Sites like this kicked off a whole slew of innovation, hackers were making a name for themselves, you could show your code was not stolen, sharing started to become a way to show off, and indirectly to push the envelope.</p><p>I think the most famous <code>.bas</code> and elite coder of the time was <a href="/2022/05/28/The-lore/dos32.bas">dos32.bas</a>. DoS was a pioneer and someone all of us in the hacker scene owe a huge debt of gratitude. He provided good, clean reliable code that just worked and were one of the first publishers of code for doing <code>ccom</code> - or chat commands. A craze that really changed the entire dynamic of hacker subculture on AOL.</p><h2 id="keeb-is-born"><a href="#keeb-is-born" class="headerlink" title="keeb is born"></a>keeb is born</h2><p>Immersed in internet progs subculture, one thing was clear, the name that I had been using (<em>leplik????</em>) wasn’t going to cut it. I tried all sorts of dumb names, some of which you’d expect, but a girl I happened to have a crush on at school had started calling me her “little keebler” (thanks, Maribel) because I have always been small and short for my age. I thought I’d be funny and shorten “keebler” to <code>keeb</code> - so like DOUBLE short. Ha ha.</p><p>Armed with my new handle, and a bit more knowledge, it was time to get back to work. This time, I started reading and using people’s <code>.bas</code> files and doing simple things. My favorite thing to do was to figure out how exactly certain features worked and reimplement them.</p><h2 id="From-buttons-to-ccom-or-chat-commands"><a href="#From-buttons-to-ccom-or-chat-commands" class="headerlink" title="From buttons to ccom, or chat commands"></a>From buttons to ccom, or chat commands</h2><p>Early version of progs were UI&#x2F;button driven. Click on a button on a form, perform an action in AOL. As time went on, however, a new type of interaction was conceived: chat commands. </p><p>Now instead of having to click a button on a ui <code>punt</code> then enter someones name to punt, you could type in chat <code>.punt &lt;victim&gt;</code>. The proggie would then dutifuly register your request by sending to the same chat <code>-._,-&gt; target acquired: &lt;victim&gt;</code> or some such weird concoction of cool ASCII characters to let everyone know you just owned some noob.</p><p>After a while AOL VB chat basically devolved into people developing these progs in the open, mostly interacting with their commands as they were tinkering with them. </p><p><img src="/2022/05/28/The-lore/commands.png" alt="Commands in chat"></p><h2 id="Things-I-made"><a href="#Things-I-made" class="headerlink" title="Things I made"></a>Things I made</h2><p>Sitting here typing this, I wish I could find a remnant or example of anything I had actually made at the time. There’s a cliche saying that the internet never forgets; I don’t think that’s true. The internet forgets rather quickly. I used to be able to find <code>keeb232.bas</code> listed. Now it’s nowhere to be found.</p><p>Over the course of my time programming AOL progs I made a clone of every type of prog there was from punters and faders to various utilities like profile updaters, sound killers, modal window killers, turning im&#x2F;buddy lists on and off, appearing offline, etc. My crowning achievement, at the height of the MP3 craze, was building a text-driven music player that could be used in any window. </p><p>At the time, chat commands were basically confined to the main AOL Chat Room window and as a result, all commands needed to be typed in that window in order for progs to function. </p><p>What I remember doing is developing a 2 step process. </p><p>Step 1 was “find text mode” where I could query the windows API’s in realtime as the mouse cursor moved to get information about the window (I believe using calls like <code>WindowFromPoint</code> in <code>winuser.dll</code>,) and upon hitting <code>ALT+Enter</code> key combo, it would attempt to SetText. If it was successful, then that would be the window that would be polled to receive commands from and send commands to. </p><p>Step 2 was a race condition in 2 <code>Timers</code> (think of them like threads.) Timer1 was focused on polling said input for specific commands like <code>.play metallica</code>, waiting for a <code>Enter</code> key to be pressed. Timer2 was focused on invoking the appropriate method, clearing the text window, and returning the result of the command to the window. Getting this timing down was important because sometimes a command would loop 2-3 times if the tolerance wasn’t set correctly.</p><h2 id="The-death-of-my-brother"><a href="#The-death-of-my-brother" class="headerlink" title="The death of my brother"></a>The death of my brother</h2><p>On March 26, 1997, I was a few months away from my 12th birthday. My parents were out of town again and that same devious aunt was staying at my house taking care of us. </p><p>My brother had just turned 17 the month prior and was recently grounded because he crashed his truck fucking around doing donuts in a parking lot and on top of that my parents had caught him sneaking out at night to visit his girlfriend. My parents found out he was sneaking out when at 2am there was a ring at our doorbell. Answering the door, a police officer had my brother in handcuffs and asked if he was indeed their son. After confirming, the police officer went on to explain that he had seen my brother turn the car off at the end of our long driveway and start pushing it to the house. The police officer thought this was suspicious and didn’t believe my brother when he told him what was happening. </p><p>It then dawned on them that his “sleep walking” tripping the alarm in the middle of the night and the fact that there was a ladder next to the house that just so happened to be under his bedroom window weren’t coincidences.</p><p>Yeah, my parent’s werent too bright.</p><p>Anyway, so my brother’s grounded, my parents are away from home, and my aunt and cousin are staying with us and there’s school the next day and we’ve all got homework to do. Well, my cousin needs an information packet from a school friend and of course my brother volunteers to drive and get it, even though he’s not supposed to. </p><p>Amazingly, everyone who was home lined up at the door as he left and gave him a hug and told him to drive safe and that we loved him. I hope he knew it. My brother proceeds to take my grandmothers car and proceeds to joyride, taking the backroads to get the paperwork, and in his excitement takes a corner going way too fast and slams into a tree, killing him instantly. He didn’t have a seatbelt on. An off duty paramedic happened to be behind him and came up onto the scene seconds after the crash and called it in.</p><p>Wondering where my brother was I see lights in the driveway, and I am excited he is home. Suddenly there’s a knock on the door, which is weird, and I go to open it and it’s a police officer. He asks if an adult is home and it’s all a blur after that. </p><p>Talking to my parents and confirming to them their son and my brother was dead was really difficult.</p><h2 id="Inward-and-onward"><a href="#Inward-and-onward" class="headerlink" title="Inward and onward"></a>Inward and onward</h2><p>If I was addicted to tech before, I am obsessed now. Programming is my escape. Skateboarding is freedom. Since this time I have spent most of my waking life in some form or fashion hacking on computers, thinking about hacking on computers, or applying my love of technology to business and dreaming about how to combine technology to build something interesting, unique, fun.</p><p>I don’t actually remember the last time I logged onto AOL. For a lot of things, you really don’t plan on for the last time doing it. It just happens. </p><p>What I do know is I owe a great deal to this part of my life. Through AOL I learned about how to rebuild computers, how to automate tasks, how to read code, how to collaboarate and ask questions about code, how to write code. About warez and cracks and falling in love with chiptunes.</p><p>I was instilled with a lifetime passion for collaborating and learning in the open. I was able to meet some amazing people, including the ridiculously talented <a href="https://twitter.com/ashr0se">ash</a>. AOL was my home, more than any physical space. Born and raised on the internet.</p><p>Thanks, AOL.</p>]]></content:encoded>
      
      
      
      <category domain="https://keeb.dev/tags/hacking/">hacking</category>
      
      <category domain="https://keeb.dev/tags/people/">people</category>
      
      <category domain="https://keeb.dev/tags/journey/">journey</category>
      
      
      <comments>https://keeb.dev/2022/05/28/The-lore/#disqus_thread</comments>
      
    </item>
    
  </channel>
</rss>
