Skip to content

Instantly share code, notes, and snippets.

@sarog
sarog / zen32_zwavejs2mqtt.yaml
Created June 6, 2022 15:06 — forked from Matt-PMCT/zen32_zwavejs2mqtt.yaml
HASS Blueprint for ZEN32 Scene Switch and zwavejs2mqtt
blueprint:
name: ZEN32 (Z-WaveJS2MQTT)
description: Create automations for the Zooz ZEN32 switch using the zwavejs2mqtt (MQTT!). Assumes you expose the main relay as a switch and the 5 scenes as sensors (current default behavior of zwavejs2mqtt).
domain: automation
input:
zooz_switch:
name: Zooz Switch From MQTT
description: Actual switch/relay element
selector:
entity:
@sarog
sarog / all_email_provider_domains.txt
Created April 26, 2022 19:53 — forked from ammarshah/all_email_provider_domains.txt
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@sarog
sarog / FreeBSD_mount_img_files.md
Created July 28, 2021 21:31 — forked from yzgyyang/FreeBSD_mount_img_files.md
FreeBSD mount img files

Determine the file system by using the file-utility.

file image.img

Use mdconfig to link the IMG image to a virtual device.

mdconfig -a -t vnode -f /path/to/image.img -u 0
@sarog
sarog / Java8DateTimeExamples.java
Created March 6, 2019 13:07 — forked from mscharhag/Java8DateTimeExamples.java
Examples for using the Java 8 Date and Time API (JSR 310)
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {