Skip to content

Instantly share code, notes, and snippets.


André Neves andrerfneves

View GitHub Profile
andrerfneves / quicklook.json
Created May 25, 2020 — forked from niftynei/quicklook.json
"Quicklook" c-lightning Prometheus Dashboard (Grafana)
View quicklook.json
"annotations": {
"list": [
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
andrerfneves / SceneController.cs
Created Feb 21, 2020
ZEBEDEE Unity SDK Adventure Game Demo Integration
View SceneController.cs
using System;
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using ZbdUnitySDK.Logging;
using ZbdUnitySDK;
using System.Threading.Tasks;

Artillery Gist

yml file
  target: 'http://localhost:3000'
    - duration: 60
andrerfneves / rebalanceThroughOutside.js
Created Jan 24, 2020 — forked from LNBIG-COM/rebalanceThroughOutside.js
Rebalance script through outside network (not all modules but the core code). With russian-languiage comments
View rebalanceThroughOutside.js
* Copyright (c) 2019
* All rights reserved.
const PromisePool = require('es6-promise-pool')
const util = require('util');
const nodeStorage = require('../global/nodeStorage');
const {Mutex} = require('await-semaphore')
View gist:810aa5b72614df8e98f1d6caa89de8f9
Links for BitDevs Nov 13th

Install LND

Install LND by cloning and building

Install Make

sudo apt-get install -y build-essential
View payment-stream.js
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 / lnurl-withdrawal.js
Created Oct 23, 2019 — forked from whiteyhat/lnurl-withdrawal.js
Backend implementation using adonis.js framework for Lightning Network withdrawals straight to wallet using LNURL
View lnurl-withdrawal.js
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}) {

Keybase proof

I hereby claim:

  • I am andrerfneves on github.
  • I am andrerfneves ( on keybase.
  • I have a public key ASCB9Kh1_1Ku8bwmfr-O_LuiRg8PvDzjLQPIGDXkiK88ago

To claim this, I am signing this object:

View gist:027d89bed64a9f751ec5db2973ea0db5
Private Repository
In case our Github code repository is private, then cloning it on EC2 will fail.
In order to make it work, we will need to provide SSH access to the EC2 instance to login and clone the repo. Follow the steps in Generating SSH Keys to add SSH keys but here is the gist:
First create the SSH keys on EC2:
ls -al ~/.ssh