This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| for ip in $(curl -s https://www.cloudflare.com/ips-v4/); do | |
| echo "set_real_ip_from $ip;"; | |
| done | |
| for ip in $(curl -s https://www.cloudflare.com/ips-v6/); do | |
| echo "set_real_ip_from $ip;"; | |
| done | |
| echo "real_ip_header X-Forwarded-For;" | |
| echo "real_ip_recursive on;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Amount | Bundle Size (GB) | Price Per GB | |
|---|---|---|---|
| 25 | 4.91 | 5.09164969450102 | |
| 26 | 5.1 | 5.09803921568628 | |
| 27 | 5.3 | 5.09433962264151 | |
| 28 | 5.5 | 5.09090909090909 | |
| 29 | 5.69 | 5.09666080843585 | |
| 30 | 6.16 | 4.87012987012987 | |
| 31 | 6.09 | 5.09031198686371 | |
| 32 | 6.28 | 5.09554140127389 | |
| 33 | 6.48 | 5.09259259259259 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| declare -A NODEMAP | |
| for node_id in $(lightning-cli listpeers | jq -r '.peers | .[].id'); do | |
| node_alias=$(lightning-cli listnodes $node_id | jq -r '.nodes | .[] | .alias'); | |
| if [ ${#node_alias} != 0 ]; then | |
| NODEMAP[$node_id]=$node_alias; | |
| NODES+="{\"$node_id\":\"$node_alias\"}"; | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const lnurl = require('lnurl') | |
| const { v4: uuid4 } = require('uuid') | |
| const express = require('express') | |
| const { exec } = require('child_process') | |
| const crypto = require('crypto') | |
| const app = express() | |
| const port = 7000 | |
| const users = ['godwin', 'bernard'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo -n $1 | xxd -r -p | sha256sum - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bitcoin-cli listbanned | jq -r '.[] | select(.ban_reason=="manually added") | .address' | xargs -P 10 -i -- bitcoin-cli setban {} remove \ | |
| && curl -s https://people.xiph.org/\~greg/banlist.gui.txt | xargs -P 10 -L 1 bitcoin-cli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 00004020f1f9b8c77a42e502101978707f5de1896176ac1f3b251b0000000000000000007f5a9b94bc04c945693178e32eeae20f5066d7cde08c72001bdd5842da314a7aadf7255d9b0d1f1700e4a56d01010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff550362ec081c4d696e656420627920416e74506f6f6c313132ee003300200f0c9c50fabe6d6dc0ba0d6922d0606afa6321ef35c91f070cb29a0425d4ffef18f70658908db8b6040000000000000033060000b43f0000ffffffff02037f114f000000001976a914edf10a7fac6b32e24daa5305c723f3de58db1bc888ac0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name explorer.local; | |
| location ~ ^/api(/?)(.*) { | |
| proxy_pass http://127.0.0.1:4000/$2; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-Server $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NBXPLORER_NETWORK=mainnet | |
| NBXPLORER_BIND=127.0.0.1:24444 | |
| NBXPLORER_NOAUTH=1 | |
| NBXPLORER_CHAINS=btc | |
| NBXPLORER_BTCRPCURL=http://127.0.0.1:8332/ | |
| NBXPLORER_BTCNODEENDPOINT=127.0.0.1:8333 | |
| NBXPLORER_BTCRPCAUTH=rpcuser:rpcpassword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| nbxplorer: | |
| restart: always | |
| build: | |
| context: https://github.com/dgarage/NBXplorer.git#v2.0.0.21 | |
| dockerfile: Dockerfile.linuxamd64 | |
| env_file: nbxplorer.env | |
| network_mode: host |
NewerOlder