This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| merge_mkv_parts.py | |
| Merges multipart MKV files (e.g. movie.part-01.mkv, movie.part-02.mkv, ...) | |
| into a single MKV, with chapters from each part remapped to their correct | |
| timestamps in the merged output. | |
| Requirements: ffmpeg + ffprobe in PATH | |
| Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Apple iCloud Private Relay | |
| # https://support.apple.com/en-us/101555 | |
| mask.icloud.com. | |
| mask-h2.icloud.com. | |
| mask-api.icloud.com. | |
| # Firefox DoH canary | |
| # https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet | |
| use-application-dns.net. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Extract TextStyle info for the text inside slide element based on Body placeholder | |
| * @param {Number} slidenumber Number of the slide to analyze (starting from 1) | |
| */ | |
| function analyseBodyStyles(slidenumber) { | |
| const presentation = SlidesApp.getActivePresentation(); | |
| const slide = presentation.getSlides()[slidenumber-1]; | |
| const body = slide.getPlaceholders().find(ph => ph.asShape().getPlaceholderType() === SlidesApp.PlaceholderType.BODY); | |
| const textRange = body.asShape().getText(); | |
| const textRuns = textRange.getRuns(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Create an image entity showing the DAREBEE daily challenge | |
| # | |
| # https://www.home-assistant.io/integrations/image/ | |
| # https://darebee.com/daily | |
| # https://sequr.be/blog/2023/07/darebee-daily-challenge-on-home-assistant-dashboard/ | |
| # | |
| scrape: | |
| - resource: https://darebee.com/ | |
| scan_interval: 3600 # Every hour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # https://flows.blueforcer.de/flow/jyNg0oGXOX6D | |
| # | |
| # Update the MQTT topic at the bottom of this automation. | |
| # Don't forget to upload year.jpg to your AWTRIX clock in the ICONS folder | |
| # | |
| automation: | |
| - id: awtrix_year_progress | |
| alias: Year Progress | |
| description: Publishes the current year progress in % to the Awtrix clock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Read modbus data from Ginlong Solis inverter | |
| # and send over MQTT | |
| # | |
| # Based on https://github.com/rogersia/Solis-4G | |
| # Includes fixes, small modifcations and refactoring. Migrated to Python3. | |
| # See https://sequr.be/blog/2021/08/reading-ginlong-solis-inverter-over-serial-and-importing-in-home-assistant-over-mqtt/ | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ssh pi@<ip.of.raspberry.pi> # password: raspberry | |
| # Run Hyperion service as root | |
| sudo systemctl disable --now [email protected] | |
| sudo systemctl enable --now [email protected] | |
| # Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /etc/systemd/system/[email protected]. | |
| # Update Message of the Day to check correct service | |
| sudo sed -i 's/pi.service/root.service/' /etc/update-motd.d/10-hyperbian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Waste collection integration | |
| # | |
| # Home Assisant sensor component for Afvalbeheer | |
| # https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer | |
| # | |
| # sensor: | |
| - platform: afvalbeheer | |
| wastecollector: RecycleApp # Change this to match your waste collector | |
| resources: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Requirements | |
| # - Media extractor integration - https://www.home-assistant.io/integrations/media_extractor/ | |
| # - Mini media player (HACS) - https://github.com/kalkih/mini-media-player | |
| # - A smart speaker, e.g. Xiaomi Mi Smart Speaker - https://s.click.aliexpress.com/e/_A0zLJq | |
| # - Some URLs for web radio stations | |
| # - (optional) Images/logos of the radio stations | |
| # configuration.yaml | |
| # ------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://s.click.aliexpress.com/e/_9y4QA5 | |
| # Based on https://gist.github.com/Snipercaine/d8345571563536e9661422c3509d1119 | |
| # And https://community.home-assistant.io/t/working-esphome-config-for-ttgo-esp32-camera-board-with-microphone/126231 | |
| # Note: pins are not the same as in the docs above and even the picture on AE differs from the picture in the box | |
| # | |
| # Folder structure based on Frenck's config | |
| # https://github.com/frenck/home-assistant-config/tree/master/config/esphome | |
| substitutions: | |
| slug: esp32_tcam |
NewerOlder