Skip to content

Instantly share code, notes, and snippets.

@r1979
r1979 / docker-compose.yml
Created January 27, 2024 10:24 — forked from wouterds/docker-compose.yml
Umbrel behind (traefik) reverse proxy
version: '3.7'
x-logging: &default-logging
driver: journald
options:
tag: "{{.Name}}"
services:
tor:
container_name: tor
image: lncm/tor:0.4.4.7@sha256:48094db3afff76472b20cd7b6a41151ef5e380e5ec5e6042c36b0f861236c45f
@r1979
r1979 / bitcoin-monitor.md
Created January 25, 2021 13:08 — forked from ageis/bitcoin-monitor.md
Prometheus exporter for monitoring statistics of Bitcoin daemon

bitcoind-monitor.py

This is a script written in Python intended to run alongside a Bitcoin node and export statistics for monitoring purposes. It assumes the existence of bitcoin-cli in the PATH and access to the RPC interface over localhost.

It tracks stuff like: block height, difficulty, number of peers, network hash rate, errors, uptime in seconds, mempool size, size of recent blocks, number of transactions within blocks, chaintips, total bytes received and sent, and transaction inputs and outputs. These Bitcoin metrics are refreshed once every 5 minutes.

How it works

Prometheus is a monitoring system and time-series database.

@r1979
r1979 / systemd-cant-unmask-root-mount-mount.md
Last active October 30, 2019 21:46
systemd-cant-unmask-root-mount-mount
@r1979
r1979 / commands.md
Created March 15, 2019 14:59 — forked from ondrej-kvasnovsky/commands.md
Commands to install and configure ElasticSearch on Ubuntu

Install ElasticSearch and Java

1  wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
2  sudo dpkg -i elasticsearch-1.0.1.deb
3  sudo update-rc.d elasticsearch defaults 95 10
4  sudo add-apt-repository ppa:webupd8team/java
5  sudo apt-get update
6  sudo apt-get install oracle-java7-installer
7  java -version
@r1979
r1979 / README.md
Created April 13, 2017 09:03 — forked from twonds/README.md
Datadog stream parser for json

dd-udpstream

Parse json events into data dog events

Testing

Keybase proof

I hereby claim:

  • I am r1979 on github.
  • I am ruggero (https://keybase.io/ruggero) on keybase.
  • I have a public key whose fingerprint is 0916 6819 9D6F 38D0 F8A6 BF0F 8A5F 8939 4D8E 7C40

To claim this, I am signing this object: