Skip to content

Instantly share code, notes, and snippets.

View storopoli's full-sized avatar

Jose Storopoli storopoli

View GitHub Profile
@storopoli
storopoli / bdk_pr_review_club-2024-05-09.md
Last active May 9, 2024 13:13
BDK PR Review Club - 2024-05-09

BDK PR Review Club - 2024-05-09

PR discussed: bitcoindevkit/bdk#1395

  1. Why does BDK needs pseudorandom number generators (PRNG)? Particularly in signing and in building a transaction.

    • Why when signing a tx?

      A: Because of nonces, even if you don't use a PRNG, you get deterministic nonce generated which depends

@storopoli
storopoli / bitcoin-docker.md
Created April 30, 2024 20:34
Running a simple instance of `bitcoind`
  1. Spin the container: docker run --rm --name bitcoin jaonoctus/bitcoind:v26.0 -maxconnections=0
  2. Use the bitcoin-cli from another terminal: docker exec -it bitcoin bitcoin-cli decoderawtransaction true
@storopoli
storopoli / init.lua
Last active March 4, 2024 09:59
Minimal Neovim config
-------------------------------------------------------------------------------
-- DEPENDENCIES
-- neovim nodejs ripgrep rust-analyzer
-- 21 Plugins
-- ~33ms startup
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Options
@storopoli
storopoli / .vimrc
Last active February 20, 2024 12:39
vimrc
" vim:set ts=2 sts=2 sw=2 expandtab:
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'hrsh7th/vim-vsnip'
Plug 'hrsh7th/vim-vsnip-integ'
Plug 'rafamadriz/friendly-snippets'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
@storopoli
storopoli / default.nix
Created February 15, 2024 18:59
Custom Rust in Nix Shell
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
mkShell {
nativeBuildInputs = [
bashInteractive
rust-bin.nightly.latest.default # or any other
];
}
@storopoli
storopoli / dioxus.json
Last active May 9, 2024 12:26
Devcontainers Configs
{
"name": "Dioxus",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/lee-orr/rusty-dev-containers/wasm32-unknown-unknown:0": {},
"ghcr.io/lee-orr/rusty-dev-containers/dioxus:0": {}
},
@storopoli
storopoli / Cargo.toml
Created January 30, 2024 21:04
Rust Linters
[lints.rust]
unsafe_code = "forbid" # Forbid unsafe code
[lints.clippy]
enum_glob_use = "deny" # Deny `use Enum::*`
pedantic = "deny" # Deny a bunch of stuff
nursery = "deny" # Deny another bunch of stuff
unwrap_used = "deny" # Deny `.unwrap()`
[profile.release]
@storopoli
storopoli / chomebook.md
Last active January 30, 2024 18:12
Life with a Chromebook (arm64)
@storopoli
storopoli / 9barista_coffee.md
Created December 28, 2021 22:07
9Barista Coffee

9Barista Coffee

  1. 120mL Water
  2. 18g Coffee
  3. Tamping — firm push downwards — around 5kg of force is enough
  4. Medium to High Heat — closest to 3in in diameter
  5. Expresso should be 35-40mL
  6. Pour your espresso straight away

Grinder