Skip to content

Instantly share code, notes, and snippets.

neil saitug niftynei

Block or report user

Report or block niftynei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@niftynei
niftynei / elements.conf
Created Jan 11, 2020
simple as fuck liquid (elements) conf file
View elements.conf
# Put this in your elements default directory, i.e. ~/.elements/elements.conf
chain=liquidv1
daemon=1
mainchainrpcpassword=<bitcoin-rpcpass>
mainchainrpcuser=<bitcoin-rpcuser>
mainchainrpcport=<bitcoin-rpcport>
mainchainrpchost=<bitcoin-rpchost> # mine's localhost because they're on the same machine
View abw.md

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
niftynei / misconfigs.txt
Created Dec 21, 2019
testnet misconfigures
View misconfigs.txt
dcpn-testnet 02d6dc68c3405f9961199d9379a4c27ed9ee556ff93df7bec08aa1fe819c375618 {'type': 'ipv4', 'address': '127.0.0.1', 'port': 9735}
lightspeed1 [LND] 0306449d3e8aacf564ca0f30046e5d750dc03999c531cd82f3e89545e14a8e4f6a {'type': 'ipv6', 'address': '::', 'port': 9735}
Daisy One [LND] 0240317b267b124d8bebd5bd826c68aaa5725971ad511a1877795a9597b3aa05d6 {'type': 'ipv6', 'address': '::', 'port': 9735}
crazyLN 0282cb55f9cb2ca1374a0897ec8e6b829eb41542405504d1d3dfcb312b0922ca0d {'type': 'ipv4', 'address': '0.0.0.0', 'port': 9735}
0372b920547ef5a7812b 0372b920547ef5a7812bdf33bc18fba1b3a0d4d839754249e7c36caeb541a562e8 {'type': 'ipv4', 'address': '0.0.0.0', 'port': 9735}
YOUR_NAME [LND] 032f2886456b6f818403084a1bf4867c9daaa37a6a4d4988ec4b2a90ea3714973d {'type': 'ipv6', 'address': '::', 'port': 9735}
02fa195c617457c9b182 02fa195c617457c9b182c37ef5a1ed4c2bf7501c3e72ffa9faf4425f4e
@niftynei
niftynei / node_details.json
Created Sep 24, 2019
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
niftynei / quicklook.json
Created Sep 24, 2019
"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
niftynei / docker-compose.yaml
Created Sep 24, 2019
c-lightning with Prometheus, Alertmanager, and Grafana
View docker-compose.yaml
version: '3.7'
services:
  lightning:
    image: blockstream/lightningd:prom
    container_name: lightning
    restart: always
    network_mode: "host" 
    volumes:
      - ~/extra/lightning:/root/.lightning
@niftynei
niftynei / shell.sh
Created Sep 24, 2019
Command to start Grafana container
View shell.sh
docker run -d \
--network=host \
-v ~/extra/grafana/data:/var/lib/grafana \
-v ~/extra/grafana/provisioning:/etc/grafana/provisioning \
--name grafana \
grafana/grafana:6.3.5
@niftynei
niftynei / ln-prom.yml
Created Sep 24, 2019
Datasource config to connect Prometheus <-> c-lightning plugin
View ln-prom.yml
apiVersion: 1
datasources:
  - name: Prometheus
    type: prometheus
    access: proxy
    url: http://localhost:9090
@niftynei
niftynei / shell.sh
Created Sep 24, 2019
Command to start Alertmanager
View shell.sh
docker run \
--network=host \
-v ~/extra/prom/data:/data \
-v ~/extra/prom/alertmanager.yaml:/config/alertmanager.yaml \
--name alertmanager \
--entrypoint=/bin/alertmanager \
"prom/prometheus:v2.12.0" --config.file=/config/alertmanager.yaml
@niftynei
niftynei / alertmanager.yml
Created Sep 24, 2019
Alertmanager Config
View alertmanager.yml
receivers:
  - name: alerts-email
    email_configs:
    - to: alerts@example.com
      from: noreply@example.io
      smarthost: smtp.gmail.com:587
      auth_username: alerts@example.com
      auth_password: 12345678910
  - name: alerts-pager
    opsgenie_configs:
You can’t perform that action at this time.