Skip to content

Instantly share code, notes, and snippets.


neil saitug niftynei

View GitHub Profile
niftynei /
Created Sep 24, 2019
Command to start Prometheus
docker run -d \
--network=host \
-v ~/extra/prom/data:/data:rw \
-v ~/extra/prom/prometheus.yaml:/config/prometheus.yaml:ro \
-v ~/extra/prom/alerts.yaml:/config/alerts.yaml:ro \
--read-only \
--name prometheus \
"prom/prometheus:v2.12.0" --config.file=/config/prometheus.yaml --storage.tsdb.path=/data/metrics --storage.tsdb.retention=31d
niftynei / alerts.yml
Created Sep 24, 2019
Alertmanager Config
View alerts.yml
- name: c-lightning.rules
  - alert: c_lightning_node_down
    expr: lightning_node_info{job="lightningd"} == 0
    for: 1m
      team: c-lightning
      severity: urgent
niftynei / prometheus.yml
Created Sep 24, 2019
Prometheus config
View prometheus.yml
  evaluation_interval: 15s
  scrape_interval: 15s
  - /config/alerts.yaml
  - scheme: http
niftynei /
Created Sep 24, 2019
Command to start c-lightning with Docker
docker run -d \
--network=host \
--name=lightning \
-v ~/extra/lightning:/root/.lightning \
blockstream/lightningd:prom lightningd --conf=/root/.lightning/lightning.conf
niftynei / lightning.conf
Created Sep 24, 2019
Example lightning conf
View lightning.conf
niftynei /
Created Sep 24, 2019
prometheus configuration python
    'Address and port to bind to'
niftynei / dot.txt
Created Sep 5, 2019
notes from outputs investigation
View dot.txt
wallet/db.c -> table schemas + migrations
wallet/wallet.c -> SQL statements
table: outputs
question: what are the values for 'status'
output_state_available= 0,
output_state_reserved = 1,
output_state_spent = 2,
/* Output has been included in a signed funding tx that we've shared
* with a peer; not yet mempooled. Eligible for burning */
niftynei /
Created Jul 27, 2018
keybase keybase

Keybase proof

I hereby claim:

  • I am niftynei on github.
  • I am niftynei ( on keybase.
  • I have a public key ASCz88tHziYE6EYbvLP0MWMvS2bUUAIW3b8sfHW9oMJ94go

To claim this, I am signing this object:

niftynei / packages
Last active Jan 5, 2017
reaction crash
View packages
Error: The global definition of Mongo.Collection has changed since the job-collection package was loaded. Please ensure that any packages that redefine Mongo.Collection are loaded before job-collection.
at JobCollectionBase [as constructor] (packages/vsivsi_job-collection/src/
at new JobCollection (packages/vsivsi_job-collection/src/
at meteorInstall.node_modules.meteor.reactioncommerce:reaction-collections.common.collections.collections.js (packages/reactioncommerce:reaction-collections/common/collections/collections.js:202:33)
at fileEvaluate (packages/modules-runtime.js:181:9)
at require (packages/modules-runtime.js:106:16)
at /home/niftynei/dev/reaction/.meteor/local/build/programs/server/packages/reactioncommerce_reaction-collections.js:1483:1
at /home/niftynei/dev/reaction/.meteor/local/build/programs/server/packages/reactioncommerce_reaction-collections.js:1510:3
at /home/niftynei/dev/reaction/.meteor/local/build/programs/server/boo
niftynei / Contract Killer
Last active Oct 12, 2016 — forked from malarkey/Contract Killer
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: 12th October 2016
  • Original post

You can’t perform that action at this time.