Skip to content

Instantly share code, notes, and snippets.

@kdorff
kdorff / moisture-1.yml
Created May 18, 2022 02:32
ESPHome code for moisture sensors
# Reads analog data using an ads1115. Three moisture sensors and a battery sensor.
# Goes to sleep for an hour at a time.
# Uses a helper input_boolean to keep it from going to sleep, in case you want to update it.
esphome:
name: moisture-1
platform: ESP32
board: esp32dev
on_boot:
then:
@DivanX10
DivanX10 / Стиральная машина LG. Спрашиваем у Алисы статус стиральной машины
Last active December 1, 2024 19:58
Стиральная машина LG. Спрашиваем у Алисы статус стиральной машины
Для того, чтобы Алиса могла сообщить статус стиральной машины, нужно сделать следующее:
1) Установить интеграцию YandexStation от AlexxIT https://github.com/AlexxIT/YandexStation
2) Установить интеграцию LG ThinQ Devices https://github.com/ollo69/ha-smartthinq-sensors
3) Настроить ключевые слова по данному мануалу https://github.com/AlexxIT/YandexStation#получение-команд-от-станции
4) Настроить последняя активная колонка, это нужно для того, чтобы отвечала та колонка, которой был задан вопрос. Если этого не сделать, то будет отвечать всегда либо одна колонка, либо все, все зависит от того, сколько колонок вы укажете https://gist.github.com/AlexxIT/6a3a1a5ba4c4ebe1fabbec639542d446
5) Создать сенсор для стиральной машины
6) Создать автоматизацию, которая будет срабатывать на ключевое слово
Создайте файлик с любым именем и вставтье этот код. Я деалю это через package. Читаем документацию https://sprut.ai/client/blog/3180
########################################### Сенсор #######################################
@wavezhang
wavezhang / java_download.sh
Last active April 24, 2025 16:32
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active April 23, 2025 14:10
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@bluearth
bluearth / wso2_is_behind_nginx_reverse_proxy_slash_load_balancer
Created September 6, 2016 09:00
wso2 IS behind nginx reverse proxy / load balancer
https://wso2.org/jira/browse/IDENTITY-4309
http://isurad.blogspot.co.id/2016/02/wso2-identity-server-510-behind_18.html
http://xacmlinfo.org/2014/11/16/how-to-developing-identity-server-behind-proxy-or-load-balancer/
@sr75
sr75 / wildcard-ssl-cert-for-testing-nginx-conf.md
Created June 1, 2013 18:35
create a self signed wildcard ssl cert for testing with nginx.conf example

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info