🏳️🌈
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
blueprint: | |
name: ZHA Hue Dimmer Switch 2nd Gen | |
description: Allow Hue button functionality for a directly bound 2nd gen Hue Dimmer Switch | |
domain: automation | |
input: | |
device_id: | |
name: Device | |
description: Hue Dimmer Switch | |
selector: | |
device: |
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
blueprint: | |
name: ZHA Hue Motion Sensor | |
description: Replicate Hue Motion Sensor functionality with ZHA | |
domain: automation | |
input: | |
occupancy_id: | |
name: Occupancy Sensor | |
description: Hue Motion Sensor Occupancy | |
selector: | |
entity: |
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
blueprint: | |
name: ZHA Hue Dimmer Switch 1st Gen | |
description: Allow extra functions for a directly bound 1st gen Hue Dimmer Switch | |
domain: automation | |
input: | |
device_id: | |
name: Device | |
description: Hue Dimmer Switch | |
selector: | |
device: |
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
blueprint: | |
name: Doorbell cast notification | |
description: A script that emulates the Nest Hub doorbell notification with any sound and feed | |
domain: script | |
source_url: https://gist.github.com/MattJeanes/0bb4cb11f20b327809b7e7f1d45921be | |
author: MattJeanes | |
input: | |
notify_device: | |
name: Device to notify | |
description: Device to cast the sound and doorbell camera to |
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
# Energy | |
- state_topic: energy/solar | |
value_template: > | |
{% if (value_json['InverterStatus'] | int == 0) %} | |
Waiting | |
{% elif (value_json['InverterStatus'] | int == 1) %} | |
Normal | |
{% elif (value_json['InverterStatus'] | int == 2) %} | |
Fault |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Join server</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
text-align: center; | |
} |
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
# You should insert this script into your PowerShell Profile script so it exists in every session | |
# Fun fact: This script was mostly generated by ChatGPT by giving it the bash version of the output | |
# from `github-copilot-cli alias -- "$0"` with a few fixes from me | |
function Invoke-CopilotWhatTheShell { | |
$TMPFILE = New-TemporaryFile; | |
try { | |
github-copilot-cli what-the-shell $args --shellout $TMPFILE | |
if ($LASTEXITCODE -eq 0) { |
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
$ErrorActionPreference = "Stop" | |
Write-Host "Daemonsets:`n" | |
$daemonsets = kubectl get daemonsets --all-namespaces --output json | ConvertFrom-Json | |
$daemonsets.items | Sort-Object { $_.metadata.name } | ForEach-Object { | |
$daemonset = $_ | |
$daemonset.spec.template.spec.containers | Sort-Object Name | ForEach-Object { | |
Write-Host "$($daemonset.metadata.name) / $($_.Name), memory request: $($_.Resources.Requests.Memory ?? "N/A"), memory limit: $($_.Resources.Limits.Memory ?? "N/A"), cpu request: $($_.Resources.Requests.CPU ?? "N/A"), cpu limit: $($_.Resources.Limits.CPU ?? "N/A")" | |
} |
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
param( | |
[Parameter(Mandatory = $true)] | |
[AllowEmptyString()] | |
[string]$Namespace | |
) | |
if (-not $Namespace) { | |
$Namespace = "default"; | |
} |
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
from glob import iglob | |
import os | |
import sys | |
spaces_per_tab = 4 | |
argc = len( sys.argv ) | |
if argc < 2: |
NewerOlder