Skip to content

Instantly share code, notes, and snippets.

View rsantacroce's full-sized avatar
💾
programming

rsantacroce rsantacroce

💾
programming
View GitHub Profile
@rsantacroce
rsantacroce / coinswift.mermaid
Created June 10, 2025 18:14
coinswift sequences diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rsantacroce
rsantacroce / drivechain.md
Last active May 21, 2025 12:56
Setting up Drivechain Enviroinment from Scratch on Console

Setting up Drivechain Environment from Scratch on Console

This is a naive setup of Drivechain, which includes:

  1. Bitcoin Patched – Adds OP_DRIVECHAIN, makes Drivechain transactions standard, removes OP_RETURN standards, allows configurable Signet block time, and changes the default data directory.
  2. BIP300 and BIP301 Enforcer
  3. Thunder

Note: I use screen to create a virtual terminal, but it's totally optional.

@rsantacroce
rsantacroce / UnlockingRevenuePotential.md
Created February 23, 2024 09:20
Unlocking Revenue Potential: How Marathon's Approach and MEV on Ethereum Signal Opportunities in the Bitcoin NFT Movement.md

Unlocking Revenue Potential: How Marathon's Approach and MEV on Ethereum Signal Opportunities in the Bitcoin NFT Movement

In the rapidly evolving landscape of blockchain technology, innovative approaches to transaction processing are reshaping the dynamics of mining and revenue generation. Marathon Digital Holdings' recent announcement regarding its independent block template creation underscores the potential for novel strategies to unlock revenue streams within the Bitcoin mining ecosystem. Concurrently, developments in the Ethereum ecosystem, particularly regarding Miner Extractable Value (MEV), offer insights into alternative revenue models. Additionally, the burgeoning NFT (Non-Fungible Token) movement on Bitcoin, driven by concepts like ordinals, presents another avenue for revenue generation.

Marathon's departure from traditional mempool reliance in favor of crafting custom block templates represents a significant advancement in Bitcoin mining. By sidestepping mempool congestion and independently c

@rsantacroce
rsantacroce / stats.sh
Created December 21, 2023 20:12
simple script that generates a stats.html page to be served by nginx with specific geth information and journalctl logs
#!/bin/bash
# Set the destination folder for the HTML file
HTML_DEST="/var/www/html/stats.html"
# Create a timestamp
TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
# Collect Geth RPC result and syncing status
GETH_RPC_RESULT=$(curl -s http://localhost:8545 -m 5) # Adjust the URL if needed
@rsantacroce
rsantacroce / telegrambot.py
Created October 30, 2023 10:53
python telegram bot template
import telegram
from telegram.ext import Updater, CommandHandler
import requests
import schedule
import time
# Your API endpoint URL
API_URL = "YOUR_API_ENDPOINT_HERE"
# Your Telegram Bot Token
TOKEN = "YOUR_TELEGRAM_BOT_TOKEN_HERE"
@rsantacroce
rsantacroce / muito-para-nada.tx
Created October 2, 2023 11:49
muito para nada
"Tem muito tempo que já não sobra nada
Nem pouco tempo."
@rsantacroce
rsantacroce / wondering-satoshi.md
Created September 26, 2023 08:40
wondering about satoshi
@rsantacroce
rsantacroce / what-if-bitcoin.md
Created September 19, 2023 20:09
what-if-bitcoin

Miles: "You think you can rebuild Bitcoin, just from its whitepaper, BIPs, and data files, like some kind of crypto Frankenstein?"

Chet: "Man, the whitepaper is a manifesto, not a how-to guide. You'd need the codebase, the community, and the economic incentives—don't forget, it's a whole ecosystem."

Miles: "Ah, the fallacy of recreating genius. You can have the ingredients but still screw up the recipe. The devil's in the details, my friend." #Bitcoin

@rsantacroce
rsantacroce / emacs-setup-cheatsheet-prorgamming.md
Created September 17, 2023 03:47
Emacs Setup for Multiple Programming Languages

Emacs Setup for Multiple Programming Languages

In this post, I'll guide you through setting up Emacs for various programming languages. I'll cover Rust, C/C++, Solidity, and JavaScript/TypeScript. The goal is to help you navigate, compile, debug, run tests, and manage your code effectively.


Table of Contents