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.com
- https://orcid.org/0000-0002-0559-5176
- https://simplex.chat/contact#/?v=2-5&smp=smp%3A%2F%2FUkMFNAXLXeAAe0beCa4w6X_zp18PwxSaSjY17BKUGXQ%3D%40smp12.simplex.im%2FUXrwU_eqdgeHQ6HYehFs0s8VRHOr3k47%23%2F%3Fv%3D1-2%26dh%3DMCowBQYDK2VuAyEApVAYxmE0bpIIiPftNjehy4qOoa14ubyEGzbRX_BlO0w%253D%26srv%3Die42b5weq7zdkghocs3mgxdjeuycheeqqmksntj57rmejagmg4eor5yd.onion
- https://matrix.to/#/@jose:storopoli.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################################################### | |
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONDUWUIT_REGISTRATION_TOKEN="foo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
-- add gruvbox | |
{ | |
"ellisonleao/gruvbox.nvim", | |
opts = { | |
contrast = "hard", | |
transparent_mode = true, | |
}, | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
fn halts(program: A) -> bool
fn b(program: A) {
if halts(A) {
loop {}
} else {
return ();
}
}
NewerOlder