Skip to content

Instantly share code, notes, and snippets.

View rvdlee's full-sized avatar

Rob van der Lee rvdlee

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC6pYEIMoT0KDGFVdu7hB3DlpLz9RmVruqk0FGK5LzyMxjpi45gwLAMzYLZTjU+isYTV/SW+jpLWU2sFsipYMYtDNtltwQVKDxWvEaYJONm1VS1dlRZWJJ+4veRJykQ8XKN/5IzWpGVW446DFOowfl5MVafDcHOKglFvOaF0Xvre3X8DLNWRhKjikO8cqGyRoRwAW+OfyJSgo/jA8EPlAAEtfmrKFJi/CotfBNOMxeVlLdBGP6vBi7Y3NEZqDaRSvDuaHaRS/FTGeV3ZtgLE1TzTbMuoaeix4Fd/lCV1JaTbO+zsgNPTlmY1dVdZ8BSzTC6uk9fB9xdKAboY1XsGelTFnp7a3gStuChudTSJi2+eYtCja3rTpN6jHl3GkH0B/38eCZ/kGF34teAON+qpCnDEwk34Sp0MCQ+G7D4Qcjfmxao9SQl91UO1Bu1wUUOMloRwPEhVTHdqhVEUjTEjTkowoeIvI/VOyl8VvNzHJllyrHlvro5jn5vPCB+Qj4ewCc= rob@DESKTOP-10GHVOV
@rvdlee
rvdlee / timed_motion_light_plus_light_strength_brightness.yaml
Created April 9, 2021 08:42
Adding dimtime to the original script.
blueprint:
name: Timed Motion-activated Dimmable Light
description: Turn on a light when motion is detected within a certain time contraint.
domain: automation
source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
input:
motion_entity:
name: Motion Sensor
selector:
entity:
blueprint:
name: Timed Motion-activated Light
description: Turn on a light when motion is detected within a certain time contraint.
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
# Encoding piped string
cat myexamplefile.txt | base64
# Decoding piped string
cat mybase64encodedfile.txt | base64 -d
public function unreadable(string $name, int $number, AwesomeInterface $object)
{
// Magic
}
public function readable(
string $name,
int $number,
AwesomeInterface $object
) {
```yaml
%class=line-numbers
product:
- sku : BL394D
quantity : 4
description : Basketball
price : 450.00
- sku : BL4438H
quantity : 1
description : Super Hoop
apt-get moo
_ _
(_\___( \,
)___ _ Have you smashed some milk today?
/( (_)-(_) /
,---------' \_
//( ',__,' \ (' ')
// ) '----'
'' ; \ .--. ,/
| )',_,'----( ;
```bash
%data-src=https://gist.githubusercontent.com/EpicSoftworks/15247d7a9acc8e316f7522e4d17a144c/raw/99cb2c96b2910b25cb2f63163a2a2deabd616d98/pelican-prismjs-example-filehighlight-code
%data-host=localhost
%data-user=rob
%data-output=2-20
```