Skip to content

Instantly share code, notes, and snippets.

View AaronGoldsmith1's full-sized avatar
🎯
Focusing

Aaron Goldsmith AaronGoldsmith1

🎯
Focusing
  • Los Angeles, CA
View GitHub Profile
@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active June 26, 2024 16:08
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is aging rapidly and includes steps not necessary on newer versions of LND. As of April 2021 it is very out of date for bitcoind. As of December 2021 it is outdated for LND too.

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@im-samir-dev
im-samir-dev / Behavior.js
Last active March 1, 2019 22:42
Javascript (ES5) Class
'use strict';
/**
* @param {string} behavior
*/
Behavior = Class.extend({
init: function (behavior) {
this.super();
Object.defineProperty(this, "Behavior:" + behavior, {
@DaveBitter
DaveBitter / setAsyncTimeout.js
Last active October 10, 2022 22:44
Async implementation of the setTimeout function
const setAsyncTimeout = (cb, timeout = 0) => new Promise(resolve => {
setTimeout(() => {
cb();
resolve();
}, timeout);
});
// Instead of nesting setTimeout functions...
const doStuff = () => {
setTimeout(() => {