Skip to content

Instantly share code, notes, and snippets.

@eddyg
eddyg / analyze-adguard-home-querylog.py
Last active February 9, 2025 16:34
Simple Python script to analyze AdGuard Home's `querylog.json` file(s)
#!/usr/bin/env -S uv --quiet run --script
# /// script
# requires-python = ">=3.8"
# dependencies = ["pandas"]
# ///
import pandas as pd
import json
from pathlib import Path
def process_log(filename):
@eddyg
eddyg / lutron_pico_4_button_p02_actions.yaml
Created January 10, 2025 21:51
Lutron Pico Automation Blueprints for Home Assistant
blueprint:
name: Lutron Pico 4 Button P02 Actions
description: |
Different Actions on Short, Long, and Double Click button presses.
Based off of GregTR's version. This blueprint is specifically for the P02 Scene Pico (Bright, Cooking, Dining, Off).
Make sure you have enabled at least one Pico Event Entity for each device, they default to not enabled (otherwise they won't show up as an available device in the drop down list)
domain: automation
input:
@eddyg
eddyg / aclogwatch.py
Created January 5, 2023 13:49
AnyConnect Log Watcher
#!/usr/bin/env python
#
# Watch the macOS logging system for certain AnyConnect-related events
#
# EddyG
# June 2021
# Createa a venv to run this:
#
# python3 -m venv aclogwatch (only required once)