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 remove-script-tag.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 ( | |
"os" | |
"regexp" | |
"strings" | |
) | |
func main() { | |
for i := 0; i < len(os.Args); i++ { |
View go.mod
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
module github.com/fiatjaf/ethereum-nostr | |
go 1.20 | |
require ( | |
github.com/btcsuite/btcd/btcec/v2 v2.3.2 | |
github.com/nbd-wtf/go-nostr v0.19.5 | |
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 | |
) |
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
Completed: https://gist.github.com/fiatjaf/ea7d21e81359e1eb8abcb8805306adaa?permalink_comment_id=4484926#gistcomment-4484926
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 { |
NewerOlder