This file contains hidden or 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: "Third Reality Light - Occupancy, Lux & Color Control" | |
| description: | | |
| **Occupancy and Light Level Automation for Third Reality Lights with Color Control** | |
| This blueprint automatically controls a Third Reality light based on: | |
| - **Occupancy detection**: Light turns on when motion/occupancy is detected | |
| - **Light level**: Only turns on when ambient light is below the threshold | |
| - **Color selection**: Choose your preferred color via color picker | |
| - **Timeout**: Turns off after a configurable period of no occupancy |
This file contains hidden or 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: "Smart Roof Heating - Restart-Proof Duty Cycle" | |
| description: | | |
| Redesigned heating cable controller with complete restart recovery. | |
| Automatically detects and recovers duty cycle state after Home Assistant restart. | |
| **Restart Recovery Features:** | |
| • Detects if duty cycle was active before restart | |
| • Automatically restarts timer with appropriate duration | |
| • Maintains cable state consistency |
This file contains hidden or 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: "Circadian Motion Lighting - Smart Motion Logic" | |
| description: > | |
| **Version: 2.5.6 - Smart Motion Logic** | |
| Motion/Occupancy/Presence-activated lighting with **smart conditional logic** and complete light therapy. | |
| **NEW in 2.5.6: Smart Motion Detection** |
This file contains hidden or 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 pytube import YouTube | |
| from moviepy.editor import * | |
| import openai | |
| import textwrap | |
| openai.api_key = "YOUR KEY" | |
| def download_youtube_video(url, output_path): | |
| yt = YouTube(url) | |
| video = yt.streams.filter(file_extension='mp4').first() | |
| video.download(output_path) |
This file contains hidden or 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
| //source: https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x/ | |
| //Move DefaultKeyBinding.dict in your ~/Library/KeyBindings folder | |
| //Log out log back in | |
| { | |
| "\UF729" = moveToBeginningOfParagraph:; // home | |
| "\UF72B" = moveToEndOfParagraph:; // end | |
| "$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home | |
| "$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end | |
| "^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
| "^\UF72B" = moveToEndOfDocument:; // ctrl-end |
This file contains hidden or 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
| type: leaky | |
| format: 2.0 | |
| #debug: true | |
| name: belphemur/http-wordpress-login-xmlrpc | |
| description: "Detect attempt to access to wp-login and xmlrpc" | |
| filter: "evt.Meta.log_type == 'http_access-log' && (evt.Parsed.file_name == 'wp-login.php' || evt.Parsed.file_name == 'xmlrpc.php') && evt.Parsed.verb == 'POST'" | |
| groupby: "evt.Meta.source_ip" | |
| #distinct: evt.Parsed.request | |
| capacity: 4 | |
| leakspeed: 2m |
This file contains hidden or 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
| # Parse Arguments | |
| Param( | |
| [Parameter(Mandatory, HelpMessage = "The path for the Manifest.")] | |
| [String] $Manifest | |
| ) | |
| if (-not (Test-Path -Path $Manifest -PathType Leaf)) { | |
| throw 'The Manifest file does not exist.' | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| SERVICE_FILE=nextdns-catchall.service | |
| SOURCE_FILE_PATH=/data/${SERVICE_FILE} | |
| SYSTEMD_FILE_PATH=/etc/systemd/system/${SERVICE_FILE} | |
| if [ ! -f $SOURCE_FILE_PATH ]; | |
| then | |
| echo "Can't find service file" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| interface Hello { | |
| foo : World; | |
| bar: Number; | |
| array: World[] | |
| } | |
| interface World { | |
| greeting: string; | |
| } |
NewerOlder