Skip to content

Instantly share code, notes, and snippets.

@1ma
1ma / transfer.bean
Created September 18, 2024 19:50
Exemple de traspàs a Beancount
option "title" "Experiments traspassant fons d'inversió"
option "operating_currency" "EUR"
option "booking_method" "FIFO"
plugin "beancount.plugins.implicit_prices"
2020-01-01 open Assets:Efectiu EUR
2020-01-01 open Assets:BrokerX:FonsABC ABC.FI
2022-01-01 open Assets:BrokerY:FonsDEF DEF.FI
@1ma
1ma / Dockerfile
Created March 6, 2025 14:22
Bitcoin Core CMake Edition
FROM alpine:3.21 AS builder
WORKDIR /tmp
RUN apk add --no-cache \
git \
&& git clone https://github.com/bitcoin/bitcoin
WORKDIR /tmp/bitcoin
@1ma
1ma / Dockerfile
Last active November 17, 2025 00:34
Sample customization of Docker official PHP image with multistage build
FROM php:8.4-fpm AS build
RUN apt-get update && apt-get install -y --no-install-recommends \
libfreetype-dev \
libjpeg62-turbo-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libsqlite3-dev \
zlib1g-dev \