Skip to content

Instantly share code, notes, and snippets.

@corvuscrypto
corvuscrypto / main.go
Last active October 15, 2026 21:09
Golang fork + prctl PDEATHSIG control example
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"strconv"
"syscall"
)
@FlameyosSnowy
FlameyosSnowy / new_borrow_checker.md
Last active October 15, 2026 21:07
The next-gen borrow checker, a drop-in replacement for Rust borrow checking.

Oct 9 2026 -- Eyad Amr -- GitHub -- Discord

Disclaimer: 0% of this article was written by any tool or artificial intelligence.

Introduction

Ladies and gentlemen. Have you ever been kicked in the head by a donkey? Well most of us (hopefully) have not been literally kicked in the head by any animal, but if we talk about this figuratively, you've faced the many amounts of:

@Medohh2120
Medohh2120 / Nested arrays toolkit
Created October 9, 2026 20:21
ARRDEPTH(), ISRAGGED: Calculate array depth and validate array uniformity (ragged vs. uniform layouts) in Excel.
/*
Name: ARRDEPTH
Description: Final user interface (Use this). Returns how many levels an array is nested.
[is_ragged]: TRUE finds the deepest array path. FALSE or Omitted assumes uniform layout and only tests the first element's path for speed.
Made By: Medohh2120
*/
ARRDEPTH = LAMBDA(array, [is_ragged], IF(is_ragged, ANALYZE_NESTING(array,1), LINEARDEPTH(array)));
/*
Name: ISRAGGED
@wojteklu
wojteklu / clean_code.md
Last active October 15, 2026 20:54
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@Soyaso
Soyaso / HABILITIES.md
Created October 15, 2026 20:54 — forked from roblabla/HABILITIES.md
We believe in your habilities.

Muh Switch Keys

So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.

So here you can find a template of the $HOME/.switch/prod.keys file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.

Note that all the seeds (the keys that end with _source) are used along with the master_key_## to derive an actual key. If you have somehow obtained the key without the seed, you can rename xxx_source to xxx_## (where ## is the master key number) and put your key there.

How the heck do I obtain dem keys ?

@roblabla
roblabla / HABILITIES.md
Last active October 15, 2026 20:54
We believe in your habilities.

Muh Switch Keys

So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.

So here you can find a template of the $HOME/.switch/prod.keys file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.

Note that all the seeds (the keys that end with _source) are used along with the master_key_## to derive an actual key. If you have somehow obtained the key without the seed, you can rename xxx_source to xxx_## (where ## is the master key number) and put your key there.

How the heck do I obtain dem keys ?

@shanesveller
shanesveller / adapter_dispatch.exs
Last active October 15, 2026 20:52
Benchmark different techniques to decide a callable module at runtime
# Inspired by https://engineering.tripping.com/blazing-fast-elixir-configuration-475aca10011d
# Updated with more options, including persistent_term and process locals
Mix.install([{:benchee, "~> 1.0"}])
Application.put_env(:fast_config, :adapter, TargetModule)
:persistent_term.put({:fast_config, :adapter}, TargetModule)
defmodule TargetModule do
def run, do: :ok
@anxkhn
anxkhn / VSCode_Marketplace_Tutorial.md
Last active October 15, 2026 20:37
Enable Marketplace on non MS VSCode Forks.

Enabling VS Code Marketplace in VSCodium and Trae

Microsoft claims Visual Studio Code (VS Code) is open source, yet it restricts the use of its Marketplace extensions in non-Microsoft products like VSCodium (telemetry/tracking free open source fork), Cursor, Windsurf, Trae, and other VS Code-based IDEs, enforcing what some see as monopolistic control. This guide provides a workaround to enable the VS Code Marketplace in VSCodium and Trae (more to be added soon), allowing you to freely use extensions. Note that using the VS Code Marketplace with non-Microsoft products may violate its terms of use, which state that extensions are intended for use only with Microsoft Visual Studio products. Proceed at your discretion after reviewing the terms.


Enabling VS Code Marketplace in VSCodium

To configure VSCodium to use the VS Code Marketplace instead of the default OpenVSX Registry, you can either set environment variables or create a custom product.json file.

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.

@decagondev
decagondev / openai_api_endpoints.md
Created May 21, 2024 01:19
Open AI Api Endpoints

OpenAI provides a variety of API endpoints for interacting with their models, including those for text generation, embeddings, fine-tuning, and more. Here are some key endpoints you can use:

  1. Completions: For generating text based on a prompt.
    • Endpoint: POST https://api.openai.com/v1/engines/{engine_id}/completions
    • Example:
      {
        "model": "text-davinci-003",
        "prompt": "Once upon a time,",

"max_tokens": 100,