Skip to content

Instantly share code, notes, and snippets.

@dmah42
dmah42 / mastodon.json
Created December 5, 2022 12:44
mastodon grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,

Keybase proof

I hereby claim:

  • I am dmah42 on github.
  • I am dma (https://keybase.io/dma) on keybase.
  • I have a public key whose fingerprint is C7E2 D288 037D 038B 727F D232 A8A6 5885 F9F7 9DB8

To claim this, I am signing this object:

@dmah42
dmah42 / csv.py
Created June 19, 2022 16:18
POC parse JSON to CSV
#!/usr/bin/env python
import unittest
import argparse
from argparse import ArgumentParser
import json
import os
import sys
import statistics
def has_converged(xs):
return all(x == xs[0] for x in xs)
def f(xs):
return [
statistics.mean(xs),
#include "benchmark/benchmark.h"
#include "cblas.h"
#include <memory>
static void BM_GEMM_unique_ptr(benchmark::State& state) {
std::unique_ptr<float> A(new float[state.range(0) * state.range(0)]);
std::unique_ptr<float> B(new float[state.range(0) * state.range(0)]);
std::unique_ptr<float> C(new float[state.range(0) * state.range(0)]);

Keybase proof

I hereby claim:

  • I am dominichamon on github.
  • I am dma (https://keybase.io/dma) on keybase.
  • I have a public key whose fingerprint is C7E2 D288 037D 038B 727F D232 A8A6 5885 F9F7 9DB8

To claim this, I am signing this object: