View patch.yaml
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
--- | |
- op: add | |
path: /spec/template/spec/containers/0/envFrom/- | |
value: | |
secretRef: | |
name: appinsights | |
- op: add | |
path: /spec/template/spec/containers/0/env/- | |
value: | |
name: JAVA_OPTIONS |
View dashboard.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
View dashboard.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
View output.txt
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
% curl -I -X GET -H "Content-Type: application/json" -H "Token: 62b24bdf9ce08cfa3fb7ed15aa0d3e027a142df1" https://demo.netbox.dev/api/docs/\?format\=openapi | |
HTTP/1.1 200 OK | |
Server: nginx/1.18.0 (Ubuntu) | |
Date: Thu, 28 Apr 2022 06:59:18 GMT | |
Content-Type: application/openapi+json; charset=utf-8 | |
Content-Length: 1064721 | |
Connection: keep-alive | |
Vary: Accept, Cookie, Authorization, Origin | |
Allow: GET, HEAD, OPTIONS | |
Expires: Thu, 28 Apr 2022 20:40:14 GMT |
View terrraform.tf
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
resource "kubernetes_config_map" "config_map" { | |
name = "nginx-config" | |
namespace = "ingress" | |
data = <<EOF | |
log-format-upstream: > | |
latency=$upstream_response_time | |
protocol=$server_protocol | |
proxyAlternativeUpstreamName=$proxy_alternative_upstream_name | |
proxyUpstreamName=$proxy_upstream_name | |
referer=$http_referer |
View dashboard.json
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View netbox_inventory.yaml
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
--- | |
plugin: netbox.netbox.nb_inventory | |
cache: True | |
cache_connection: .inventory | |
cache_plugin: jsonfile | |
plurals: False | |
group_by: |
View import-checks.py
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
#!/usr/bin/env python3 | |
import pingdomv3 | |
import subprocess | |
import os | |
pingdom_api_token = os.environ['PINGDOM_API_TOKEN'] | |
client = pingdomv3.Client(pingdom_api_token) | |
checks = client.get_checks(tags="environment_test") |
View vlan24.conflist
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
{ | |
"cniVersion": "0.4.0", | |
"name": "vlan24", | |
"plugins": [ | |
{ | |
"type": "bridge", | |
"bridge": "br24", | |
"ipam": { | |
"type": "static", | |
"routes": [ |
View terraform-run-all.py
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
#!/usr/bin/env python3 | |
import pyterprise | |
import os | |
tfe_token = os.environ.get('TFE_TOKEN') | |
tfe_org = os.environ.get('TFE_ORG') | |
client = pyterprise.Client() | |
client.init(token=tfe_token, url="https://app.terraform.io") |
NewerOlder