Skip to content

Instantly share code, notes, and snippets.

View andrerfneves's full-sized avatar
🖖

André Neves andrerfneves

🖖
View GitHub Profile
@andrerfneves
andrerfneves / quicklook.json
Created May 25, 2020 13:30 — forked from niftynei/quicklook.json
"Quicklook" c-lightning Prometheus Dashboard (Grafana)
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@andrerfneves
andrerfneves / artillery.md
Created February 6, 2020 22:17 — forked from lcchou2/artillery.md
Artillery Gist

Artillery Gist

yml file
config:
  target: 'http://localhost:3000'
  phases:
    - duration: 60
@andrerfneves
andrerfneves / rebalanceThroughOutside.js
Created January 24, 2020 23:54 — forked from LNBIG-COM/rebalanceThroughOutside.js
Rebalance script through outside network (not all modules but the core code). With russian-languiage comments
/*
* Copyright (c) 2019 LNBIG.com
* All rights reserved.
*/
const PromisePool = require('es6-promise-pool')
const util = require('util');
const nodeStorage = require('../global/nodeStorage');
const {Mutex} = require('await-semaphore')

Install LND

Install LND by cloning and building

Install Make

sudo apt-get install -y build-essential
const sub = lnd.sendPayment();
sub.on('error', err => {
console.log("ERR", err);
})
sub.on('end', () => console.log("END"));
sub.on('status', status => console.log("STATUS", status));
sub.on('data', data => {
console.log("PAYMENT", data);
@andrerfneves
andrerfneves / lnurl-withdrawal.js
Created October 23, 2019 02:21 — forked from whiteyhat/lnurl-withdrawal.js
Backend implementation using adonis.js framework for Lightning Network withdrawals straight to wallet using LNURL
const Logger = use('Logger')
const bech32 = require('bech32')
const Hash = use('Hash')
const lnService = require('ln-service')
const NonceHashMap = {};
const k1HashMap = {};
async requestWithdrawal ({auth, response}) {
try{