Skip to content

Instantly share code, notes, and snippets.

View mdziekon's full-sized avatar

Michal Dziekonski (mdz) mdziekon

  • Warsaw, Poland
View GitHub Profile
mdziekon / ha_lovelace_autoentity_potentially_offline_mqtt_devices.yaml
Last active December 10, 2022 02:52
type: custom:auto-entities
template: >-
set offline_seconds = 12 * 60 * 60
set device_first_entity = integration_entities('mqtt')
| map('device_id')
mdziekon / ha_lovelace_vacuum_selective_cleaning_button.yaml
Created November 29, 2022 18:36
type: custom:button-card
action: call-service
service: script.vacuum_clean_segments
confirmation: true
service_data: {}
target: {}
enabled: >-
[[[ return states['group.VACUUM_ROOMS_GROUP'].state !== 'on' ||
mdziekon / ha_blueprints__thermostat_target_temp_setter.yaml
Last active October 27, 2022 00:41
Smart Thermostat Controller with Window open/close detection. Persists previous thermostat target temperature and later restores it from a variable.
name: Smart Thermostat Controller - Set target temperature
A script to set the target temperature on a thermostat device,
which works with the rest of "Smart Thermostat Controller" ecosystem.
Namely, when a thermostat is in "paused state" (eg. a window has been opened),
instead of blindly setting the target, it will store the target value to be later restored
when normal operation is resumed (eg. a window has been closed).
When a thermostat is in "normal state" though, it will simply set the target temperature directly.

UniEngine Individual Contributor License Agreement

Thank you for your interest in contributing to the UniEngine project (“UniEngine”). In order to clarify the intellectual property license granted with Contributions from any person or entity, Maintainers („Maintainers“) of the UniEngine project, must have a Contributor License Agreement („Agreement“) that has been signed by each contributor, indicating agreement to the license terms below. This license is for your protection as a contributor as well as the protection of UniEngine and its users; it does not change your rights to use your own Contributions for any other purpose. Please read this agreement carefully before signing.

You accept and agree to the following terms and conditions for your past, present and future Contributions submitted to UniEngine. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

1. Definitions

„You“ (or „Your“) shall mean the copyright owner o

mdziekon /
Last active March 1, 2024 04:42
XPS 15 9570 - DualBoot with Encryption (Windows 10 with BitLocker + Ubuntu 18.04 with LVM on LUKS)
  • Based on
  • Installation date: 15-09-2018
  • Additional notes based on my own experience
  • The process describes a completely fresh installation with a complete repartitioning, however it should work fine when Windows is already installed (eg. brand new machine with Windows preinstalled).
  • The process was conducted on Dell's XPS 15 9570 (2018) with specs:
    • CPU: i7-8750H
    • Screen: 4K with Touch
    • RAM: 16 GB (original) / 32 GB (manually upgraded)
  • Drive: 512 GB (SK Hynix PC401)
mdziekon / github.expand-all-diffs.userscript.js
Last active August 1, 2017 10:45
Simple & hackish "Expand all diffs" button for Github PRs
// ==UserScript==
// @name Github Expand All Button
// @namespace mdziekon_github_expandall
// @include /http(s)*://(.*?)*?)/pull/(.*?)/
// @version 1
// @grant none
// ==/UserScript==
let evtListener;