Skip to content

Instantly share code, notes, and snippets.

View aficiomaquinas's full-sized avatar

Víctor González aficiomaquinas

View GitHub Profile
@aficiomaquinas
aficiomaquinas / frigate_motion_telegram_notification.yaml
Created December 26, 2024 04:37
Home Assistant Blueprint for Frigate Motion Notifications
blueprint:
name: Frigate Motion Detection Notification
description: Send Telegram notifications when motion is detected in a specific Frigate camera zone
domain: automation
source_url: https://gist.github.com/example/frigate-motion-blueprint
input:
camera:
name: Camera
description: The Frigate camera to monitor
selector:
@aficiomaquinas
aficiomaquinas / delete_coupons.sh
Last active April 24, 2024 20:44
Move unused coupons to trash, then empty coupons trash in Woocommerce manually using WP-CLI
#!/bin/bash
# Sometimes when the trash bin is too large for coupons (or other post_types),
# simply emptying the trash directly in the Wordpress front-end throws 500 errors
# or timeouts, that's why I created this script. Adjust the 'post_type',
# 'delete_batch_type' and 'pause_duration' accordingly.
# Configurable batch size for deleting posts
delete_batch_size=1000

Keybase proof

I hereby claim:

  • I am aficiomaquinas on github.
  • I am aficio (https://keybase.io/aficio) on keybase.
  • I have a public key ASBY_x-ZeJK3d83HF6OBO4XhKYJ5sVdZVc7pIYW68x23Lwo

To claim this, I am signing this object: