Skip to content

Instantly share code, notes, and snippets.

View magiconair's full-sized avatar

Frank Schröder magiconair

View GitHub Profile
#!/bin/bash
set -o nounset
function log() {
echo
echo "========================================================================="
echo "== $@"
echo "=="
}
@magiconair
magiconair / riak-key-extractor.go
Last active January 16, 2020 14:26
Tool for extracting bucket/key data from riak's bitcask hint files
// Riak key extractor
//
// extracts bucket names and keys from riak's bitcask hint files
//
// Authors: The CAS Team 2013
//
package main
import (
"bytes"
@magiconair
magiconair / main.go
Last active March 28, 2022 07:27
prometheus counter example
package main
import (
"net/http"
"github.com/prometheus/client_golang/prometheus"
)
var (
cpuTemp = prometheus.NewGauge(prometheus.GaugeOpts{