Skip to content

Instantly share code, notes, and snippets.

@UdjinM6
UdjinM6 / systemMetricsDaemon.py
Last active January 13, 2021 00:58
System Metrics daemon for stasd
#!/usr/bin/env python3
# The daemon reads system metrics and outputs them to StatsD.
#
# It requires django, the python statsd library, and PSUtil: https://github.com/giampaolo/psutil i.e.
# pip3 install django psutil statsd
#
# Usage: python3 systemMetricsDaemon.py &
import os
@UdjinM6
UdjinM6 / export_grafana_dashboards.sh
Last active January 13, 2021 01:10
Export all public Graphana dashboards
#!/bin/bash
full_url="http://your_graphana_host_here"
name="dashboards"
create_slug () {
echo "$1" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z
}
process_db_json() {
@UdjinM6
UdjinM6 / bitcoin_debugging.md
Created February 13, 2022 22:39 — forked from fjahr/bitcoin_debugging.md
Debugging Bitcoin Core

Moved to https://github.com/fjahr/debugging_bitcoin to allow for better collaboration.

This document is currently optimized for MacOS. If you would like to help me add Linux equivalent commands, please let me know.

Debugging Bitcoin Core

This guide is designed to give beginners of C++ development and/or people new to the bitcoin core code base an overview of the tools available for debugging issues as well as giving hints where issues may trip you up.