Skip to content

Instantly share code, notes, and snippets.

# upstream format
{
"coast_distance": {
"distance": 970,
"units": "feet",
"high_res_distance": {
"value": 970,
"units": "feet"
},
"low_res_distance": {
#!/usr/bin/env bash
response_code=$(curl -s -o /dev/null -w "%{http_code}" https://tls-check.hazardhub.com)
error_code=$?
if [[ $error_code -eq 35 ]]; then
echo "Your client may not support TLS 1.2 or higher. Check with guides for your operating system for update procedures"
elif [[ $response_code -ne 200 ]]; then
echo "Got unexpected response code: $response_code, with curl error code: $error_code"
echo "This script only knows how to check for TLS compatibility, it looks like you've encountered a different problem"
else
This file has been truncated, but you can view the full file.
2019/09/03 14:25:06 [INFO] Terraform version: 0.12.7
2019/09/03 14:25:06 [INFO] Go runtime version: go1.12.9
2019/09/03 14:25:06 [INFO] CLI args: []string{"/usr/local/bin/terraform", "destroy"}
2019/09/03 14:25:06 [DEBUG] Attempting to open CLI config file: /Users/jdkemsley/.terraformrc
2019/09/03 14:25:06 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/03 14:25:06 [INFO] CLI command args: []string{"destroy"}
2019/09/03 14:25:06 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/09/03 14:25:06 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/09/03 14:25:06 [DEBUG] New state was assigned lineage "26d56f46-369e-ef09-e542-312731565a9e"
2019/09/03 14:25:06 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
level=error ts=2019-06-12T18:47:35.004Z caller=manager.go:761 component="rule manager" msg="loading groups failed" err="group \"default-alert-rule-group\", rule 39, \"RouteReportingFailure\": msg=template: __alert_RouteReportingFailure:1: function \"labels\" not defined"
level=error ts=2019-06-12T18:47:35.004Z caller=main.go:743 msg="Failed to apply configuration" err="error loading rules, previous rule set restored"
level=error ts=2019-06-12T18:47:35.004Z caller=main.go:570 msg="Error reloading config" err="one or more errors occurred while applying the new configuration (--config.file=\"/etc/config/prometheus.yml\")"