Skip to content

Instantly share code, notes, and snippets.

on sabbatical

neil saitug niftynei

on sabbatical
View GitHub Profile
niftynei / configuration.nix
Last active March 1, 2023 16:26
nifty's nixos configuration.nix
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
imports =
[ # Include the results of the hardware scan.
niftynei / 24-may-2021-lightning-dev.txt
Created May 24, 2021 22:47
24 May 2021 #lightning-dev
View 24-may-2021-lightning-dev.txt
<niftynei> hello hello
<niftynei> for all the early birds who want to get a look at today's agenda
* rusty (~rusty@pdpc/supporter/bronze/rusty) has joined
<BlueMatt> here today or libera?
<BlueMatt> seems like everything's moving
* ariard__ (~ariard@ has joined
* ariard__ (~ariard@ has left
<niftynei> probably best to use a deprecation plan?
* orccoin has quit (Remote host closed the connection)
<niftynei> e.g. email to list announcing move
niftynei / elements.conf
Created January 11, 2020 19:45
simple as fuck liquid (elements) conf file
View elements.conf
# Put this in your elements default directory, i.e. ~/.elements/elements.conf
mainchainrpchost=<bitcoin-rpchost> # mine's localhost because they're on the same machine
niftynei /
Last active December 23, 2019 04:22

Bernard was awake. He glanced at the time -- 4:33. His flight wasn't for another few hours. Awake twenty-seven minutes before his first alarm, regardless. He didn't need much time to get ready; his villa in the Bahamas was a twenty minute ride to the airport. He did want to be first on the plane, though. It was a busy time of year for trips to the Southern hemisphere; this he knew.

This everyone knew. The spring equinox had passed just three days ago, in another week the island would be largely deserted. Again. The sun is hot. The sand gets warm. The water won't cool you off.

The alarm went off. Bernard sat up and reached for his earbuds, silencing the alarm with his decisive movements. The lights dimmed, then shifted to a warm glow, matching the tone the sunlight would make, when it first stikes the house.

niftynei / misconfigs.txt
Created December 21, 2019 07:14
testnet misconfigures
View misconfigs.txt
dcpn-testnet 02d6dc68c3405f9961199d9379a4c27ed9ee556ff93df7bec08aa1fe819c375618 {'type': 'ipv4', 'address': '', 'port': 9735}
lightspeed1 [LND] 0306449d3e8aacf564ca0f30046e5d750dc03999c531cd82f3e89545e14a8e4f6a {'type': 'ipv6', 'address': '::', 'port': 9735}
Daisy One [LND] 0240317b267b124d8bebd5bd826c68aaa5725971ad511a1877795a9597b3aa05d6 {'type': 'ipv6', 'address': '::', 'port': 9735}
crazyLN 0282cb55f9cb2ca1374a0897ec8e6b829eb41542405504d1d3dfcb312b0922ca0d {'type': 'ipv4', 'address': '', 'port': 9735}
0372b920547ef5a7812b 0372b920547ef5a7812bdf33bc18fba1b3a0d4d839754249e7c36caeb541a562e8 {'type': 'ipv4', 'address': '', 'port': 9735}
YOUR_NAME [LND] 032f2886456b6f818403084a1bf4867c9daaa37a6a4d4988ec4b2a90ea3714973d {'type': 'ipv6', 'address': '::', 'port': 9735}
02fa195c617457c9b182 02fa195c617457c9b182c37ef5a1ed4c2bf7501c3e72ffa9faf4425f4e
niftynei / node_details.json
Created September 24, 2019 22:10
c-lightning Prometheus/Grafana Node Dashboard
View node_details.json
"annotations": {
"list": [
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
niftynei / quicklook.json
Created September 24, 2019 22:09
"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",
niftynei / docker-compose.yaml
Created September 24, 2019 17:53
c-lightning with Prometheus, Alertmanager, and Grafana
View docker-compose.yaml
version: '3.7'
    image: blockstream/lightningd:prom
    container_name: lightning
    restart: always
    network_mode: "host" 
      - ~/extra/lightning:/root/.lightning
niftynei /
Created September 24, 2019 17:51
Command to start Grafana container
docker run -d \
--network=host \
-v ~/extra/grafana/data:/var/lib/grafana \
-v ~/extra/grafana/provisioning:/etc/grafana/provisioning \
--name grafana \
niftynei / ln-prom.yml
Created September 24, 2019 17:50
Datasource config to connect Prometheus <-> c-lightning plugin
View ln-prom.yml
apiVersion: 1
  - name: Prometheus
    type: prometheus
    access: proxy
    url: http://localhost:9090