Skip to content

Instantly share code, notes, and snippets.

View tabascoterrier's full-sized avatar

tabascoterrier

View GitHub Profile
@tabascoterrier
tabascoterrier / haraka.chart.netdata.py
Last active March 3, 2022 11:04
A work-in-progress Haraka plugin for www.netdata.cloud
# -*- coding: utf-8 -*-
# Description: Haraka netdata python.d module
# Author: tabascoterrier
# SPDX-License-Identifier: GPL-3.0-or-later
import psutil
from bases.FrameworkServices.SimpleService import SimpleService
# TODO: does priority actually do anything?
priority = 90000
@tabascoterrier
tabascoterrier / audiater.py
Last active May 8, 2020 17:15
audiater.py
#!/usr/bin/env python
import sys
import mido
import time
import random
import hashlib
# pip install mido rtmidi
# Enable a virtual MIDI bus: https://help.ableton.com/hc/en-us/articles/209774225-Using-virtual-MIDI-buses
# tail -f somelog | ./audiater.py