Skip to content

Instantly share code, notes, and snippets.

Avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
View speedtest-registry-directly.sh
#!/bin/bash
set -e
image='tianon/speedtest'
layer='b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f'
# docker inspect b31651d7665036bcf58a0b6b0d7aca173daff87b003ec50621cb0fde8d68864f | grep '"Size"'
# "Size": 580580561,
# ("Content-Length: 228991341" though...)
token="$(curl -sSL -o /dev/null -D- -H 'X-Docker-Token: true' "https://index.docker.io/v1/repositories/$image/images" | awk -F ':[[:space:]]*|\r' '$1 == "X-Docker-Token" { print $2 }')"
View images-tree.go
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"strings"
View README.md

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:

View README.md
You can’t perform that action at this time.