Skip to content

Instantly share code, notes, and snippets.

@haklein
haklein / hrctl.py
Created February 13, 2023 15:54
Hardrock 50 amp remote control
#!/usr/bin/python3
import sys
import serial
import re
import gevent
import gevent.pywsgi
import gevent.queue
from tinyrpc.server.gevent import RPCServerGreenlets
@haklein
haklein / annealer.ino
Created February 1, 2022 15:20
Annealer sketch with TMC additions
/*---------------------------------------------------------------------------*/
/*! @brief Brass Cartridge Case Annealer.
@details None.
@author Justin Spence, Mark Griffith. 2020
@note circuitworksnz@gmail.com
*//*-------------------------------------------------------------------------*/
//--Includes-------------------------------------------------------------------
#include <SPI.h>
#include <Wire.h>
@haklein
haklein / map_slow_requests_to_buckets.sh
Created August 5, 2016 18:37 — forked from linuxkidd/map_slow_requests_to_buckets.sh
Provided a ceph.log and ceph osd tree output, this script generates a CSV mapping any 'slow request' entries to their appropriate buckets for identifying common hardware to the slow requests.
#!/bin/bash
if [ -z $2 ]; then
echo
echo "Usage: $(basename $0) <ceph.log> <osd-tree>"
echo
exit 1
fi
if [ ! -e $1 ]; then