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 / shell.sh
Created Sep 24, 2019
Command to start Prometheus
View shell.sh
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
niftynei / alerts.yml
Created Sep 24, 2019
Alertmanager Config
View alerts.yml
groups:
- name: c-lightning.rules
  rules:
  - alert: c_lightning_node_down
    expr: lightning_node_info{job="lightningd"} == 0
    for: 1m
    labels:
      team: c-lightning
      severity: urgent
    annotations:
@niftynei
niftynei / prometheus.yml
Created Sep 24, 2019
Prometheus config
View prometheus.yml
global:
  evaluation_interval: 15s
  scrape_interval: 15s
rule_files:
  - /config/alerts.yaml
alerting:
  alertmanagers:
  - scheme: http
@niftynei
niftynei / shell.sh
Created Sep 24, 2019
Command to start c-lightning with Docker
View shell.sh
docker run -d \
--network=host \
--name=lightning \
-v ~/extra/lightning:/root/.lightning \
blockstream/lightningd:prom lightningd --conf=/root/.lightning/lightning.conf
@niftynei
niftynei / lightning.conf
Created Sep 24, 2019
Example lightning conf
View lightning.conf
network=bitcoin
bitcoin-rpcuser=plugin-user
bitcoin-rpcpassword=plugin-pass
plugin-dir=/usr/local/bin/plugins
@niftynei
niftynei / prometheus_snippet.py
Created Sep 24, 2019
prometheus configuration python
View prometheus_snippet.py
plugin.add_option(
    'prometheus-listen',
    '0.0.0.0:9900'
    'Address and port to bind to'
)
@niftynei
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
niftynei / keybase.md
Created Jul 27, 2018
keybase keybase
View keybase.md

Keybase proof

I hereby claim:

  • I am niftynei on github.
  • I am niftynei (https://keybase.io/niftynei) on keybase.
  • I have a public key ASCz88tHziYE6EYbvLP0MWMvS2bUUAIW3b8sfHW9oMJ94go

To claim this, I am signing this object:

@niftynei
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/shared.coffee:88:17)
at new JobCollection (packages/vsivsi_job-collection/src/server.coffee:27:7)
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
niftynei / Contract Killer 3.md
Last active Oct 12, 2016 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

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.