This file contains hidden or 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
# Set the incident severity based upon the severity label in the alert rule | |
# Only include the valid severity values or default to critical if none exists or invalid | |
{{- range .Alerts -}}{{- if or (eq .Labels.severity "critical") (eq .Labels.severity "error") (eq .Labels.severity "warning") (eq .Labels.severity "info") -}}{{ .Labels.severity }}{{- else -}}critical{{- end -}}{{- end -}} |
This file contains hidden or 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
alias: Set Time On TRVs | |
description: "" | |
triggers: | |
- trigger: time_pattern | |
hours: "6" | |
minutes: "0" | |
seconds: "0" | |
conditions: | |
- condition: time | |
weekday: |
This file contains hidden or 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
#!/bin/env bash | |
dnf install \ | |
@"Fonts" \ | |
ark \ | |
bluedevil \ | |
breeze-gtk \ | |
breeze-icon-theme \ | |
colord-kde \ | |
dolphin \ |
This file contains hidden or 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
# A Jinja2 template for the Nordpool Home Assistant integration to include additional costs for Aura. | |
# This includes hourly and seasonal tariff for electricity transportation (Dinel) and its taxes, state taxes, and a fixed cost. | |
{% set s = { | |
"summertarif_start_month": 4, | |
"summertarif_end_month": 9, | |
"summertarif_low_price": 0.0882, | |
"summertarif_high_price": 0.1323, | |
"summertarif_max_price": 0.3439, |
This file contains hidden or 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/python | |
# The .ovpn to .onc converter | |
# This tool parses an 'inline' OpenVPN profile (certs and keys are included within the .ovpn file) | |
## and spits out a Open Network Configuration file which can be imported in to ChromeOS. | |
# Open Network Configuration specs can be found here | |
## https://chromium.googlesource.com/chromium/src/+/master/components/onc/docs/onc_spec.md | |
# Original credit goes to Steve Woodrow (https://github.com/woodrow) |