Skip to content

Instantly share code, notes, and snippets.

@Rotemrs
Rotemrs / radosgw-admin-gsoc-2026-final-report.md
Last active September 30, 2026 03:05
Google Summer of Code 2026 Final Report - radosgw-admin UX & Documentation Improvements

Google Summer of Code 2026 Final Report

radosgw-admin UX & Documentation Improvements

Contributor: Rotem Shapira
Mentors: Jacques Heunis, Yuval Lifshitz

@framist
framist / 西电研究生抢课脚本.py
Last active September 30, 2026 02:54
西电研究生抢课脚本
import requests
import json
import requests
import random
import time
def convert_to_dict(cookie_str: str):
d = {}
cookie_str = cookie_str.strip()
@karpathy
karpathy / microgpt.py
Last active September 30, 2026 02:22
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
@Leedehai
Leedehai / ubuntu_change_app_icon.md
Created March 26, 2025 17:44
Want to change an app's icon on Ubuntu? Especially, Terminator's icon looks ugly?

This guide applies if you want to override/create the icon for an application on Ubuntu.

Terminator is a popular terminal emulator that comes with a handy screen-split feature if you are not comfortable with the classic tmux solution. However, one thing of Terminator that put me off is its dark-red icon -- it feels so out of place with the rest of the icons in the side bar! In contrast the icon of Ubuntu's own Terminal app has an arguably sleekier look that fits very neatly with neighbors. Fortunately though, Ubuntu allows replacing the icon.

Step 1

Copy Terminator's *.desktop file into your home directory's ~/.local/share/applications:

@wintermorn1ng
wintermorn1ng / models.json
Last active September 30, 2026 01:51
Codex models.json with deepseek and gpt models
{
"models": [
{
"slug": "deepseek-flash",
"prefer_websockets": false,
"support_verbosity": true,
"default_verbosity": "low",
"apply_patch_tool_type": "freeform",
"web_search_tool_type": "text",
"input_modalities": [

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.

@vurtun
vurtun / visgrid.c
Last active September 30, 2026 00:27
High-Performance Spatial Indexing Engine
/* ======================================================================================
* VISGRID — High-Performance Spatial Indexing Engine
* ======================================================================================
*
* DESCRIPTION:
* Visgrid is a specialized, embedded-grade spatial database designed for highly
* interactive node graphs, infinite canvas UI, and real-time 2D simulations.
* It implements a "Linearized Implicit Quadtree" using Z-Order curves (Morton Codes)
* backed by a memory-mapped B-Tree (LMDB).
*
@k16shikano
k16shikano / LICENSE
Created June 22, 2026 01:07
License for my snippet on gist(このGistのライセンスについて)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@gnurio
gnurio / gist:22aad249d74e4a38b742510af35b2bc9
Last active September 29, 2026 22:50
How To Think - CLAUDE.md
## Product Decision Checks
Use this when a product request involves ambiguity, stakeholder pressure, unclear causes, weak evidence, roadmap trade-offs, PRDs, research synthesis, experiment design, or high-impact decisions.
Your job is to keep the initial framing open, even when the PM user wants to move straight to execution.
Run these checks mostly internally. Mention only the conflict, hidden evidence, hypothesis, contrary case, or test design that changes the answer.
Before recommending a solution:
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active September 29, 2026 20:17
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S