Skip to content

Instantly share code, notes, and snippets.

View bretton's full-sized avatar

bretton bretton

  • Cape Town, South Africa
View GitHub Profile
@bretton
bretton / fetchlunohistory.sh
Last active August 7, 2019 08:19
Fetch Luno trade history and save as CSV for charting purposes
#!/bin/bash
#
# About
#
# fetchlunohistory.sh
# get date in epoch time of last trade in csv
# get trades from luno from this time
# reverse order
# append to big log of all trades
#
@bretton
bretton / change-of-heart.md
Last active April 26, 2019 14:04
$obbing over a change of heart

change-of-heart

$obbing over a change of heart

A trade indicator that flashes a warning when people publicly state positions with reasoning, and then either express doubt over earlier assessment, or panic change their minds.

Input:

  • twitter feeds
  • slack channels
  • telegram
@bretton
bretton / studio-monitors.md
Created April 13, 2019 18:58
studio monitors
@bretton
bretton / ln-dashboard-list.md
Last active February 11, 2023 17:59
Dashboard tools for Lightning servers

Lightning dashboards

clightning

NodeMonitor

NodeMonitor is a simple Python Django website that makes calls to Bitcoin (bitcoind) and Lightning Network (c-lightning lightningd) nodes and displays the results on a simple 'dashboard' style status page.

Zabbix clightning

@bretton
bretton / smiley-frebs.md
Last active May 29, 2019 04:50
Smiley Frebs

I need a word for the people who pass by pleasantly

you see them now and then, have no beef or grit with them, nor any intimacy.

just mildly to seriously, pleased, to see a friendly face

to engage too closely with introductions is to lead to more intimate things like BBQs and hiking, even sex, which can become too much if not looking for it.

The enjoyment comes from distance and lack of baggage, a sheer pleasantness for passing by.

@bretton
bretton / serverless-macos-aws.md
Last active December 24, 2022 03:18
Setting up serverless on a mac and updating to latest version

The following is specific to MacOS users, however similar guides may exist for Linux, or this can be adapted accordingly.

How to setup a serverless dev environment on a mac

In order to facilitate easier management of a local copy of a website, private github repository, and S3 bucket with Lambda functions as a website we will make use of the serverless framework.

Install XCode

You may need to check you have the latest XCode dev environment installed. You can install it via the App Store.

@bretton
bretton / ln-woocommerce.md
Last active September 13, 2021 01:56
WooCommerce Plugins for LN
@bretton
bretton / inbound-liquidity-ln.md
Last active April 5, 2024 17:38
How to get Inbound Liquidity on the Lightning Network

How to get Inbound Liquidity on the Lightning Network

There are several ways you can find inbound liquidity on LN.

1. Wait

If your node is up 24x7 and you have some outgoing channels, the network will connect to you if you simply wait.

However, it might take a couple of weeks to get a significant amount of incoming liquidity, and ideally you want your outgoing liquidity to match too.

@bretton
bretton / merge-ant-network-theory.md
Last active December 17, 2023 19:03
Merging Actor-Network Theory with Network Graph Theory for the purposes of Regulatory engagement

Merging Actor-Network Theory with Network Graph Theory for the purposes of Regulatory engagement

Actor-Network Theory

ANT holds that social forces do not exist in themselves, and therefore cannot
be used to explain social phenomena. Instead, strictly empirical analysis
should be undertaken to "describe" rather than "explain" social activity.
Only after this can one introduce the concept of social forces, and only as
an abstract theoretical concept, not something which genuinely exists in the
world. The fundamental aim of ANT is to explore how networks are built or
assembled and maintained to achieve a specific objective.
@bretton
bretton / sarb-crypto-regs-execise.md
Last active January 24, 2019 17:45
Class exercise: Re-write the "Proposal for regulatory actions for crypto assets"