Skip to content

Instantly share code, notes, and snippets.

View shubhamkumar13's full-sized avatar
๐Ÿ˜‘
is existing

shubham shubhamkumar13

๐Ÿ˜‘
is existing
View GitHub Profile
@lbssousa
lbssousa / Instructions.md
Last active July 19, 2026 08:07
VSCode + Dev Containers and Toolbx/Distrobox setup for Fedora Silverblue

VSCode + Dev Containers and Toolbx/Distrobox setup for Fedora Silverblue

PLEASE NOTE:

I personally don't use Flatpak VSCode anymore, since I switched from Fedora Silverblue to Bluefin. I'll leave the instructions here for those who want them, but be aware that Flatpak VSCode instructions won't be maintained anymore.

Steps

If you prefer VSCode Flatpak

  1. Install VSCode Flatpak from Flathub:
@ydewit
ydewit / lean-ffi-article.md
Last active July 16, 2026 10:42
Understanding Lean's Foreign Function Interface (FFI)

Understanding Lean's Foreign Function Interface (FFI)

WARNING

Note on FFI Interface Stability The current Foreign Function Interface (FFI) in Lean 4 was primarily designed for internal use within the Lean compiler and runtime. As such, it should be considered unstable. The interface may undergo significant changes, refinements, and extensions in future versions of Lean. Developers using the FFI should be prepared for potential breaking changes and should closely follow Lean's development and release notes for updates on the FFI system.

Table of Contents

@VictorTaelin
VictorTaelin / hvm3_atomic_linker.md
Last active September 21, 2026 01:15
HVM3's Optimal Polarized Atomic Linker

HVM3's Optimal Atomic Linker (with Polarization)

Atomic linking is at the heart of HVM's implementation: it is what allows threads to collaborate towards massive parallelism. All major HVM versions started with a better atomic linker. From slow, buggy locks (HVM1), to AtomicCAS (HVM1.5), to AtomicSwap (HVM2), the algorithm became simpler and faster over the years.

On the initial HVM3 implementation, I noticed that one of the cases on the atomic linker never happened. After some reasoning, I now understand why, and

@coolreader18
coolreader18 / PUZ_FileFormat.md
Last active August 16, 2025 21:25
Detailed `puz` file format documentation

Originally taken from FileFormat.wiki from the puz project.

Introduction

PUZ is a file format commonly used by commercial software for crossword puzzles. There is, to our knowledge, no documentation of the format available online. This page (and the implementations) is the result of a bit of reverse engineering work.

@TheAngryByrd
TheAngryByrd / IWSAMsErrorApproach.fs
Last active May 4, 2026 16:22
Using IWSAMs to deal with Dynamic Error Trees
#r "nuget: FsToolkit.ErrorHandling"
open FsToolkit.ErrorHandling
open System
type SensorReadings = int
module RegularApproach =
@zastrixarundell
zastrixarundell / README.md
Last active April 28, 2026 13:32
Distrobox init file for compiling erlang

Distrobox init file to compiling elixir/elrang

Distrobox init file which will create a container with asdf and the required tooling for one to build elixir/erlang (based on Fedora).

It is expected of the user to have brew installed on their system.

Instead of installing asdf onto the container, brew install asdf can be used to install it even outside of the container.

Usage