Skip to content

Instantly share code, notes, and snippets.

Act as an expert security researcher specializing in code auditing. You are tasked with conducting a thorough security audit of the provided codebase.

Objective: Identify, prioritize, and propose remediation strategies for high-priority security vulnerabilities that could lead to system compromise, data breaches, unauthorized access, denial of service, or other significant security incidents. Assume a realistic threat model appropriate for the type of application (if known, otherwise assume a web application handling sensitive data).


Phase 0: Scoping & Context Gathering (Crucial First Step)

  • Clarify Scope: Before analysis, please ask any necessary clarifying questions about:
  • The programming language(s) and framework(s) used.
@CalfordMath
CalfordMath / Sudoku Solver - Excel Formulas Only, (No VBA)
Last active December 2, 2026 04:58
A Lambda Function with nested recursion that receives a 9x9 puzzle range (i.e. B2:J10) and outputs a 9x9 spilled range with the completed puzzle. No VBA. Just formulas. No specific cell references beyond the input range. It takes about 3 minutes and 3 seconds to solve the world's current hardest sudoku puzzle on an average fast computer. It inco…
Sudoku = LAMBDA(Puzzle,
LET(
Options, MAKEARRAY(27, 27, LAMBDA(r, c, MOD(c - 1, 3) + 1 + 3 * MOD(r - 1, 3))),
numgrid, SEQUENCE(9, 9, 1),
UpdatedPuzzle, LET(
ApplyLogic, LAMBDA(ApplyLogic, Puzzle, Options,
LET(
Candidates, MAKEARRAY(
27,
27,
@karpathy
karpathy / microgpt.py
Last active December 2, 2026 04:50
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
@TheAirBlow
TheAirBlow / readme.md
Last active December 2, 2026 04:48
Samsung Multi-Disabler by hand on Linux

Samsung Multi-Disabler by hand

This tutorial is made for Linux users (it may not work on WSL).
It is instuction how to to everything Samsung Multi-Disabler does by hand.
It is handy if you want to make installing TWRP easier (no recovery override),
or just to make a playground for toying with Android.
Package android-tools should be installed, and your device should be connected.
Also, this is only for Samsung, do not try this on any other device.

Step 1: Prepare

Convert sparse image to raw ext4 image, create mount point directories, mount raw ext4 images.

@xikhar
xikhar / metroidvania-prompt.md
Created December 1, 2026 22:06
metroidvania-prompt

Build a high quality complete pixel style metroidvania game in the browser.

Platform and constraints: It should run in the browser. Graphics drawn using webgl. Gameplay engine built on top of webgl as well, no external libraries. you need to invent all the code to make and run the game great.

First part: Research. It needs to be a Metroidvania, so research on how they look like and what are the gameplay mechanisms, camera movements, world design, Techniques to build it. Webgl things to understand. study the existing games for some references. Read ENGINE section below for what more to research on that.

Second part: reference & Design. Use PIXELGAME.jpg in main-ref folder as the source of truth. Use available models on FAL MCP to generate more reference images as you need, or any video that you need. The first part of the process is to explore reference ideas and have a concrete plan of what to build, along with what it should look like. And the entire theme should be consistent across the game. generate mo

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.

// ============================================================================
// CASA TROPICAL — a sunlit tropical-modernist room, recreated from one photograph
// ============================================================================
// Pure GLSL, Shadertoy-compatible (mainImage / iTime / iResolution), one file, no textures,
// no images, no includes. Every surface is an equation:
// * raymarched SDF furniture + objects (sideboard and its vessels, travertine table, lamp,
// benches) inside an analytic room shell (floor, rug, wood wall, slatted ceiling, glass wall,
// sheer curtains), lit by a sun filtered through a fitted leaf-canopy cookie;
// * fitted 2D parametric prop layers on depth-tested billboards (bird-of-paradise, planter,
// chair, bench, herb): Bezier-midrib leaves, tapered petiole tubes, quadratic-Bezier panels,
@rb1980
rb1980 / ha-voice-local-intents.md
Created November 4, 2026 21:39
Tune a Home Assistant Assist voice pipeline so home commands and status questions are handled by HA's local intents
name ha-voice-local-intents
description Tune a Home Assistant Assist voice pipeline so home commands and status questions are handled by HA's local intents instead of the LLM fallback. Use when the user wants fewer requests going to the LLM, a voice phrase "isn't recognised", the LLM answers or acts on something HA could do itself, or to add phrasings, aliases, custom sentences or spoken status replies for voice.

Home Assistant voice: handle home requests locally

Home Assistant's Assist pipeline can try local intent matching first and fall back to an LLM conversation agent only when nothing matches ("Prefer handling commands locally" on the pipeline). Every home request the LLM handles is slower, costs tokens, and can go wrong (wrong device, a claimed action that never happened). This skill is the loop for moving those requests to local

@ebowwa
ebowwa / jailbreak-ssh-usb-apt-gpg.md
Last active December 2, 2026 04:11
Post-jailbreak setup for an iPad mini 2 (Chimera 1.6.5, iOS 12.5.7): SSH over USB (OpenSSH port 22, dropbear legacy noted) plus the apt repo GPG key fixes that make the repos work again.

Post-jailbreak setup for Chimera 1.6.5 (iPad mini 2 / A7, iOS 12.5.7): SSH over USB + apt repo key fixes

Part 2 of the A7 iOS 12.5.x lab notebook — Thread 1 — resurrection/jailbreak. Everything below verified end-to-end on iPad4,4 / iOS 12.5.7.

SSH over USB (OpenSSH, port 22)

Chimera 1.6.5 ships no SSH server. Install the OpenSSH package from the bootstrap repo (Sileo or apt install openssh) — it ships the standard /Library/LaunchDaemons/com.openssh.sshd.plist and listens on port 22.

@wille-io
wille-io / gen8.md
Created May 15, 2025 20:53
Booting the HP ProLiant MicroServer Gen8

The Gen8 is a weird little box

It has no UEFI which is weird since UEFI was already pretty standard at the time the Gen8 was designed. Plus it is very picky with booting from USB. First it doesn't want to boot from the blue USB 3.0 ports. Second it only boots from USB devices formatted with MBR and where its first partition is FAT32 formatted with sector sizes not bigger than 16kb (Source: a 'reputable source' in the HP Community).

But now comes the worst characteristic about the Gen8. You can't change the boot order of the SATA devices. So if you use the ODD power cable (with an ODD to SATA adapter of course) and the "SATA ODD" port, you have a journey to go as the boot order is as follows: The leftmost drive, followed by the next 3 drives - and finally the device connected tot eh SATA ODD port. There's also a "CDROM Drive" boot order item in the boot order menu - but it doesn't boot the SATA ODD port, only if there's a real CDROM drive.

So what are the options?

The Gen8 has an internal USB port and