Skip to content

Instantly share code, notes, and snippets.

View hcgonzalezpr's full-sized avatar

Harry Gonzalez hcgonzalezpr

View GitHub Profile
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
domain: automation
@hcgonzalezpr
hcgonzalezpr / wireguard-tunnel-deployment.yaml
Created March 29, 2022 00:21
Simple K8s Wireguard Tunnel Example
apiVersion: v1
kind: ConfigMap
metadata:
name: wireguard-configmap
data:
PUID: "1000"
PGID: "1000"
TZ: "America/Chicago"
---
apiVersion: v1
@hcgonzalezpr
hcgonzalezpr / socat-minecraft.service
Created March 29, 2020 02:08
Minecraft systemd broadcast proxy socat example
[Unit]
Description=Socat Minecraft
[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=socat-minecraft
ExecStart=/usr/bin/socat UDP4-LISTEN:19132,broadcast,fork UDP4-SENDTO:123.456.789.123:19132
@hcgonzalezpr
hcgonzalezpr / smx8fancontrol
Created February 5, 2019 22:14 — forked from timemaster67/smx8fancontrol
Python script to edit the X8DTL-iF Registry to control fan speed.
#!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@hcgonzalezpr
hcgonzalezpr / ddnsmasq
Created June 30, 2017 15:30 — forked from holly/ddnsmasq
update dnsmasq host file from dhcp lease file
#!/usr/bin/env python3
from argparse import ArgumentParser
from subprocess import Popen, PIPE, STDOUT
import shlex
import hashlib
import time
import warnings
import os, sys, io
import signal
@hcgonzalezpr
hcgonzalezpr / Sony Bravia 2014.xml
Created November 24, 2015 21:53 — forked from iAmMrinal0/Sony Bravia 2014.xml
Plex DLNA profile for Sony Bravia 2014 models
<?xml version="1.0" encoding="utf-8"?>
<Client name="Sony Bravia 2014">
<Identification>
<Header name="X-AV-Client-Info" regex=".*(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*" />
<DeviceDescription>
<Manufacturer substring="Sony" />
<FriendlyName regex="(KDL-\d{2}W[5-9]\d{2}B|KDL-\d{2}R480|XBR-\d{2}X[89]\d{2}B|KD-\d{2}[SX][89]\d{3}B).*" />
</DeviceDescription>
</Identification>
<DeviceDescription>