Skip to content

Instantly share code, notes, and snippets.

View twofaktor's full-sized avatar
₿uilding MiniBolt guide...🏗️

⚡️2FakTor⚡️ twofaktor

₿uilding MiniBolt guide...🏗️
View GitHub Profile
@d6n13l0l1v3r
d6n13l0l1v3r / update_rpcpassword.sh
Last active December 21, 2023 13:44
update rpc password for those services than don't support rpcauth (.cookiesfile)
#!/bin/bash
script_name=$(basename "$0")
service=$1
log() {
logger -t "$script_name" "$1"
}
#start log messages
@Asone
Asone / dashboard.json
Created October 5, 2023 07:11
Grafana dashboard configuration for nostr-rs-relay monitoring
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@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.
##
@melvincarvalho
melvincarvalho / nostr-tx-broadcast.js
Created April 27, 2023 08:16
nostr-tx-broadcast.js
const WebSocket = require('ws');
const bitcoin = require('bitcoinjs-lib');
const fetch = require('node-fetch');
const base64 = require('base64-js');
const relays = [
'wss://nostr.wine',
'wss://nos.lol',
'wss://nostr.fmt.wiz.biz',
'wss://nostr.zebedee.cloud',
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -504,6 +504,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
return set_error(serror, SCRIPT_ERR_MINIMALDATA);
}
stack.push_back(vchPushValue);
+ if ((flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) && opcode == OP_FALSE) {
+ auto pc_tmp = pc;
+ opcodetype next_opcode;
+ valtype dummy_data;
#!/bin/bash
# Mirrors notes from one nostr relay to another.
#
# Example usage:
# nostr-mirror.sh wss://source.relay.example wss://target.relay.example
# Source relay to fetch events from (wss://...).
SOURCE=$1
# Target relay to send these events to (wss://...).
TARGET=$2