Skip to content

Instantly share code, notes, and snippets.

# docker container inspect portainermacvlan
[
"NetworkSettings": {
"Bridge": "",
"SandboxID": "48fd987a4ad8ecfbef8a2d44c067c07489ed70048ddeec2f1778e3f7cfa20377",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/48fd987a4ad8",
@TheLinuxGuy
TheLinuxGuy / initial-backup-calculator.go
Created June 5, 2017 03:22
golang total folder size, backup design question
package main
import (
"fmt"
"io/ioutil"
"math"
"strconv"
)
// decimal places rounding
func round(input float64, places int) (float64) {