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
const WebSocket = require('ws'); | |
const http = require('http'); | |
const Y = require('yjs'); | |
const wsUtils = require('./utils'); | |
const cookie = require('cookie'); | |
const QuillDelta = require('quill-delta'); | |
//const QuillConverter = require('node-quill-converter'); | |
//const MdastFromQuillDelta = require('mdast-util-from-quill-delta'); |
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
import { fetchWithL402 } from "alby-tools"; | |
import { webln } from "alby-js-sdk"; | |
import 'websocket-polyfill'; | |
import * as crypto from 'crypto'; // or 'node:crypto' | |
globalThis.crypto = crypto; | |
const nwcURL = process.env.NWC_URL; | |
async function main() { | |
const nwc = new webln.NWC({ nostrWalletConnectUrl: nwcURL }); |
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/x509" | |
"encoding/hex" | |
"fmt" | |
"log" | |
"net" | |
"time" |
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
<podcast:value type="lightning" method="lnurl" suggested="0.00000015000"> | |
<podcast:valueRecipient | |
name="Foo" | |
type="lnurl" | |
address="foo@example.com" | |
/> | |
</podcast:value> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>LnMe</title> | |
</head> | |
<link rel="stylesheet" href="/files/assets/lnme.css" id="lnme-style"> | |
<body> |
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
[Application Options] | |
lnddir=/home/bitcoin/lnd_data | |
maxpendingchannels=10 | |
alias=YOURALIAS | |
rpclisten=0.0.0.0:10009 | |
[Bitcoin] | |
bitcoin.active=1 | |
bitcoin.mainnet=1 | |
bitcoin.node=bitcoind |
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
<?php | |
// Path to autoload.php created by composer. | |
require dirname(__FILE__).'/../vendor/autoload.php'; | |
error_reporting(2); | |
$lndIp = ''; // IP:PORT | |
$sslCert = ''; |
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
# Maintainer: Michael Bumann <hello@michaelbumann.com> | |
pkgname=screen-desktop | |
pkgver=1.2.0 | |
pkgrel=1 | |
pkgdesc="Desktop client for screen.so" | |
arch=('x86_64') | |
url="https://screen.so" | |
license=('unknown') | |
depends=() | |
makedepends=('libarchive') |
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
require 'bundler' | |
gemfile = Bundler::Dsl.new | |
gemfile.eval_gemfile(ENV['BUNDLE_GEMFILE'] || 'Gemfile') | |
dependencies = gemfile.dependencies | |
# specs = dependencies.map(&:to_spec) | |
dependencies.each do |d| | |
begin | |
spec = d.to_spec |
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
# also have a look at the nice Takecharge Server: https://github.com/controlshift/prague-server and its BOP70 implementation this is based on | |
class PaymentRequest | |
def initialize(options) | |
@options = options | |
output = create_output | |
details = create_payment_details(output) | |
@payment_request = Payments::PaymentRequest.new |
NewerOlder