Skip to content

Instantly share code, notes, and snippets.

View dzmitry-lahoda's full-sized avatar

dzmitry-lahoda dzmitry-lahoda

View GitHub Profile
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active April 28, 2026 09:51
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@pmarreck
pmarreck / comparison-of-shells.md
Last active April 29, 2026 14:58
Comparison of Bash, Elvish, NuShell, Murex, es-shell, fish, xonsh, PowerShell, Oil and Ion shells

Comparison of Bash, Elvish, NuShell, Murex, es-shell, fish, xonsh, PowerShell, Oils (Oil/OSH/YSH) and Ion shells

(Originally generated by ChatGPT and reviewed/edited by Claude; now corrected/expanded based on reader feedback. YMMV.)

(generated by chatgpt 4o and reviewed/edited by claude 3.5 sonnet, YMMV)

| Feature | Bash | Elvish | NuShell | Murex | es-shell | Fish | Xonsh | PowerShell | Oil

@HandsomeManKris
HandsomeManKris / order_book.py
Created November 3, 2021 14:18
Simple python order book
import enum
import queue
import time
from collections import defaultdict
class Side(enum.Enum):
BUY = 0
SELL = 1
@davidfowl
davidfowl / MinimalAPIs.md
Last active April 29, 2026 16:47
Minimal APIs at a glance
@folex
folex / Cargo.toml
Created July 1, 2021 16:37
Use Fluence from Rust with ConnectedClient crate
[package]
name = "concl"
version = "0.1.0"
edition = "2018"
[dependencies]
connected-client = { git = "https://github.com/fluencelabs/fluence" }
eyre = "0.6.5"
maplit = "1.0.2"
serde_json = "1.0.64"
@spencerpogo
spencerpogo / json2nix.py
Last active August 21, 2025 12:38
Converts JSON objects into nix (hackishly).
"""Converts JSON objects into nix (hackishly)."""
import sys
import json
INDENT = " " * 2
def strip_comments(t):
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active December 27, 2025 05:35
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@alexchiri
alexchiri / get-started-with-kind-in-wsl2-installation-instructions.md
Last active January 18, 2026 16:37
Get started with kind in WSL2 - installation instructions
@Szer
Szer / lazy.fs
Last active February 4, 2020 14:53
Lazy Builder
[<AutoOpen>]
module LazyBuilder =
let inline force(x: Lazy<_>) = x.Force()
type LazyCont<'a> = LazyCont of (unit -> Lazy<'a>)
type LazyBuilder() =
member __.Return x = lazy x
member __.ReturnFrom (x: Lazy<_>) = x
member __.Bind(Lazy x, f) = f x
member __.Delay f = LazyCont f
member __.Run (LazyCont f) = Lazy.Create (f >> force)