Skip to content

Instantly share code, notes, and snippets.

@1ma
1ma / pubkey.asc
Created June 29, 2024 22:29
My PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFU32dgBEACcXtiSiNI2nsDnfVmyZ+Kwpp7Pk2P51M1116E1DH5Nbn5PqalG
ALWrK8ZhQpJev75G0Ufee6SmLp/eYPdWLNVL0ZBpDZXwzj7Dpp4qlb31XKhJ0hiO
CzjudUiI1JOLfd4VLCHJdOI5CQhSvkypQZHvRzMyowALa0Aej0sHKdTHkyX9I90b
ThQZka6HSLpptiCs4+XtwTzbbc8/m6FNB1Oe2qvXz57eh4It9XU6C3b/8udQWp0f
RP77PAsylIQ/voBorZMEqityjWx3PJLd8iZTGzYxnXU02QpG2f7Ud5xTxf/b30Zp
GrpS8kiidgjUop4T+5R9t2rJqsNBNwpyN8lu2vFukQI8CMAFLnDQyRmlspmZIvb6
IOtBfZe41YNIrRrDT7GR382hEzXDujntEJentuXhEvHp1FhYModtUfxp9szrOeQX
5jKnqHKLAfYYHezFkOZCoxM7uPEDAr+juzxXN9K2KZXNaDfnQ/POXJp7yo0qsKDh
@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;