Skip to content

Instantly share code, notes, and snippets.

@storopoli
storopoli / Dockerfile
Created May 10, 2025 21:10
Fuck Docker! But if you need it use this. From https://kerkour.com/rust-docker-from-scratch
####################################################################################################
## Build
####################################################################################################
# rust:alpine3.21
FROM rust@sha256:661d708cc863ce32007cf46807a72062a80d2944a6fae9e0d83742d2e04d5375 AS build
RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache lld mold musl musl-dev libc-dev cmake clang clang-dev openssl file \
libressl-dev git make build-base bash curl wget zip gnupg coreutils gcc g++ zstd binutils ca-certificates upx
@storopoli
storopoli / .env.example
Last active June 15, 2025 10:58
continuwuity matrix home server with bridges
CONDUWUIT_REGISTRATION_TOKEN="foo"
@storopoli
storopoli / config.toml
Last active March 10, 2025 10:43
Helix Config
# Yazi + Helix Support: https://github.com/sxyazi/yazi/pull/2461
theme = "gruvbox_dark_hard_transparent"
[editor]
line-number = "relative"
mouse = true
scrolloff = 8
cursorline = true
rulers = [ 80 ]
true-color = true
@storopoli
storopoli / colorscheme.lua
Last active February 9, 2025 10:16
LazyVim configs
return {
-- add gruvbox
{
"ellisonleao/gruvbox.nvim",
opts = {
contrast = "hard",
transparent_mode = true,
},
},
@storopoli
storopoli / keymap.json
Last active June 6, 2025 10:24
Zed Configs
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Pane",
@storopoli
storopoli / xpriv.rs
Last active December 6, 2024 19:06
Easy way to generate testing xprivs
use bip39::{Language, Mnemonic};
use bitcoin::{bip32::Xpriv, Network};
const MNEMONIC: &str = "bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon bacon";
fn main() {
let mnemonic = Mnemonic::parse_in(Language::English, MNEMONIC).unwrap();
println!("{}", mnemonic.to_string());
let seed = mnemonic.to_seed("");
let xpriv = Xpriv::new_master(Network::Regtest, &seed).unwrap();
println!("{}", xpriv.to_string());
@storopoli
storopoli / .bashrc
Last active March 18, 2025 22:42
Distrobox Dev Config
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ $PATH =~ $HOME/.local/bin:$HOME/bin: ]]; then
PATH=$HOME/.local/bin:$HOME/bin:$PATH
@storopoli
storopoli / signatures.typ
Last active October 23, 2024 23:04
Schnorr vs ECDSA Signatures
#import "@preview/polylux:0.3.1": *
#import themes.simple: *
#set text(font: "Inria Sans")
#set align(horizon)
#show: simple-theme.with(footer: [Bitcoin Signatures])
#title-slide[
= Bitcoin Signatures
#v(2em)
@storopoli
storopoli / nixify-your-codebase.md
Last active October 23, 2024 16:34
Nixify your Codebase Workshop

title: How to Nixify your codebase sub_title: Docker is a shitcoin author: Jose Storopoli, Alpen Labs, storopoli.io, stratabtc.org options: incremental_lists: true theme: override: code: alignment: left

@storopoli
storopoli / halting_problem.md
Created August 5, 2024 20:06
The Halting problem
fn halts(program: A) -> bool

fn b(program: A) {
    if halts(A) {
        loop {}
    } else {
        return ();
    }
}