just some boilerplate for demonstrative purposes and learning how the API works and how to access each field, where and what are the IDs of each table and so on.
View bundle.js
This file has been truncated, but you can view the full file.
This file contains 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
"use strict";(()=>{var MC=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,r)=>(typeof require<"u"?require:n)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var Gf=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var KK=Gf(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.crypto=void 0;kC.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}});var zC=Gf((Kt,j8)=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.randomBytes=Kt.wrapConstructorWithOpts=Kt.wrapConstructor=Kt.checkOpts=Kt.Hash=Kt.assertHash=Kt.assertBytes=Kt.assertBool=Kt.assertNumber=Kt.concatBytes=Kt.toBytes=Kt.utf8ToBytes=Kt.asyncLoop=Kt.nextTick=Kt.hexToBytes=Kt.bytesToHex=Kt.isLE=Kt.rotr=Kt.createView=Kt.u32=Kt.u8=void 0;var BC=KK(),ant=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength);Kt.u8=ant;var pnt=t=>new Uint32Array(t.buffer,t.byteOffset,Math.flo |
View strfry_direct.go
This file contains 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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"unsafe" | |
"github.com/bmatsuo/lmdb-go/lmdb" |
View activity-nostr-bridge-bounty.md
ActivityPub bridge Nostr relay
https://gist.github.com/fiatjaf/ea7d21e81359e1eb8abcb8805306adaa?permalink_comment_id=4484926#gistcomment-4484926
Completed:tl;dr 5M sat bounty to make https://github.com/fiatjaf/no-fed work.
The idea
ActivityPub communication is between servers. A server talks to another server, pushing and pulling data. Identities live on servers. Nostr communication is between clients and servers.
View benchmark_test.go
This file contains 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
package main | |
import ( | |
"context" | |
"crypto/sha256" | |
"encoding/hex" | |
"log" | |
"net/url" | |
"strconv" | |
"testing" |
View results.txt
This file contains 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
Results of transpiling and bundling a project that uses Laminar and handful of Scala libraries plus 4 reasonably-sized npm dependencies: | |
ESModule: | |
- fastLinkJS => 3.8MB | |
- fastLinkJS / esBuild => 4.1MB | |
- fullLinkJS => 3.6MB | |
- fullLinkJS / esBuild => 2.0MB | |
CommonJSModule: | |
- fastLinkJS => 3.8MB |
View f.lua
This file contains 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
title = 'Free Tunnel Server' | |
description = [[ | |
- Manages tunnel clients. | |
- Starts the LNbits main tunnel service. | |
This one is the free version, anyone can take a subdomain and keep it for free forever. | |
]] | |
models = { |
View Caddyfile
This file contains 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
http://eclair.yourdomain.com { | |
@whitelisted { | |
path /createinvoice | |
} | |
@blacklisted { | |
not path /createinvoice | |
} | |
reverse_proxy @whitelisted http://localhost:8877 { |
View drivechain-checklist.md
Drivechain Checklist
Check the boxes you understand and agree with. If you check more than 75% of the boxes you're a Drivechain maximalist. Otherwise you need treatment, join https://t.me/DCinsiders and ask for help.
- Sidechains are chains independent of Bitcoin consensus. They don't add any burden to the Bitcoin full nodes.
- Sidechains use bitcoins (BTC) as their base currency, not any shitcoin.
- Sidechains can have different rules, implement different features, be developed by different teams.
- Using a sidechain is completely optional.
- Sidechains are expected to be blindly merge-mined with Bitcoin, which means they increase the Bitcoin security budget without adding any burden to the normal Bitcoin miners.
- There are useful features that can be implemented in sidechains that we can't implement in Bitcoin today (and we don't want either, because it would clog the Bitcoin main chain which is already too small and want it to remain small).
View connect.sh
This file contains 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
# just copy and paste this somewhere changing the target node id, ip and address. | |
# you must have python3 and virtualenv, which can be installed with 'sudo apt install python3-virtualenv' on ubuntu | |
# it will download the pyln.proto library to a virtualenv and run the script below passed as a string | |
python3 -m venv venv | |
./venv/bin/pip install pyln.proto | |
./venv/bin/python -c ' | |
import sys | |
from pyln.proto.wire import connect, PrivateKey, PublicKey | |
from binascii import unhexlify |
NewerOlder