Skip to content

Instantly share code, notes, and snippets.

<?php
$str = "к скалам бурым";
print "ru_soundex($str) = " . ru_soundex($str) . "<br />\r\n";
$str = "с каламбуром";
print "ru_soundex($str) = " . ru_soundex($str) . "<br />\r\n";
$str = "с калом бурым";
print "ru_soundex($str) = " . ru_soundex($str) . "<br />\r\n";
docker run -d \
--name hassio_supervisor \
--privileged \
--restart no \
--network bridge \
--network-alias supervisor \
--network-alias 55181c99d6f4 \
--cap-add=NET_ADMIN \
--security-opt apparmor=hassio-supervisor \
--security-opt label=disable \
@skrashevich
skrashevich / openweathermap.yaml
Last active June 6, 2024 03:46
OpenWeatherMap sender
blueprint:
name: Send Weather Data to OpenWeatherMap (v0.1.3.2)
source_url: https://gist.github.com/skrashevich/a181955d14e9bb9c1ffbab3a94569600
description: Automate sending weather data to OpenWeatherMap every 15 minutes.
domain: automation
input:
api_key:
name: API Key
description: Your OpenWeatherMap API Key
selector:
POST /tes-hub/auth/token HTTP/1.1
Host: api.tes.store
Content-Type: application/json
User-Agent: TES_Store/1 CFNetwork/1494.0.7 Darwin/23.4.0
Connection: keep-alive
baggage: sentry-environment=production,sentry-public_key=d30a351f341b47b592a2b8f7b141d9e1,sentry-release=store.tes.application%401.4.4%2B1,sentry-trace_id=86254886dc434048a54fe062ab90f96e
Accept: application/json
Accept-Language: ru
Content-Length: 214
Accept-Encoding: gzip, deflate, br
@skrashevich
skrashevich / beta-blueprint-svk.yaml
Last active February 4, 2024 17:54
Frigate Notifications (0.12.0.3-2)
blueprint:
name: Frigate Notifications (0.12.0.3-2)
description: |
## Frigate Notifications
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
@skrashevich
skrashevich / yet_another_motion_automation.yaml
Created May 8, 2022 15:51 — forked from networkingcat/yet_another_motion_automation.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
blueprint:
name: MQTT - Philips Hue Dimmer
description: 'Control lights with a Philips Hue Dimmer Switch.
The top "on" button will turn the lights on to the last set brightness.
Dim up/down buttons will change the brightness using predefined step and can be
pressed and hold until the brightness is satisfactory.
blueprint:
name: Zigbee2MQTT - Legrand 1-Button Switch
description: Automate Legrand 1-Button Switch via Zigbee2MQTT.
domain: automation
input:
switch:
name: Legrand 1-Button Switch
description: Legrand 1-Button Switch to use
selector:
entity:
@skrashevich
skrashevich / legrand_2button.yaml
Last active January 14, 2022 15:31
Zigbee2MQTT - Legrand 2-Button Switch
blueprint:
name: Zigbee2MQTT - Legrand 2-Button Switch
description: Automate Legrand 2-Button Switch via Zigbee2MQTT.
domain: automation
input:
switch:
name: Legrand 2-Button Switch
description: Legrand 2-Button Switch to use
selector:
entity:
@skrashevich
skrashevich / keybase.md
Created March 1, 2021 19:16
keybase.md

Keybase proof

I hereby claim:

  • I am skrashevich on github.
  • I am skrashevich (https://keybase.io/skrashevich) on keybase.
  • I have a public key ASC1OOoe_1gp45keSC-pKCz6fLptaW1wGyyuytPDt_V6nAo

To claim this, I am signing this object: