Skip to content

Instantly share code, notes, and snippets.

"""
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
@maulikrajput
maulikrajput / MysqlInterviewQuestions.md
Created December 15, 2024 06:47
Top 25 SQL Questions to Crack Any SQL Interview

⭐️📚Top 25 SQL questions to crack any SQL interviews

1 Write a query to find the second highest salary in an employee table.

SELECT DISTINCT salary FROM employee ORDER BY salary DESC LIMIT 1 OFFSET 1;

2 Fetch all employees whose names contain the letter “a” exactly twice.

@rxaviers
rxaviers / gist:7360908
Last active June 23, 2026 14:59
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
// ==UserScript==
// @name Nova YouTube beta
// @namespace yt-nova
// @version 0.50.0c
// @description Powerful control on YouTube
// @author raingart <raingart+scriptaddons@protonmail.com>
// @license Apache-2.0
// @icon https://raw.github.com/raingart/Nova-YouTube-extension/master/icons/48.png

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@thedroidgeek
thedroidgeek / nokia-router-cfg-tool.py
Last active June 23, 2026 14:44
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration
@amtokyo713
amtokyo713 / AnimanchAutoDelete.user.js
Last active June 23, 2026 17:15
あにまんch 通報レス自動削除 Tampermonkey スクリプト
// ==UserScript==
// @name あにまんch 通報レス自動削除
// @namespace animanch.bbs.autodelete
// @version 1.21.0
// @description 通報タブの荒らしレスを削除(判定はClaude/PowerShellがGist配信、本スクリプトは実行役。Gemini不使用)
// @author kaing
// @match https://bbs.animanch.com/admin/?tab=report
// @match https://bbs.animanch.com/admin/?tab=report*
// @grant GM_getValue
// @grant GM_setValue