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 / applist.txt
Last active January 14, 2022 19:42
MobiControl Dynamic Kiosk HTML Template
Package 1|launch://com.company.package1|data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAZElEQVR42u3QAQ0AAAQAMPpoLSg5zB/hWRMdj6UAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBBw3wKB4HPBZxtNLQAAAABJRU5ErkJggg==
Title 2|file://mnt/sdcard/report.pdf|file:///SDCard/images/Title2.jpg
Browse Website|browse://www.example.com|file:///SDCard/images/Website.jpg
Package 4|launch://com.company.package4|data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAEElEQVR42mNk+P+/nmEEAwB6pgJ/X9KuVAAAAABJRU5ErkJggg==
Notepad Demo|intent://com.google.provider.NotePad/notes/1#Intent;scheme=content;action=android.intent.action.EDIT;component=com.example.android.notepad/.NoteEditor;end|data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAZElEQVR42u3QAQ0AAAQAMGLILyg5zB/hGTUdj6UAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBBw3wI9K28BURnnnAAAAABJRU5ErkJggg==
Title 6|launchalways://com.company.pack
@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 {

Here is a simple method to fix Ruby 2.3.x OpenSSL connectivity errors (on Windows) when trying to install gems via rubygems. This method is the cleanest way to solve the problem and does not rely on you disabling any secure/https connectivity options in Ruby. Essentially, you are adding the missing CA certificate into the Ruby ssl_certs directory to complete the chain of trust.

Sample error messages:

*::Error::ConnectionFailed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

or:

connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)