Skip to content

Instantly share code, notes, and snippets.

View dmigwi's full-sized avatar

Daniel Migwi dmigwi

View GitHub Profile
@dmigwi
dmigwi / chart.html
Last active July 16, 2025 12:47
directed chord diagram chart
<!DOCTYPE html>
<html>
<head>
<title>Chord Chart</title>
</head>
<body>
<!-- Styles -->
<style>
#chartdiv {
@dmigwi
dmigwi / ssl.sh
Last active August 10, 2023 23:52
Script to self sign ssl certificates
#! /bin/bash
# script copied from https://devopscube.com/create-self-signed-certificates-openssl/
if [ "$#" -ne 2 ]
then
echo "Error: Missing either domain name or certificates owner arguments"
echo "Usage: Provide a domain name and certificate owner (i.e. server or client) as arguments"
exit 1
fi
@dmigwi
dmigwi / main.go
Last active August 14, 2019 03:16
Differences between the payload returned by https://github.com/trezor/blockbook/pull/249 (Fix decred's xpub decoding #249) and https://github.com/trezor/blockbook/pull/245 (WIP: decred: set proper base58 hasher (blake256). #245)
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"github.com/google/go-cmp/cmp"
@dmigwi
dmigwi / decred-tests-n-clean-up.sh
Created June 24, 2019 20:55
This script runs tests for a containerized (running in a vm) version of the trezor blockbook
#!/usr/bin/env bash
if [ $# -ne 1 ] && [ $# -ne 2 ]
then
echo -e "Usage:\n\n$(basename $(readlink -f $0)) coin service_name coin_test backend_log_file\n\nor\n\n$(basename $(readlink -f $0)) coin\n and if old images should be dropped" 1>&2
exit 1
fi
COIN=$1
# ISIMAGE=true