Skip to content

Instantly share code, notes, and snippets.

@1ma
1ma / bitcoin.conf
Created July 11, 2023 17:05
Bitcoin Core v25.0 Config Reference
##
## bitcoin.conf configuration file.
## Generated by contrib/devtools/gen-bitcoin-conf.sh.
##
## Lines beginning with # are comments.
## All possible configuration options are provided. To use, copy this file
## to your data directory (default or specified by -datadir), uncomment
## options you would like to change, and save the file.
##
diff --git a/src/init.cpp b/src/init.cpp
index af39e8078..c0b5e09dc 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -553,6 +553,7 @@ void SetupServerArgs(ArgsManager& argsman)
argsman.AddArg("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kvB) used to define dust, the value of an output such that it will cost more than its value in fees at this fee rate to spend it. (default: %s)", CURRENCY_UNIT, FormatMoney(DUST_RELAY_TX_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
argsman.AddArg("-bytespersigop", strprintf("Equivalent bytes per sigop in transactions for relay and mining (default: %u)", DEFAULT_BYTES_PER_SIGOP), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
argsman.AddArg("-datacarrier", strprintf("Relay and mine data carrier transactions (default: %u)", DEFAULT_ACCEPT_DATACARRIER), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
+ argsman.AddArg("-relayopfalseopif", strprintf("Relay and mine transactions containing the OP_FALSE OP_I
@1ma
1ma / bitcoin.conf
Created January 20, 2023 12:09
Bitcoin Core v24.0.1 Config Reference
##
## bitcoin.conf configuration file.
## Generated by contrib/devtools/gen-bitcoin-conf.sh.
##
## Lines beginning with # are comments.
## All possible configuration options are provided. To use, copy this file
## to your data directory (default or specified by -datadir), uncomment
## options you would like to change, and save the file.
##
#!/usr/bin/env bash
# Requirements: curl, jq (sudo apt install curl jq)
# First, create an A record manually with a TTL of 120 (2 minutes, the minimum)
# The API key is generated from Vultr's user dashboard.
# The Record ID is a UUID, fetch it from here:
# curl -H "Authorization: Bearer ${VULTR_API_KEY}" https://api.vultr.com/v2/domains/${VULTR_DOMAIN}/records
@1ma
1ma / instructions.md
Last active October 16, 2023 07:09
VSCode Ada Debugging
  1. Enable Allow breakpoints everywhere setting

  2. Install both the C/C++ and Language Support for Ada extensions from VSCode Marketplace.

  3. Add a .vscode/launch.json file to your project, adapting the "program" line as necessary:

{
   "version": "0.2.0",
 "configurations": [
@1ma
1ma / RenderingMiddleware.php
Created May 19, 2020 12:08
middleware outgoing data flow
<?php
declare(strict_types=1);
namespace Project\Infrastrucuture\Middleware;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
@1ma
1ma / Syncthing.md
Created September 21, 2019 11:10
Syncthing Notes

Syncthing

Architecture

Syncthing works in a decentralized manner, meaning you can simply install the software in all your devices and they will directly stream any changes in your shared folders between them.

However, if you usually only have one device open at a time it won't have anywhere to send the changes. For this reason it's practical to install the software in a server so that

@1ma
1ma / VoidLinuxNotes.md
Last active November 6, 2023 18:52
Void Linux Notes

Essential packages:

sudo xbps-install -Su void-repo-nonfree

sudo xbps-remove firefox-esr

sudo xbps-install -Su \
ascii \
baobab \
@1ma
1ma / AvailabilityServiceDriver.php
Last active January 28, 2019 13:20
Layout for an interruptible Availability Service
<?php
declare(strict_types=1);
final class AvailabilityServiceDriver
{
/**
* @var IterableAvailabilityService
*/
private $as;
@1ma
1ma / Dockerfile
Created December 29, 2018 23:07
AdaCore GNAT 2016 environment based on Ubuntu
FROM ubuntu:14.04 AS adacore2016
ENV PATH="/usr/gnat/bin:${PATH}"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libc6-dev \
make \
&& cd /tmp \