Skip to content

Instantly share code, notes, and snippets.

View plebhash's full-sized avatar
⛏️

plebhash plebhash

⛏️
View GitHub Profile
@plebhash
plebhash / sri-nix-flake.md
Created November 26, 2023 14:10
StratumV2 Reference Implementation (SRI) via nix flakes

Since flakes are an experimental feature, you also need to add the following line to ~/.config/nix/nix.conf:

experimental-features = nix-command flakes

or pass the flag --experimental-features 'nix-command flakes' whenever you call the nix command.

jd-client

nix run github:plebhash/stratum jd-client
@plebhash
plebhash / nym-gateway-RPi.md
Last active October 30, 2023 09:13
NYM Gateway on Raspberry Pi OS

Run a NYM gateway (definition here) on a Raspberry Pi.

First, cross-compile nym-gateway for Raspberry Pi OS:

$ # if you don't have rust
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$
$ install cross (https://github.com/cross-rs/cross)
$ cargo install cross --git https://github.com/cross-rs/cross
$