Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 28, 2026 01:07
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@gitclone-url
gitclone-url / Boot image extraction guide.md
Last active February 28, 2026 01:06
Guide on how to extract a boot image from any Android phone without needing to root using Magisk, without stock firmware or a custom recovery
@dollspace-gay
dollspace-gay / VSDD.md
Last active February 28, 2026 01:03
Verified Spec-Driven Development

Verified Spec-Driven Development (VSDD)

The Fusion: VDD × TDD × SDD for AI-Native Engineering

Overview

Verified Spec-Driven Development (VSDD) is a unified software engineering methodology that fuses three proven paradigms into a single AI-orchestrated pipeline:

  • Spec-Driven Development (SDD): Define the contract before writing a single line of implementation. Specs are the source of truth.
  • Test-Driven Development (TDD): Tests are written before code. Red → Green → Refactor. No code exists without a failing test that demanded it.
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active February 28, 2026 01:03
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@ScottJDaley
ScottJDaley / RenderObjectsToTextureFeature.cs
Created September 6, 2022 19:31
Example of a URP Renderer Feature that can render objects (by layer mask) to a global texture
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class RenderObjectsToTextureFeature : ScriptableRendererFeature
{
public RenderObjectsToTexturePass.Settings Settings = new();
@jlia0
jlia0 / agent loop
Last active February 28, 2026 01:01
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>PS Classic Menu — Fixed Options Enter</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<style>
@xdenb43
xdenb43 / MikroTik AdGuard Home container installation.md
Last active February 28, 2026 00:50 — forked from kangarie/mikrotik_container_adguardhome.txt
MikroTik AdGuard Home container installation

--> adguard home to container | by @xdenb43
--> tested on hap ax3/ROS 7.17.2+

Important

defconf network 192.168.88.1/24
docker network 192.168.254.1/24

Install AdGuard Home (AGH) to MikroTik using container

Prerequisites

@cotamatcotam
cotamatcotam / auto-accept.js
Last active February 28, 2026 00:43
Auto accept AntiGravity
// ═══════════════════════════════════════════════════════════
// AUTO-CLICKER FOR "Accept" BUTTON
// Searches inside iframes and auto-clicks
// ═══════════════════════════════════════════════════════════
(function() {
'use strict';
// ==================== STATE MANAGEMENT ====================
const state = {