Skip to content

Instantly share code, notes, and snippets.

View d-kja's full-sized avatar
🦉
Losing my sh-

d-kja

🦉
Losing my sh-
View GitHub Profile
@d-kja
d-kja / microgpt.md
Last active March 2, 2026 13:40 — forked from karpathy/microgpt.py
microgpt

Karpathy's Minimal GPT — Explained for Beginners

This is Andrej Karpathy's famous minimal GPT implementation — a complete AI language model in pure Python. Let me walk you through every single piece.

The Big Picture First

This program does three things:

  1. Reads a dataset of human names (like "Emma", "Olivia", "Liam")
  2. Trains a tiny brain (neural network) to learn the patterns in those names
@d-kja
d-kja / nikke-linux.md
Last active November 5, 2026 20:11
Installing NIKKE under Linux

Running NIKKE on Linux

Linux guide for GODDESS OF VICTORY: NIKKE into launcher-specific paths.

Note

The latest update introduced a new version of the ACE anti-cheat, so you’ll now need to either update to the latest DWProton or patch the launcher if you still want to play the PC version. The patch is available in the Nikke channel on the Dawn Winery Discord server - it’s one of the pinned messages.

@d-kja
d-kja / orange-pi.md
Created August 30, 2024 03:20
Orange PI boot from NVME & Connect to wifi

Table

Boot from NVME Steps

First, burn an image on the sd card. Then you can just boot and do the following to update the orange pi firmware, so that you can boot from the NVME

@d-kja
d-kja / try.ts
Created August 21, 2024 18:52 — forked from asleepace/try.ts
A simple extension for TypeScript which enables the `.try(args)` method on functions. This works for both normal & async functions, and reduces a lot of boilerplate.
// Try.ts
// By Colin Teahan
// August 14th, 2024
//
// This TypeScript file enables usage of the .try() method which will return a result tuple of [T?, Error?]
// from any function or async function. This works by defining a new property on the global Object.prototype
// and then do some type-fu.
//
// Example usage:
// https://www.typescriptlang.org/play/?target=99#code/MYewdgziA2CmB0w4EMBOAKAlAKGwejwAJCAVVAT3gBcJ8jCAhcwgYRgEsxTZkALZMHWIBBAK4BzURCqEAjABYqvADSEATAAY18ukNK92EUuQAOsAMrBU7EzIBm7OIVhhkAIzhGpycbEIg7QiU-agosQgBbWCUQABNCAHcDYF5Ex2hCVGjRVC5kTNgIUWgZKlETJwDCAG0SAH5VAFFUVBBUOoBdPTtWiMIBZjtRMGAqdnB-VH6IchHCIZGx8Hh9Q0S2gGsjN2ZY2AcwTnF+wjBYBMITVrNUKmYJ4MJxaBA3ZAyAeTcAK1hR+CuICoQNMsD0AniwS4sRAhCgUSCoIAtEN4LoCMRGgAPZARCp+by+ABc6PoC1G4y4vioAFUILBUEwAJKxdDsWJE06iCJuBmYQgAbz0xGI7ECbPiAB4ALyEDT8pStC5nC7NVoYADknAAbu92YQpAzCOyNTgMSLiFkyrlBadcbBORqGK8Nap9QBfPSegh6UCQGTVQ2oVQM9UdQiy6l0hnM2KhcjoeWESVIpHOFptNLQDK8grWs6xX3gaQ1IMhjOocOR6LRxnkFnx9CyfkptNBwhOl3GoxWnIF0nEAByHxIjU5JAMRjW0nSJwSm2NXEB4iyECMEO7pyBcNE
@d-kja
d-kja / intercept-response-body-puppeteer.ts
Last active June 6, 2024 20:53
intercept-response-body-puppeteer
const client = await page.target().createCDPSession();
await client.send("Fetch.enable", {
patterns: [{ requestStage: "Response" }]
});
client.on('Fetch.requestPaused', async parameters => {
const { requestId } = parameters
const responseCdp = await client.send("Fetch.getResponseBody", { requestId });
@d-kja
d-kja / vscode-config.json
Last active February 2, 2024 12:52
VS Code config
{
"breadcrumbs.enabled": false,
"window.commandCenter": false,
"window.menuBarVisibility": "compact",
"window.zoomLevel": 1,
"update.mode": "start",
"update.showReleaseNotes": false,