Skip to content

Instantly share code, notes, and snippets.

View rogerarruda's full-sized avatar
🎯
Focusing

Roger Arruda rogerarruda

🎯
Focusing
View GitHub Profile
blueprint:
name: Luz ou Dispositivo Ativado por Presença (Apenas à Noite)
description: Liga uma luz ou dispositivo quando presença é detectada após o pôr do sol.
domain: automation
input:
motion_entity:
name: Sensor de Presença ou Movimento
selector:
entity:
domain: binary_sensor
@rogerarruda
rogerarruda / motion-sensor-action.yml
Last active October 21, 2025 12:14
homeassistant-blueprint-motion-sensor-action
blueprint:
name: Luz ou Dispositivo Ativado por Presença
description: Liga uma luz, interruptor ou qualquer dispositivo quando presença é detectada e desliga automaticamente após um tempo configurável.
domain: automation
input:
motion_entity:
name: Sensor de Presença ou Movimento
description: Selecione o sensor que detectará presença ou movimento
selector:
entity:
@rogerarruda
rogerarruda / backup.php
Created February 16, 2020 20:32
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP Recursive Backup-Script to ZIP-File
* (c) 2012: (Original) Marvin Menzerath. (http://menzerath.eu)
* (c) 2020: Roger Arruda. (https://rogerarruda.dev)
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');