This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo smartctl -A /dev/sdb | awk '/^241/ { print "TBW: "($10 * 512) * 1.0e-12, "TB" } ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. | |
[[projects]] | |
name = "github.com/PuerkitoBio/purell" | |
packages = ["."] | |
revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4" | |
version = "v1.1.0" | |
[[projects]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from prometheus_client.core import GaugeMetricFamily, REGISTRY | |
from miio.airpurifier import AirPurifier | |
from prometheus_client.metrics_core import CounterMetricFamily | |
from prometheus_client.twisted import MetricsResource | |
from twisted.web.server import Site | |
from twisted.web.resource import Resource | |
from twisted.internet import reactor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/hashicorp/hcl/v2" | |
"os" | |
"path/filepath" | |
"github.com/hashicorp/hcl/v2/hclwrite" |
OlderNewer