From 82c46b2f420b8c17103836c3c03c52815686ceb2 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sat, 9 Dec 2023 21:19:14 -0500 Subject: [PATCH 001/183] deps/gnostr-sha256:v0.0.4 --- deps/gnostr-sha256 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/gnostr-sha256 b/deps/gnostr-sha256 index d9b22c6ad1..60a179f1ad 160000 --- a/deps/gnostr-sha256 +++ b/deps/gnostr-sha256 @@ -1 +1 @@ -Subproject commit d9b22c6ad111f7bd7b3192d7ccad10bee51d5061 +Subproject commit 60a179f1adc435b8f16caf410eb3179252e09929 From df504ed9964ca156f93f0e58f0b86f53fe5db248 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 16:08:23 -0500 Subject: [PATCH 002/183] .gitmodules:add gnostr-bins as bins --- .gitmodules | 3 +++ bins | 1 + 2 files changed, 4 insertions(+) create mode 160000 bins diff --git a/.gitmodules b/.gitmodules index fe84ae7716..279431df4b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -109,3 +109,6 @@ branch = master ignore = dirty depth = shallow +[submodule "bins"] + path = bins + url = https://github.com/gnostr-org/gnostr-bins.git diff --git a/bins b/bins new file mode 160000 index 0000000000..46fd6f4c28 --- /dev/null +++ b/bins @@ -0,0 +1 @@ +Subproject commit 46fd6f4c28eb878b66b738215d60e0cbb9eba28d From 09db5e9d45c586280ca591ceb98cd6fdd2549e21 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 31 Oct 2023 16:26:53 -0400 Subject: [PATCH 003/183] .gitignore: tests/.gitignore: --- .gitignore | 23 +++++++++++++++++++++++ tests/.gitignore | 1 + 2 files changed, 24 insertions(+) create mode 100644 tests/.gitignore diff --git a/.gitignore b/.gitignore index 361ef63059..1bbd9df0e6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +build + gnostr-*.patch gnostr gnostr-act @@ -142,6 +144,27 @@ ext/wt-4.10.0/src/Wt_xml.C ext/wt-4.10.0/wt_config.xml wostro.log.txt +ext/Simple-WebSocket-Server-v2.0.2/bash_profile.log +ext/wt-4.10.0/bash_profile.log +ext/wt-4.10.0/examples/gitmodel/gitview.wt +ext/wt-4.10.0/examples/wt-homepage/Home.wt +ext/wt-4.10.0/examples/wt-homepage/bash_profile.log +ext/wt-4.10.0/test/test.http +ext/wt-4.10.0/test/test.mssqlserver +ext/wt-4.10.0/test/test.sqlite3 +ext/wt-4.10.0/test/test.wt + +src/nostril/.envrc +src/nostril/.github/ +src/nostril/.gitignore +src/nostril/.gitmodules +src/nostril/default.nix +src/nostril/devtools/ +src/nostril/doc/ +src/nostril/nostril-query +src/nostril/scripts/ +src/nostril/shell.nix + tests.log.txt web/wt_config.xml web/APP_KEY diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000000..397b4a7624 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1 @@ +*.log From 60e5bf1538116cbec09c9f34c17cd1cb8039d16a Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 31 Oct 2023 16:28:02 -0400 Subject: [PATCH 004/183] GNUmakefile:rustup-init env vars RUSTUP_INIT_SKIP_PATH_CHECK=yes TOOLCHAIN=stable Z= ## --- GNUmakefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 48b957d0ae..0b085f356f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -31,6 +31,27 @@ endif HOMEBREW :=$(shell which brew || false) +RUSTUP_INIT_SKIP_PATH_CHECK=yes +TOOLCHAIN=stable +Z= ## +ifneq ($(toolchain),) + +ifeq ($(toolchain),nightly) +TOOLCHAIN=nightly +Z=-Z unstable-options +endif + +ifeq ($(toolchain),stable) +TOOLCHAIN=stable +Z= ## +endif + +endif + +export RUSTUP_INIT_SKIP_PATH_CHECK +export TOOLCHAIN +export Z + ifeq ($(verbose),true) VERBOSE :=-v else From 05c3acaf410d31066df5b0e4919ef8393791c4a8 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sat, 4 Nov 2023 19:18:24 -0400 Subject: [PATCH 005/183] template/gnostr-hexidrome:initial commit --- template/gnostr-hexidrome | 84 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100755 template/gnostr-hexidrome diff --git a/template/gnostr-hexidrome b/template/gnostr-hexidrome new file mode 100755 index 0000000000..9258fffda8 --- /dev/null +++ b/template/gnostr-hexidrome @@ -0,0 +1,84 @@ +#!/usr/bin/env python3 +import sys + +# define a function to check if a number is a palindrome +def is_palindrome(n): + # convert the number to a string + s = str(n) + # check if the string is the same forwards and backwards + return s == s[::-1] + +def loop(lb, ub): + + # define the start and end of the range + start = int(lb) + end = int(ub) + + # create an empty list to store the palindromes + palindromes = [] + + # loop through the range of numbers + for n in range(start, end+1): + # if the number is a palindrome, add it to the list + if is_palindrome(n): + palindromes.append(n) + + # print the list of palindromes + if len(palindromes) > 0: + ## print(palindromes) + ## print('[{}]'.format(', '.join(str(x)[2:] for x in palindromes))) + ## print('[{}]'.format(', '.join(str(x) for x in palindromes))) + ## print('[{}]'.format(' '.join(str(x) for x in palindromes))) + ## print('{}'.format(' '.join(str(x) for x in palindromes))) + ## print('{}'.format(''.join(str(x) for x in palindromes))) + ## print(palindromes) + + hexlist = list(map(hex, palindromes)); + if len(hexlist) > 0: + ## print(hexlist) + ## print('[{}]'.format(', '.join(str(x)[2:] for x in hexlist))) + ## print('[{}]'.format(''.join(str(x)[2:] for x in hexlist))) + print('{}'.format(''.join(str(x)[2:] for x in hexlist))) + +if (args_count := len(sys.argv)) == 3: + + if int(sys.argv[1]) > int(sys.argv[2]): + ## print("int(sys.argv[1]) > int(sys.argv[2])"); + lower_bound = int(sys.argv[2]); + upper_bound = int(sys.argv[1]); + loop(lower_bound, upper_bound) + + if int(sys.argv[1]) < int(sys.argv[2]) or int(sys.argv[1]) == int(sys.argv[2]): + ## print("int(sys.argv[1]) < int(sys.argv[2])"); + lower_bound = int(sys.argv[1]); + upper_bound = int(sys.argv[2]); + loop(lower_bound, upper_bound) + +elif args_count == 2: + + if int(sys.argv[1]) > int(sys.argv[2]): + print("int(sys.argv[1]) > int(sys.argv[2])"); + lower_bound = int(0); + upper_bound = int(sys.argv[2]); + loop(lower_bound, upper_bound) + + if int(sys.argv[1]) < int(sys.argv[2]): + print("int(sys.argv[1]) < int(sys.argv[2])"); + lower_bound = int(0); + upper_bound = int(sys.argv[1]); + loop(lower_bound, upper_bound) + + +elif args_count > 2: + + print("Usage:\n") + print("is_palindrome \n") + print("is_palindrome \n") + raise SystemExit(0) + +elif args_count < 2: + + print("Usage:\n") + print("is_palindrome \n") + print("is_palindrome \n") + raise SystemExit(0) From 7c791a80774ad34c1465db894281314daa0201f5 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sat, 4 Nov 2023 20:35:06 -0400 Subject: [PATCH 006/183] gnostr.c: GIT_CONFIG: gnostr-git config --add gnostr.secretkeys --- gnostr.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gnostr.c b/gnostr.c index 1cc3308107..71c36917ff 100644 --- a/gnostr.c +++ b/gnostr.c @@ -100,9 +100,18 @@ void usage() { printf("usage: gnostr [OPTIONS]\n"); printf("\n"); - printf(" GIT OPTIONS\n"); + printf(" GNOSTR-GIT:\n"); + printf(" CONFIG:\n"); printf("\n"); + printf(" gnostr-git config\n"); + printf(" gnostr git config --global\n"); + printf(" gnostr git config --global --add gnostr.secretkey $(gnostr-sha256 12345)\n"); + printf(" gnostr git config --global --get gnostr.secretkey\n"); + printf(" 5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\n"); printf("\n"); + printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey)\n"); + printf("\n"); + printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey) --envelope --content \n"); printf(" RELAY OPTIONS\n"); printf("\n"); printf("\n"); @@ -123,6 +132,15 @@ void usage() printf(" -e shorthand for --tag e \n"); printf(" -p shorthand for --tag p \n"); printf(" -t shorthand for --tag t \n"); + printf("\n"); + printf("\n"); + + +//gnostr-git config --global --get gnostr.secretkey + +// git config --global --add gnostr.secretkey +// 0000000000000000000000000000000000000000000000000000000000000001 + exit(0); } From e0aa1a1bd5604432b7039b648a080246ed20ee1c Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 5 Dec 2023 15:06:54 -0500 Subject: [PATCH 007/183] template/gnostr-keyconv --- template/gnostr-keyconv | 234 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100755 template/gnostr-keyconv diff --git a/template/gnostr-keyconv b/template/gnostr-keyconv new file mode 100755 index 0000000000..36229887c7 --- /dev/null +++ b/template/gnostr-keyconv @@ -0,0 +1,234 @@ +#!/usr/bin/python3 + +import pip + +while True: + + try: + #import your modules here. ! + from distutils.spawn import find_executable + from shutil import which + import hashlib + import shutil + import base58 + import sys + import os + + ## pip.main(['install', '-q', 'bip85-cli']) + break + + except ImportError as err_mdl: + + print((err_mdl.name)) + pip.main(['install', err_mdl.name]) + +## while True: +## +## try: +## shutil.copy(os.path.abspath('gnostr-keyconv'), '/usr/local/bin/gnostr-keyconv') +## +## except ImportError as err_mdl: +## +## print((err_mdl.name)) +## ## pip.main(['install', err_mdl.name]) + +def in_path(name): + """Check whether `name` is on PATH.""" + ## print(os.path.abspath(name)) + ## print(os.path.dirname(os.path.abspath(name))) + return find_executable(name) is not None + +if in_path("gnostr-keyconv"): + True + +prefix_dict = { + "xprv": "0488ade4", # Mainnet - P2PKH or P2SH - m/44'/0' + "yprv": "049d7878", # Mainnet - P2WPKH in P2SH - m/49'/0' + "zprv": "04b2430c", # Mainnet - P2WPKH - m/84'/0' + "Yprv": "0295b005", # Mainnet - Multi-signature P2WSH in P2SH + "Zprv": "02aa7a99", # Mainnet - Multi-signature P2WSH + "tprv": "04358394", # Testnet - P2PKH or P2SH - m/44'/1' + "uprv": "044a4e28", # Testnet - P2WPKH in P2SH - m/49'/1' + "vprv": "045f18bc", # Testnet - P2WPKH - m/84'/1' + "Uprv": "024285b5", # Testnet - Multi-signature P2WSH in P2SH + "Vprv": "02575048", # Testnet - Multi-signature P2WSH + + 'xpub': '0488b21e', # Mainnet - P2PKH or P2SH - m/44'/0' + 'ypub': '049d7cb2', # Mainnet - P2WPKH in P2SH - m/49'/0' + 'zpub': '04b24746', # Mainnet - P2WPKH - m/84'/0' + 'Ypub': '0295b43f', # Mainnet - Multi-signature P2WSH in P2SH + 'Zpub': '02aa7ed3', # Mainnet - Multi-signature P2WSH + 'tpub': '043587cf', # Testnet - P2PKH or P2SH - m/44'/1' + 'upub': '044a5262', # Testnet - P2WPKH in P2SH - m/49'/1' + 'vpub': '045f1cf6', # Testnet - P2WPKH - m/84'/1' + 'Upub': '024289ef', # Testnet - Multi-signature P2WSH in P2SH + 'Vpub': '02575483' # Testnet - Multi-signature P2WSH +} + +################################################################################ +################################################################################ +################################################################################ +################################################################################ + +## xprv 0 +## REF: https://iancoleman.io/bip39/ +## sha256() empty hash value is used as entropy source +## +## Entropy: +## e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +## +## Raw Binary: +## 11100011101 10000110001 00010000101 00110001111 11000001110 00001010010 01101011111 01111110100 11001000100 11001011011 11101110010 01001000010 01111010111 00100000111 10010001100 10010011011 10010011010 01100101001 00100101011 00110010001 10110111100 00101001010 11100001010 101 +## +## Binary Checksum: +## 01011101 +## +## Word Indexes: +## 1821, 1073, 133, 399, 1550, 82, 863, 1012, 1604, 1627, 1906, 578, 983, 263, 1164, 1179, 1178, 809, 299, 401, 1468, 330, 1802, 1373 +## +## BIP39 Mnemonic: +## together mail awful cradle scrub apart hip leader silk slice unusual embark kit can muscle nature nation gown century cram resource citizen throw produce +## +## BIP39 Seed: +## 512f8b5659eab6fc5d374f6dd9baee1088b83be63a24d2976a210f16b1cebc738c5f848165b4c5674f280956cc099de4e37de88684aface56fc19d5c191f3485 +## +## BIP32 Root Key: +## xprv9s21ZrQH143K2adDUydUhh9twPi4jxoG4dPHKsVNcid2DJRbpfUuemEETVYhr91RGSQHvyED6REErWA19bLG4iRrbWPCFsNdMWswBgABd2N + +################################################################################ +################################################################################ +################################################################################ +################################################################################ + +## BIP85 Application +## BIP39 +## BIP85 Mnemonic Language +## English +## BIP85 Mnemonic Length +## 12 +## BIP85 Index +## 0 +## BIP85 Child Key +## problem sick produce useless fish rhythm panic main entry typical demise hotel + +## Derivation Path +## Purpose +## 44 +## Coin +## 0 +## Account +## 0 +## External / Internal +## 0 + +## Account Extended Private Key +## xprv9z4Btz1nrdJPotVdoN5cpgQhkCSFNFfu3V2dVafAfKv52HXkYRBTLt2MTBk2HhY3bEAxuU3pQKuwid23iRxzsz6jhq5nXqYjUaebHrpAr5K +## Account Extended Public Key +## xpub6D3YJVYggzrh2Na6uPcdBpMSJEGjmiPkQhxEHy4nDfT3u5ru5xVhtgLqJUyEccFfgzCAd7Nh73PHEy3B4asn4MdKJP4SY32AcbVptXWuuUu +## The BIP32 derivation path and extended keys are the basis for the derived addresses. +## BIP32 Derivation Path +## m/44'/0'/0'/0 +## +## BIP32 Extended Private Key +## xprvA11xZi3THUPzDKnhLMKpitHEkHwGA63kUbSbhhUZH7Wiu2qd1ADi93YFaUK9Yw2ztXj9Ybydob5o182fFsZczXum1QoStR41qvHuzqUJcwY +## BIP32 Extended Public Key +## xpub6E1JyDaM7qxHRosASNrq62DyJKmkZYmbqpNCW5tAqT3hmqAmYhXxgqrjRk2g9xifvnEcxuxWv2ACaYBWtWbxVuXf3UaYoF2RruGGM17EfJ6 + + +key_dict = { + "x": "xprv9s21ZrQH143K2adDUydUhh9twPi4jxoG4dPHKsVNcid2DJRbpfUuemEETVYhr91RGSQHvyED6REErWA19bLG4iRrbWPCFsNdMWswBgABd2N", + "y": "yprvABrGsX5C9jansspLKLR6unFQ7MrWgankyjuW7GPFzizuGQEq5KeUGptNUhWHr3fLg5X6gSpmZ5anjnmZsHkGrx7TTr5cqnC7dEwaaBut7hG", + "z": "zprvAWgYBBk7JR8GjB1T9hCj7sLuHKzxdCnFtrRitfH9NjNnKW44Kyp2ttYWVuTsqxKG5iduRvRL1jwLd5P8azAHfBo4LBn3Rh1bty1DxmUduAH", + "t": "tprv8ZgxMBicQKsPdPrk9YUysLmtFX8GyUqGQBJQCHuq6h7VzuAgp2pfAWbgNfiMrWPjdsw4w4qyFmp3KMhkGogCsmhT89bVvE6gGcdMdLRt9MK", + "u": "uprv8tXDerPXZ1QsUh3ryuGc5RsPRVGiv6pmKHpcygoiUhVP3zyv4gzDnaFpPsfwrR3f3X3sgYSXiSAbCeKJzW6Dg1P3zVHvW8vAYLh11wPUsjm", + "": "", + "": "", + "": "", + "": "", + "": "", + "": "", + "": "", +} + +def supported_prefixes(): + import json + print("\nSupported prefixes:\n"); + print(json.dumps(prefix_dict, indent=4)); + print(json.dumps(key_dict, indent=4)); + +def help(): + print("Usage:\n") + print(" gnostr-keyconv [-t, --tests] - run tests()") + print(" gnostr-keyconv [-p, --prefixes] - print supported prefixes") + print(" gnostr-keyconv \n") + print("") + print("Tests Vectors:") + print("1:") + print("gnostr-keyconv zpub6qwqZGWt6Gqm9i2bY2ErmJcTfRHHYX4LeUeszP33bSH3zgNdGiD7LEg57BQp2k5EQ4Qr5UAhgG1DMRSMZSA44UTNy1rLTqa3qaSnT9GmdsF ypub") + print("2:") + print("gnostr-keyconv ypub6X7aFbqxwbJHJQqUhfTEZDWxVT8qbu4qjN8fCz9ADRuAwaZQ243YiB1w5yTE2qRJzRJ3Kza9DbefU8pnqjk3GEmn6g9usvkZZrP94VcBVdz xpub") + print("3:") + print("gnostr-keyconv xpub6CHJwwB3nukoT7eMsJfcM8RTKUzPfH5LpFcSRbFGqRXHtUkAmPsz67Mo4mVe2vmPanBEaWyakwJ7arDE83L2U16BELTVJ1w5J8KVfyMqtzE zpub") + print("4:") + print("gnostr-keyconv yprvAJ8Dr6K57Djz5vm1bdvEC5aDwRJMCSLzN9D4QbjYf6NC4nEFUWjJANhTEghL3npior1TjTXW8vcuiaXoRGH8ZrEBn62qzPxbVKn6x5oY5vq xprv") + print("5:") + print("gnostr-keyconv xprv9yHxYRe9xYCWEdZtmH8byzUimT9uFpMVT2gqdCqfH5zK1gR2DrZjYK3KDUjk3tAoQCteyyvwgGGMqHvEhZs7mcYaukLRQV97DbiTZSJRaKC zprv") + print("6:") + print("gnostr-keyconv zprvAcxV9kyzFuHTwDx8RzhrQAfj7PSo94LVHFjHBzdS36k57t3UjAtrnSMbFtev3hUeDV8GUw84bayTbs9N8xh9N5uneRjGaJn5m3qkLdQwiaZ yprv") + +def convert_key(key, target_prefix): + decoded_key_bytes = base58.b58decode_check(key) + target_key_bytes = bytes.fromhex(prefix_dict[target_prefix]) + decoded_key_bytes[4:] + return base58.b58encode_check(target_key_bytes) + +def main(key, target_prefix): + + if not key or not target_prefix: + help(); + return "Insufficient parameters." + + if key[1:4] != target_prefix[1:4]: + return "The key and the target prefix must be both public or both private." + + if not key[:4] in prefix_dict: + return "Invalid key target version." + + if not target_prefix in prefix_dict: + return "Invalid prefix target version." + + return convert_key(key, target_prefix) + +def tests(): + + result = main("zpub6qwqZGWt6Gqm9i2bY2ErmJcTfRHHYX4LeUeszP33bSH3zgNdGiD7LEg57BQp2k5EQ4Qr5UAhgG1DMRSMZSA44UTNy1rLTqa3qaSnT9GmdsF", "ypub"); + print("1:result"); + print(result); + result = main("ypub6X7aFbqxwbJHJQqUhfTEZDWxVT8qbu4qjN8fCz9ADRuAwaZQ243YiB1w5yTE2qRJzRJ3Kza9DbefU8pnqjk3GEmn6g9usvkZZrP94VcBVdz", "xpub"); + print("2:result"); + print(result); + result = main("xpub6CHJwwB3nukoT7eMsJfcM8RTKUzPfH5LpFcSRbFGqRXHtUkAmPsz67Mo4mVe2vmPanBEaWyakwJ7arDE83L2U16BELTVJ1w5J8KVfyMqtzE", "zpub"); + print("3:result"); + print(result); + result = main("yprvAJ8Dr6K57Djz5vm1bdvEC5aDwRJMCSLzN9D4QbjYf6NC4nEFUWjJANhTEghL3npior1TjTXW8vcuiaXoRGH8ZrEBn62qzPxbVKn6x5oY5vq", "xprv"); + print("4:result"); + print(result); + result = main("xprv9yHxYRe9xYCWEdZtmH8byzUimT9uFpMVT2gqdCqfH5zK1gR2DrZjYK3KDUjk3tAoQCteyyvwgGGMqHvEhZs7mcYaukLRQV97DbiTZSJRaKC", "zprv"); + print("5:result"); + print(result); + result = main("zprvAcxV9kyzFuHTwDx8RzhrQAfj7PSo94LVHFjHBzdS36k57t3UjAtrnSMbFtev3hUeDV8GUw84bayTbs9N8xh9N5uneRjGaJn5m3qkLdQwiaZ", "yprv"); + print("6:result"); + print(result); + +try: + key = sys.argv[1] + if key == "-t" or key == "--tests": + tests(); + exit(); + if key == "-p" or key == "--prefixes": + supported_prefixes(); + exit(); + target_prefix = sys.argv[2] + result = main(key, target_prefix) + print(result) +except IndexError: + help(); From 166a56949976ae95e2d4af1c2efe04bc811a42ad Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 5 Dec 2023 20:38:54 -0500 Subject: [PATCH 008/183] build.cmake.sh --- build.cmake.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.cmake.sh b/build.cmake.sh index 67d1529ccb..fffdd246ae 100755 --- a/build.cmake.sh +++ b/build.cmake.sh @@ -66,7 +66,8 @@ fi if [[ "$OSTYPE" == "msys"* ]]; then ./Debug/vostro --http-address=0.0.0.0 --http-port=8080 --docroot=. else -$SCRIPTPATH/build/./vostro \ +$SCRIPTPATH/build/web/gnostr-web \ +--deploy-path=/web \ --http-address=0.0.0.0 \ --http-port=$PORT \ --docroot=. || echo "port busy?" From 542aaf01f1a816f25457640ef27b10d3288a19d7 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sat, 9 Dec 2023 21:19:14 -0500 Subject: [PATCH 009/183] deps/gnostr-sha256:v0.0.4 --- deps/gnostr-sha256 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/gnostr-sha256 b/deps/gnostr-sha256 index d9b22c6ad1..60a179f1ad 160000 --- a/deps/gnostr-sha256 +++ b/deps/gnostr-sha256 @@ -1 +1 @@ -Subproject commit d9b22c6ad111f7bd7b3192d7ccad10bee51d5061 +Subproject commit 60a179f1adc435b8f16caf410eb3179252e09929 From fd9f4be3b25091dd9043db6f4cd3a014f01507d3 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 20:06:08 -0500 Subject: [PATCH 010/183] deps/gnostr-grep:v0.0.4 --- deps/gnostr-grep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/gnostr-grep b/deps/gnostr-grep index ff9785d970..985775af29 160000 --- a/deps/gnostr-grep +++ b/deps/gnostr-grep @@ -1 +1 @@ -Subproject commit ff9785d9701aa363dbbc78202866ce0390d63cbb +Subproject commit 985775af29939af8e7a5c934a155a4229433596e From 3995b1aeeadf04c72cd1166ba44dc36c46449bf0 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 21:27:49 -0500 Subject: [PATCH 011/183] template/gnostr-hexidrome --- template/gnostr-hexidrome | 65 +++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/template/gnostr-hexidrome b/template/gnostr-hexidrome index 9258fffda8..de1cd591c7 100755 --- a/template/gnostr-hexidrome +++ b/template/gnostr-hexidrome @@ -1,8 +1,16 @@ #!/usr/bin/env python3 import sys +def get_arg(index): + try: + sys.argv[index] + except IndexError: + return '' + else: + return sys.argv[index] + # define a function to check if a number is a palindrome -def is_palindrome(n): +def gnostr_hexidrome(n): # convert the number to a string s = str(n) # check if the string is the same forwards and backwards @@ -20,7 +28,7 @@ def loop(lb, ub): # loop through the range of numbers for n in range(start, end+1): # if the number is a palindrome, add it to the list - if is_palindrome(n): + if gnostr_hexidrome(n): palindromes.append(n) # print the list of palindromes @@ -40,45 +48,48 @@ def loop(lb, ub): ## print('[{}]'.format(''.join(str(x)[2:] for x in hexlist))) print('{}'.format(''.join(str(x)[2:] for x in hexlist))) + + + + + if (args_count := len(sys.argv)) == 3: - if int(sys.argv[1]) > int(sys.argv[2]): - ## print("int(sys.argv[1]) > int(sys.argv[2])"); - lower_bound = int(sys.argv[2]); - upper_bound = int(sys.argv[1]); + if int(get_arg(1)) > int(get_arg(2)): + ## print("int(get_arg(1)) > int(get_arg(2))"); + lower_bound = int(get_arg(2)); + upper_bound = int(get_arg(1)); loop(lower_bound, upper_bound) - if int(sys.argv[1]) < int(sys.argv[2]) or int(sys.argv[1]) == int(sys.argv[2]): - ## print("int(sys.argv[1]) < int(sys.argv[2])"); - lower_bound = int(sys.argv[1]); - upper_bound = int(sys.argv[2]); + if int(get_arg(1)) < int(get_arg(2)) or int(get_arg(1)) == int(get_arg(2)): + ## print("int(get_arg(1)) < int(get_arg(2))"); + lower_bound = int(get_arg(1)); + upper_bound = int(get_arg(2)); loop(lower_bound, upper_bound) -elif args_count == 2: +elif (args_count := len(sys.argv)) == 2: - if int(sys.argv[1]) > int(sys.argv[2]): - print("int(sys.argv[1]) > int(sys.argv[2])"); + if int(get_arg(1)) > int(get_arg(2)): + print("int(get_arg(1)) > int(get_arg(2))"); lower_bound = int(0); - upper_bound = int(sys.argv[2]); + upper_bound = int(get_arg(2)); loop(lower_bound, upper_bound) - if int(sys.argv[1]) < int(sys.argv[2]): - print("int(sys.argv[1]) < int(sys.argv[2])"); + if int(get_arg(1)) < int(get_arg(2)): + print("int(get_arg(1)) < int(get_arg(2))"); lower_bound = int(0); - upper_bound = int(sys.argv[1]); + upper_bound = int(get_arg(1)); loop(lower_bound, upper_bound) - -elif args_count > 2: - - print("Usage:\n") - print("is_palindrome \n") - print("is_palindrome \n") +elif (args_count := len(sys.argv)) > 2: + print("Usage:") + print("gnostr-hexidrome ") + print("gnostr-hexidrome ") raise SystemExit(0) -elif args_count < 2: +elif (args_count := len(sys.argv)) < 2: - print("Usage:\n") - print("is_palindrome \n") - print("is_palindrome \n") + print("Usage:") + print("gnostr-hexidrome ") + print("gnostr-hexidrome ") raise SystemExit(0) From 92be04c38cb10c10ef2f9aaac20e3ec20004cc1a Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 5 Dec 2023 20:38:54 -0500 Subject: [PATCH 012/183] build.cmake.sh From 7931b7ceb62c7fa48e8b7e14e865d77efd922087 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 21:47:04 -0500 Subject: [PATCH 013/183] build.cmake.sh: .github/workflows/gnostr.yml --- .github/workflows/gnostr.yml | 1 + build.cmake.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gnostr.yml b/.github/workflows/gnostr.yml index aa0b3ab892..1480ec290b 100644 --- a/.github/workflows/gnostr.yml +++ b/.github/workflows/gnostr.yml @@ -81,6 +81,7 @@ jobs: - run: V=1 make gnostr - run: V=1 make gnostr-install - run: V=1 make gnostr-all + - run: ./build.cmake.sh - name: Save deps id: cache-deps-save diff --git a/build.cmake.sh b/build.cmake.sh index fffdd246ae..a1ee51b1f3 100755 --- a/build.cmake.sh +++ b/build.cmake.sh @@ -66,11 +66,13 @@ fi if [[ "$OSTYPE" == "msys"* ]]; then ./Debug/vostro --http-address=0.0.0.0 --http-port=8080 --docroot=. else -$SCRIPTPATH/build/web/gnostr-web \ ---deploy-path=/web \ ---http-address=0.0.0.0 \ ---http-port=$PORT \ ---docroot=. || echo "port busy?" + if [[ $RUN -gt 0 ]]; then + $SCRIPTPATH/build/web/gnostr-web \ + --deploy-path=/web \ + --http-address=0.0.0.0 \ + --http-port=$PORT \ + --docroot=. || echo "port busy?" + fi fi exit From 978e97547d4e6551b9d0d003dafb7b00917c7a1c Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 20:05:41 -0500 Subject: [PATCH 014/183] deps/gnostr-command :v0.0.8 --- deps/gnostr-command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/gnostr-command b/deps/gnostr-command index 16fcb646f0..16f6641c5d 160000 --- a/deps/gnostr-command +++ b/deps/gnostr-command @@ -1 +1 @@ -Subproject commit 16fcb646f08dcf719c027360fe4549efda0afc8a +Subproject commit 16f6641c5d33ece7cdc33de74abb89a2c175b89a From 914904e85119daa29e1fb08bb20bdb0fd438429d Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 22:37:05 -0500 Subject: [PATCH 015/183] make:gnostr-command:make cargo-b-release --- gnostr.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnostr.mk b/gnostr.mk index 594c6e46fe..88a715d5c4 100644 --- a/gnostr.mk +++ b/gnostr.mk @@ -212,7 +212,7 @@ deps/gnostr-command/.git:gnostr-git @devtools/refresh-submodules.sh deps/gnostr-command deps/gnostr-command/gnostr-command:deps/gnostr-command/.git cd deps/gnostr-command && \ - make install + make cargo-b-release deps/gnostr-command/target/release/gnostr-command:deps/gnostr-command/gnostr-command## gnostr-command gnostr-command:deps/gnostr-command/target/release/gnostr-command## gnostr-command cp $< $@ && exit; From 68920d7f99257bb4bf36291c43cec5695ae9357b Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Sun, 10 Dec 2023 22:44:26 -0500 Subject: [PATCH 016/183] .gitmodules:gnostr.mk:make bins --- .gitmodules | 2 ++ gnostr.mk | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitmodules b/.gitmodules index 279431df4b..e343031969 100644 --- a/.gitmodules +++ b/.gitmodules @@ -112,3 +112,5 @@ [submodule "bins"] path = bins url = https://github.com/gnostr-org/gnostr-bins.git + ignore = dirty + depth = shallow diff --git a/gnostr.mk b/gnostr.mk index 88a715d5c4..8e60b07302 100644 --- a/gnostr.mk +++ b/gnostr.mk @@ -217,6 +217,9 @@ deps/gnostr-command/target/release/gnostr-command:deps/gnostr-command/gnostr-com gnostr-command:deps/gnostr-command/target/release/gnostr-command## gnostr-command cp $< $@ && exit; +.PHONY:bins +bins: + @cd bins && make cargo-b-release && make cargo-i deps/gnostr-legit/.git:gnostr-git @devtools/refresh-submodules.sh deps/gnostr-legit From b9b9a4da7ab2f5b380d80b68a5295acd8a6ca3ad Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Mon, 8 Jan 2024 23:59:21 -0500 Subject: [PATCH 017/183] .github/workflows/gnostr-docker.yml --- .github/workflows/gnostr-docker.yml | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/gnostr-docker.yml diff --git a/.github/workflows/gnostr-docker.yml b/.github/workflows/gnostr-docker.yml new file mode 100644 index 0000000000..8f6413d621 --- /dev/null +++ b/.github/workflows/gnostr-docker.yml @@ -0,0 +1,60 @@ +name: gnostr-docker + +on: + pull_request: + branches: + - '*' + - '*/*' + - '**' + - 'master' + - 'main' + push: + branches: + - '*' + - '*/*' + - '**' + - 'master' + - 'main' + +env: + GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 + +jobs: + build: + runs-on: ubuntu-20.04 + + strategy: + fail-fast: false + matrix: + tag: ["latest", "slim-bullseye", "slim-bookworm"] + + container: rust:${{ matrix.tag }} + + steps: + ## notice: this is a pre checkout step + ## notice: additional operations can be done prior to checkout + ## - run: apk update && apk add bash cmake git python3 && python3 -m ensurepip + - run: apt-get update && apt-get install build-essential cmake libexpat1-dev libcurl4-openssl-dev libssl-dev git make pkg-config python3 python-is-python3 sudo tcl zlib1g-dev -y + - run: printenv + - name: checkout@v3 fetch-depth submodules set-safe-dir true + uses: actions/checkout@v3 + with: + fetch-depth: '100' + submodules: 'true' + set-safe-directory: 'true' + ## notice: these are post checkout steps + ## - run: apk update && apk add autoconf automake build-base openssl-dev libtool make + - run: touch ~/GITHUB_TOKEN.txt + - run: git config --global --add safe.directory /__w/gnostr/gnostr || true + - run: make detect + - run: make + - run: make gnostr-legit + - run: make bins + - run: make tui + - run: make gnostr-git + - run: make gnostr-all + - run: make gnostr-install + - run: make all + - run: make install + - run: gnostr --sec $(gnostr-sha256) --content "$(gnostr-git show HEAD)" | gnostr-post-event wss://relay.damus.io + - run: make bins-test-fetch-by-id From 12b90a6250c68e3cdf209d9be886a06e160e495a Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 9 Jan 2024 00:00:29 -0500 Subject: [PATCH 018/183] gnostr.c --- gnostr.c | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/gnostr.c b/gnostr.c index 71c36917ff..3e8aca6379 100644 --- a/gnostr.c +++ b/gnostr.c @@ -98,24 +98,27 @@ void version() } void usage() { - printf("usage: gnostr [OPTIONS]\n"); + printf("\nusage: gnostr [OPTIONS]\n"); printf("\n"); - printf(" GNOSTR-GIT:\n"); - printf(" CONFIG:\n"); + printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey)"); printf("\n"); - printf(" gnostr-git config\n"); - printf(" gnostr git config --global\n"); - printf(" gnostr git config --global --add gnostr.secretkey $(gnostr-sha256 12345)\n"); - printf(" gnostr git config --global --get gnostr.secretkey\n"); - printf(" 5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5\n"); + printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey) --envelope --content \" \"\n\n"); + printf("\n"); + printf("COMMAND CONTEXT:\n\n"); + printf(" gnostr --sec $(gnostr-sha256 $(curl -s https://blockchain.info/q/getblockcount)) \\\n -t block \\\n -t $(curl -s https://blockchain.info/q/getblockcount) \\\n --envelope \\\n --content \"BLOCK:$(curl -s https://blockchain.info/q/getblockcount)\"\n\n"); printf("\n"); - printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey)\n"); + printf("GNOSTR-GIT:\n"); + printf("CONFIG:\n"); printf("\n"); - printf(" gnostr --sec $(gnostr-git config --global --get gnostr.secretkey) --envelope --content \n"); - printf(" RELAY OPTIONS\n"); + printf(" gnostr-git config\n\n"); + printf(" gnostr git config --global\n\n"); + printf(" gnostr git config --global --add gnostr.secretkey $(gnostr-sha256 12345)\n"); + printf(" gnostr git config --global --get gnostr.secretkey\n"); +//printf(" 5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"); printf("\n"); + printf("RELAY OPTIONS:\n\n"); printf("\n"); - printf(" NOSTR OPTIONS\n"); + printf("NOSTR OPTIONS:\n"); printf("\n"); printf(" --content the content of the note\n"); printf(" --dm make an encrypted dm to said pubkey. sets kind and tags.\n"); @@ -679,7 +682,8 @@ static int mine_event(struct nostr_event *ev, int difficulty) return 0; if ((res = count_leading_zero_bits(ev->id)) >= difficulty) { - fprintf(stderr, "mined %d bits\n", res); + //fprintf(stderr, "mined %d bits\n", res); + fprintf(stderr, ""); return 1; } } From 60f0d5dd91be5ca6ba34ca845a6524e06b071579 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 9 Jan 2024 00:00:57 -0500 Subject: [PATCH 019/183] .github/workflows/gnostr.yml --- .github/workflows/gnostr.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/gnostr.yml b/.github/workflows/gnostr.yml index 1480ec290b..9d3b2964ed 100644 --- a/.github/workflows/gnostr.yml +++ b/.github/workflows/gnostr.yml @@ -2,6 +2,8 @@ name: gnostr-matrix # Controls when the action will run. on: + schedule: + - cron: '0 2 * * *' # run at 2 AM UTC pull_request: branches: - '*' @@ -57,6 +59,7 @@ jobs: with: submodules: 'true' set-safe-directory: 'true' + fetch-depth: '10' - uses: actions-rs/toolchain@v1.0.6 #if: ${{ !env.ACT }} From 4707e81d81abdf0a46533ec632b429faacbe3ca4 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 9 Jan 2024 00:01:15 -0500 Subject: [PATCH 020/183] src/gnostr-set-relays.c --- src/gnostr-set-relays.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 src/gnostr-set-relays.c diff --git a/src/gnostr-set-relays.c b/src/gnostr-set-relays.c new file mode 100755 index 0000000000..7389ff07b1 --- /dev/null +++ b/src/gnostr-set-relays.c @@ -0,0 +1,12 @@ +#ifndef GNOSTR_GET_RELAYS +#define GNOSTR_GET_RELAYS +#include +#include +#include +int main(int argc, const char **argv) { + char command[128]; + strcpy(command, "curl -sS 'https://api.nostr.watch/v1/online' "); + system(command); + return 0; +} +#endif From befbb8dac4c35485dae1b86b9ab77e020ba2ae45 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 9 Jan 2024 00:01:33 -0500 Subject: [PATCH 021/183] doc --- doc/gnostr-about.1 | 50 ------- doc/gnostr-act.1 | 302 ++++++++++++++++++++++++-------------- doc/gnostr-blockheight.1 | 131 +++-------------- doc/gnostr-cat.1 | 155 ++++++------------- doc/gnostr-cli.1 | 168 ++++++++------------- doc/gnostr-client.1 | 150 ++++++------------- doc/gnostr-get-relays-c.1 | 18 +++ doc/gnostr-get-relays.1 | 131 +++-------------- doc/gnostr-git-log.1 | 188 ++++++++++-------------- doc/gnostr-git-reflog.1 | 162 +++++++------------- doc/gnostr-git.1 | 215 +++++++++++++-------------- doc/gnostr-gnode.1 | 65 ++++---- doc/gnostr-gnode.1.html | 34 ----- doc/gnostr-grep.1 | 128 +++------------- doc/gnostr-hyp.1 | 109 -------------- doc/gnostr-keyconv.1 | 31 ++++ doc/gnostr-legit.1 | 109 -------------- doc/gnostr-nonce.1 | 109 -------------- doc/gnostr-pi.1 | 18 +++ doc/gnostr-post.1 | 127 +++------------- doc/gnostr-proxy.1 | 109 -------------- doc/gnostr-query.1 | 157 ++++++-------------- doc/gnostr-readme.1 | 148 ------------------- doc/gnostr-relays.1 | 127 +++------------- doc/gnostr-repo.1 | 109 -------------- doc/gnostr-req.1 | 150 ++++++------------- doc/gnostr-send.1 | 127 +++------------- doc/gnostr-set-relays.1 | 127 +++------------- doc/gnostr-sha256.1 | 127 +++------------- doc/gnostr-tests.1 | 109 -------------- doc/gnostr-tui.1 | 48 ++++++ doc/gnostr-web.1 | 109 -------------- doc/gnostr-weeble.1 | 69 +++------ doc/gnostr-wobble.1 | 69 +++------ doc/gnostr.1 | 195 +++++++++++------------- 35 files changed, 1090 insertions(+), 3090 deletions(-) delete mode 100644 doc/gnostr-about.1 create mode 100644 doc/gnostr-get-relays-c.1 delete mode 100644 doc/gnostr-gnode.1.html create mode 100644 doc/gnostr-keyconv.1 create mode 100644 doc/gnostr-pi.1 create mode 100644 doc/gnostr-tui.1 diff --git a/doc/gnostr-about.1 b/doc/gnostr-about.1 deleted file mode 100644 index fdadd94c2e..0000000000 --- a/doc/gnostr-about.1 +++ /dev/null @@ -1,50 +0,0 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr-about 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr-about -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.Sh HISTORY \" Document history if command behaves uniquely -.Sh ORIGINAL CONTRIBUTORS\" A list of authors of the program -.An @0 -.sp -.An @randymcmillan \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp diff --git a/doc/gnostr-act.1 b/doc/gnostr-act.1 index 2634967d17..ec49139a49 100644 --- a/doc/gnostr-act.1 +++ b/doc/gnostr-act.1 @@ -1,109 +1,193 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH ACT "1" "January 2024" "act version 0.0.13" "User Commands" +.SH NAME +act \- manual page for act version 0.0.13 +.SH DESCRIPTION +Run GitHub actions locally by specifying the event name (e.g. `push`) or an action name directly. +.SS "Usage:" +.IP +act [event name to run] [flags] +.PP +If no event name passed, will default to "on: push" +If actions handles only one event it will be used as default instead of "on: push" +.SS "Flags:" +.TP +\fB\-\-action\-cache\-path\fR string +Defines the path where the actions get cached and host workspaces created. (default "/Users/git/.cache/act") +.TP +\fB\-a\fR, \fB\-\-actor\fR string +user that triggered the event (default "nektos/act") +.TP +\fB\-\-artifact\-server\-addr\fR string +Defines the address to which the artifact server binds. (default "10.2.0.2") +.TP +\fB\-\-artifact\-server\-path\fR string +Defines the path where the artifact server stores uploads and retrieves downloads from. If not specified the artifact server will not start. +.TP +\fB\-\-artifact\-server\-port\fR string +Defines the port where the artifact server listens. (default "34567") +.TP +\fB\-b\fR, \fB\-\-bind\fR +bind working directory to container, rather than copy +.TP +\fB\-\-bug\-report\fR +Display system information for bug report +.TP +\fB\-\-cache\-server\-addr\fR string +Defines the address to which the cache server binds. (default "10.2.0.2") +.TP +\fB\-\-cache\-server\-path\fR string +Defines the path where the cache server stores caches. (default "/Users/git/.cache/actcache") +.TP +\fB\-\-cache\-server\-port\fR uint16 +Defines the port where the artifact server listens. 0 means a randomly available port. +.TP +\fB\-\-container\-architecture\fR string +Architecture which should be used to run containers, e.g.: linux/amd64. If not specified, will use host default architecture. Requires Docker server API Version 1.41+. Ignored on earlier Docker server platforms. +.TP +\fB\-\-container\-cap\-add\fR stringArray +kernel capabilities to add to the workflow containers (e.g. \fB\-\-container\-cap\-add\fR SYS_PTRACE) +.TP +\fB\-\-container\-cap\-drop\fR stringArray +kernel capabilities to remove from the workflow containers (e.g. \fB\-\-container\-cap\-drop\fR SYS_PTRACE) +.TP +\fB\-\-container\-daemon\-socket\fR string +URI to Docker Engine socket (e.g.: unix://~/.docker/run/docker.sock or \- to disable bind mounting the socket) +.TP +\fB\-\-container\-options\fR string +Custom docker container options for the job container without an options property in the job definition +.TP +\fB\-\-defaultbranch\fR string +the name of the main branch +.TP +\fB\-\-detect\-event\fR +Use first event type from workflow as event that triggered the workflow +.TP +\fB\-C\fR, \fB\-\-directory\fR string +working directory (default ".") +.TP +\fB\-n\fR, \fB\-\-dryrun\fR +dryrun mode +.TP +\fB\-\-env\fR stringArray +env to make available to actions with optional value (e.g. \fB\-\-env\fR myenv=foo or \fB\-\-env\fR myenv) +.TP +\fB\-\-env\-file\fR string +environment file to read and use as env in the containers (default ".env") +.TP +\fB\-e\fR, \fB\-\-eventpath\fR string +path to event JSON file +.TP +\fB\-\-github\-instance\fR string +GitHub instance to use. Don't use this if you are not using GitHub Enterprise Server. (default "github.com") +.TP +\fB\-g\fR, \fB\-\-graph\fR +draw workflows +.TP +\fB\-h\fR, \fB\-\-help\fR +help for act +.TP +\fB\-\-input\fR stringArray +action input to make available to actions (e.g. \fB\-\-input\fR myinput=foo) +.TP +\fB\-\-input\-file\fR string +input file to read and use as action input (default ".input") +.TP +\fB\-\-insecure\-secrets\fR +NOT RECOMMENDED! Doesn't hide secrets while printing logs. +.TP +\fB\-j\fR, \fB\-\-job\fR string +run a specific job ID +.TP +\fB\-\-json\fR +Output logs in json format +.TP +\fB\-l\fR, \fB\-\-list\fR +list workflows +.TP +\fB\-\-log\-prefix\-job\-id\fR +Output the job id within non\-json logs instead of the entire name +.TP +\fB\-\-matrix\fR stringArray +specify which matrix configuration to include (e.g. \fB\-\-matrix\fR java:13 +.TP +\fB\-\-no\-cache\-server\fR +Disable cache server +.TP +\fB\-\-no\-recurse\fR +Flag to disable running workflows from subdirectories of specified path in '\-\-workflows'/'\-W' flag +.TP +\fB\-\-no\-skip\-checkout\fR +Do not skip actions/checkout +.TP +\fB\-P\fR, \fB\-\-platform\fR stringArray +custom image to use per platform (e.g. \fB\-P\fR ubuntu\-18.04=nektos/act\-environments\-ubuntu:18.04) +.TP +\fB\-\-privileged\fR +use privileged mode +.TP +\fB\-p\fR, \fB\-\-pull\fR +pull docker image(s) even if already present (default true) +.TP +\fB\-q\fR, \fB\-\-quiet\fR +disable logging of output from steps +.TP +\fB\-\-rebuild\fR +rebuild local action docker image(s) even if already present (default true) +.TP +\fB\-\-remote\-name\fR string +git remote name that will be used to retrieve url of git repo (default "origin") +.TP +\fB\-\-replace\-ghe\-action\-token\-with\-github\-com\fR string +If you are using replace\-ghe\-action\-with\-github\-com and you want to use private actions on GitHub, you have to set personal access token +.TP +\fB\-\-replace\-ghe\-action\-with\-github\-com\fR stringArray +If you are using GitHub Enterprise Server and allow specified actions from GitHub (github.com), you can set actions on this. (e.g. \fB\-\-replace\-ghe\-action\-with\-github\-com\fR =github/super\-linter) +.TP +\fB\-r\fR, \fB\-\-reuse\fR +don't remove container(s) on successfully completed workflow(s) to maintain state between runs +.TP +\fB\-\-rm\fR +automatically remove container(s)/volume(s) after a workflow(s) failure +.TP +\fB\-s\fR, \fB\-\-secret\fR stringArray +secret to make available to actions with optional value (e.g. \fB\-s\fR mysecret=foo or \fB\-s\fR mysecret) +.TP +\fB\-\-secret\-file\fR string +file with list of secrets to read from (e.g. \fB\-\-secret\-file\fR .secrets) (default ".secrets") +.TP +\fB\-\-use\-gitignore\fR +Controls whether paths specified in .gitignore should be copied into container (default true) +.TP +\fB\-\-userns\fR string +user namespace to use +.TP +\fB\-\-var\fR stringArray +variable to make available to actions with optional value (e.g. \fB\-\-var\fR myvar=foo or \fB\-\-var\fR myvar) +.TP +\fB\-\-var\-file\fR string +file with list of vars to read from (e.g. \fB\-\-var\-file\fR .vars) (default ".vars") +.TP +\fB\-v\fR, \fB\-\-verbose\fR +verbose output +.TP +\fB\-\-version\fR +version for act +.TP +\fB\-w\fR, \fB\-\-watch\fR +watch the contents of the local repo and run when files change +.TP +\fB\-W\fR, \fB\-\-workflows\fR string +path to workflow file(s) (default "./.github/workflows/") +.SH "SEE ALSO" +The full documentation for +.B act +is maintained as a Texinfo manual. If the +.B info +and +.B act +programs are properly installed at your site, the command +.IP +.B info act +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-blockheight.1 b/doc/gnostr-blockheight.1 index 2634967d17..2ac7eda923 100644 --- a/doc/gnostr-blockheight.1 +++ b/doc/gnostr-blockheight.1 @@ -1,109 +1,22 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-BLOCKHEIGHT "1" "January 2024" "gnostr-blockheight v0.0.0" "User Commands" +.SH NAME +gnostr-blockheight \- manual page for gnostr-blockheight v0.0.0 +.SH DESCRIPTION +Get current bitcoin blockcount/height +We try a local node first +then mempool.space +then blochchain.info +finally docs\-demo.btc.quiknode.pro +.SH "SEE ALSO" +The full documentation for +.B gnostr-blockheight +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-blockheight +programs are properly installed at your site, the command +.IP +.B info gnostr-blockheight +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-cat.1 b/doc/gnostr-cat.1 index 2634967d17..ddfdd3060b 100644 --- a/doc/gnostr-cat.1 +++ b/doc/gnostr-cat.1 @@ -1,109 +1,46 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-CAT "1" "January 2024" "gnostr-cat 0.0.5" "User Commands" +.SH NAME +gnostr-cat \- manual page for gnostr-cat 0.0.5 +.SH SYNOPSIS +.B gnostr-cat +[\fI\,OPTIONS\/\fR] [\fI\,servers\/\fR]... +.SH DESCRIPTION +Websocket client for gnostr relay scripting +.SS "Arguments:" +.TP +[servers]... +Websocket servers +.SH OPTIONS +.HP +\fB\-u\fR, \fB\-\-unique\fR +.IP +Sort and unique returned events +.HP +\fB\-s\fR, \fB\-\-stream\fR +.IP +Stream the websocket connection +.HP +\fB\-\-connect\-timeout\fR +.IP +Websocket connection timeout in milliseconds (non\-streaming) [default: 10000] +.HP +\fB\-h\fR, \fB\-\-help\fR +.IP +Print help +.HP +\fB\-V\fR, \fB\-\-version\fR +.IP +Print version +.SH "SEE ALSO" +The full documentation for +.B gnostr-cat +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-cat +programs are properly installed at your site, the command +.IP +.B info gnostr-cat +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-cli.1 b/doc/gnostr-cli.1 index 2634967d17..0723ab716e 100644 --- a/doc/gnostr-cli.1 +++ b/doc/gnostr-cli.1 @@ -1,109 +1,59 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-CLI "1" "January 2024" "gnostr-cli 0.0.3" "User Commands" +.SH NAME +gnostr-cli \- manual page for gnostr-cli 0.0.3 +.SH SYNOPSIS +.B gnostr-cli +[\fI\,OPTIONS\/\fR] \fI\,\/\fR +.SH DESCRIPTION +gnostr\-cli: git/nostr git2 command line utility +.SS "Commands:" +.TP +clone +Initialize a repository +.TP +init +Initialize a repository +.TP +pull +Pull to events and relays +.TP +push +Push to events and relays +.TP +merge +Merge to events and relays +.TP +fetch +Fetch from relays +.TP +prs +View active PRs from relays +.TP +rebroadcast +rebroadcast all repository events +.IP +change\-user +help Print this message or the help of the given subcommand(s) +.SH OPTIONS +.TP +\fB\-r\fR, \fB\-\-relays\fR +Relay to connect to +.TP +\fB\-h\fR, \fB\-\-help\fR +Print help +.TP +\fB\-V\fR, \fB\-\-version\fR +Print version +.SH "SEE ALSO" +The full documentation for +.B gnostr-cli +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-cli +programs are properly installed at your site, the command +.IP +.B info gnostr-cli +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-client.1 b/doc/gnostr-client.1 index 2634967d17..c4dfe85dea 100644 --- a/doc/gnostr-client.1 +++ b/doc/gnostr-client.1 @@ -1,109 +1,41 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-CLIENT "1" "January 2024" "gnostr-client v0.0.0" "User Commands" +.SH NAME +gnostr-client \- manual page for gnostr-client v0.0.0 +.SH DESCRIPTION +gnostr\-client [OPTIONS] +[OPTIONS]: +.TP +\fB\-\-uri\fR +Wss URI to send +.TP +\fB\-\-req\fR +message is a request (REQ). EVENT parameters are ignored +.PP +REQ OPTIONS: These are for the REQ filter, per NIP\-01 +.TP +\fB\-\-authors\fR +a list of pubkeys or prefixes +.PP +EVENT OPTIONS: These are to publish an EVENT, per NIP\-01 +.TP +\fB\-\-content\fR +the content of the note +.TP +\fB\-\-kind\fR +set kind +.TP +\fB\-\-sec\fR +set the secret key for signing, otherwise one will be randomly generated +.SH "SEE ALSO" +The full documentation for +.B gnostr-client +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-client +programs are properly installed at your site, the command +.IP +.B info gnostr-client +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-get-relays-c.1 b/doc/gnostr-get-relays-c.1 new file mode 100644 index 0000000000..ad2f010fdb --- /dev/null +++ b/doc/gnostr-get-relays-c.1 @@ -0,0 +1,18 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-GET-RELAYS-C "1" "January 2024" "gnostr-get-relays-c v0.0.0" "User Commands" +.SH NAME +gnostr-get-relays-c \- manual page for gnostr-get-relays-c v0.0.0 +.SH DESCRIPTION +help +.SH "SEE ALSO" +The full documentation for +.B gnostr-get-relays-c +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-get-relays-c +programs are properly installed at your site, the command +.IP +.B info gnostr-get-relays-c +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-get-relays.1 b/doc/gnostr-get-relays.1 index 2634967d17..50f7935a3d 100644 --- a/doc/gnostr-get-relays.1 +++ b/doc/gnostr-get-relays.1 @@ -1,109 +1,22 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-GET-RELAYS "1" "January 2024" "gnostr-get-relays v0.0.1" "User Commands" +.SH NAME +gnostr-get-relays \- manual page for gnostr-get-relays v0.0.1 +.SH DESCRIPTION +gnostr\-get\-relays +gnostr \fB\-\-sec\fR $(gnostr \fB\-\-hash\fR) \fB\-t\fR gnostr \fB\-\-envelope\fR \fB\-\-content\fR '$(gnostr get\-relays)' +gnostr \fB\-\-sec\fR $(gnostr \fB\-\-hash\fR) \fB\-t\fR 'gnostr' \fB\-\-envelope\fR \fB\-\-content\fR '$(gnostr get relays)' | gnostr\-relays +gnostr\-git config \fB\-\-global\fR \fB\-\-replace\-all\fR gnostr.relays '$(gnostr\-get\-relays)' && git config \fB\-l\fR | grep gnostr.relays +gnostr\-git config \fB\-\-global\fR \fB\-\-replace\-all\fR gnostr.relays '$(gnostr get\-relays)' && git config \fB\-l\fR | grep gnostr.relays +.SH "SEE ALSO" +The full documentation for +.B gnostr-get-relays +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-get-relays +programs are properly installed at your site, the command +.IP +.B info gnostr-get-relays +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-git-log.1 b/doc/gnostr-git-log.1 index 2634967d17..d69b1b7f9f 100644 --- a/doc/gnostr-git-log.1 +++ b/doc/gnostr-git-log.1 @@ -1,109 +1,79 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-GIT-LOG "1" "January 2024" "gnostr-git-log v0.0.0" "User Commands" +.SH NAME +gnostr-git-log \- manual page for gnostr-git-log v0.0.0 +.SH DESCRIPTION +usage: gnostr\-git log [] [] [[\-\-] ...] +.IP +or: gnostr\-git show [] ... +.TP +\fB\-q\fR, \fB\-\-quiet\fR +suppress diff output +.TP +\fB\-\-source\fR +show source +.TP +\fB\-\-use\-mailmap\fR +use mail map file +.TP +\fB\-\-mailmap\fR +alias of \fB\-\-use\-mailmap\fR +.TP +\fB\-\-clear\-decorations\fR +clear all previously\-defined decoration filters +.TP +\fB\-\-decorate\-refs\fR +only decorate refs that match +.TP +\fB\-\-decorate\-refs\-exclude\fR +do not decorate refs that match +.TP +\fB\-\-decorate[=\fR...] +decorate options +.TP +\fB\-L\fR +trace the evolution of line range , or function : in +.TP +or: gnostr\-git +log [\-\-hash\-list] [\-hl] +.TP +or: gnostr\-git +log [\-\-format] [\-f] +.TP +or: gnostr\-git +log [\-gd] +.PP +gnostr\-git log accepts any of the options accepted by gnostr\-git log +.IP +try: +.TP +gnostr\-git log +\fB\-\-format=\fR'%C(auto)%H%<|(17)%gd/commit:%s' +.TP +gnostr\-git +log \fB\-\-format=\fR'%C(auto)%H%<|(17)%gd/commit:%s' +.SS "gnostr:" +.IP +protocol: +.TP +hash +\fI\,/type\/\fP :comment +.IP +5209741e7313c34bde7b404c940e0cdd7ec5e711/commit:gnostr: initial commit +gnostr uses the colon as a delimiter : +slashes are valid in git branch names / : +gnostr uses slashes for remote/path/references +gnostr includes 'weeble/wobble' timestamping as +part of commit/blob/remote/path/refs references. +.SH "SEE ALSO" +The full documentation for +.B gnostr-git-log +is maintained as a Texinfo manual. If the +.B info +and +.B gnostr-git-log +programs are properly installed at your site, the command +.IP +.B info gnostr-git-log +.PP +should give you access to the complete manual. diff --git a/doc/gnostr-git-reflog.1 b/doc/gnostr-git-reflog.1 index 2634967d17..8a1353392b 100644 --- a/doc/gnostr-git-reflog.1 +++ b/doc/gnostr-git-reflog.1 @@ -1,109 +1,53 @@ -.\" Modified from man(1) of FreeBSD, the NetBSD mdoc.template and mdoc.samples -.\" See man mdoc for the short list of editing options -.Dd August 20, 2023 \" DATE -.Dt gnostr 1 \" Program name and manual section number - leave lowercase -.Os Unix-like -.Sh NAME \" Section Header - required - don't modify -.Nm gnostr -.\" The following lines are read in generating the apropos database. -.\" Use only key words here as the database is built on these. -.\" Use .Nm macro to designate other names for the documented program. -.Nd a git+nostr command line utiliy. -.Sh SYNOPSIS \" Section Header - required - don't modify -.Nm -.sp -.Op Fl -content \" [-abcd] - \" Arguments - The text contents of the note -.sp -.Op Fl -dm \" [-abcd] - \" Arguments - Create a direct message. - This will create a `kind 4` note with the contents encrypted -.sp -.Op Fl -envelope \" [-abcd] - Wrap the event with `["EVENT", .\&.\&.\& ]` for easy relaying.sp -.sp -.Op Fl -kind \" [-abcd] - \" Arguments - based on nostr protocol (NIPS) -.sp -.Op Fl -created-at \" [-abcd] - \" Arguments - in seconds. -.sp -.Op Fl -sec \" [-abcd] -priv_key \" Arguments - a is a sha256 hash -.sp - try: - gnostr sha256 -.sp -.Op Fl -pow \" [-abcd] - \" Arguments -.sp - try: - gnostr --pow 16 -.sp -.Op Fl -mine-pubkey \" [-abcd] - -.sp - try: - gnostr --mine-pubkey --pow 16 -.sp -.Op Fl -tag \" [-abcd] - \" Arguments -.sp - try: - gnostr --tag pow test --pow 16 -.sp -.Op Fl -hash \" [-abcd] - \" Arguments -.sp -.Sh additonal flags: - -.sp -.Op Fl e - \" [-a path] -.sp -.Op Fl p - \" [-a path] -.sp -.Op Fl t - \" [-a path] -.sp -.Sh SEE ALSO -.\" List links in ascending order by section, alphabetically within a section. -.\" Please do not reference files that do not exist without filing a bug report -.Xr gnostr-blockheight 1 , -.Xr gnostr-cat 1 , -.Xr gnostr-cli 1 , -.Xr gnostr-client 1 , -.Xr gnostr-get-relays 1 , -.Xr gnostr-git 1 , -.Xr gnostr-git-log 1 , -.Xr gnostr-git-reflog 1 , -.Xr gnostr-gnode 1 , -.Xr gnostr-grep 1 , -.Xr gnostr-legit 1 , -.Xr gnostr-nonce 1 , -.Xr gnostr-post 1 , -.Xr gnostr-proxy 1 , -.Xr gnostr-query 1 , -.Xr gnostr-relays 1 , -.Xr gnostr-repo 1 , -.Xr gnostr-req 1 , -.Xr gnostr-send 1 , -.Xr gnostr-set-relays 1 , -.Xr gnostr-sha256 1 , -.Xr gnostr-tests 1 , -.Xr gnostr-weeble 1 , -.Xr gnostr-wobble 1 ... -.sp -.\" .Sh STANDARDS \" Standards relating to command being described -.\" .Sh HISTORY \" Document history if command behaves uniquely -.Sh AUTHORS \" A list of authors of the program -.An John Doe \" Some author -.An Jane Doe \" Some other author -.\" .Sh BUGS \" Document known, unremedied bugs -.sp +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH GNOSTR-GIT-REFLOG "1" "January 2024" "gnostr-git-reflog v0.0.0" "User Commands" +.SH NAME +gnostr-git-reflog \- manual page for gnostr-git-reflog v0.0.0 +.SH DESCRIPTION +usage: gnostr\-git reflog [show] [] [] +.TP +or: gnostr\-git reflog expire [\-\-expire=