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
| # Logfiles under /var/log/hosts per rsyslog.d config | |
| /var/log/hosts/*/*.log | |
| { | |
| rotate 7 | |
| daily | |
| missingok | |
| notifempty | |
| delaycompress | |
| compress | |
| postrotate |
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
| { | |
| "MaxStaticBitrate": 7789442, | |
| "MaxStreamingBitrate": 7789442, | |
| "MusicStreamingTranscodingBitrate": 192000, | |
| "DirectPlayProfiles": [ | |
| { | |
| "AudioCodec": "vorbis,opus", | |
| "Container": "webm", | |
| "Type": "Video", | |
| "VideoCodec": "vp8" |
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
| #!/bin/bash | |
| if [ -f /etc/docker/daemon.json ] ; then | |
| echo "/etc/docker/daemon.json already exists, refusing to overwrite it." >&2 | |
| exit 1 | |
| fi | |
| cat <<EOF | sudo tee /etc/docker/daemon.json | |
| { "userns-remap": "default" } | |
| EOF |
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
| # | |
| # Basic working Frigate NVR config with internal test pattern generation | |
| # - For intel graphics | |
| # - With PCI Coral TPU | |
| # - Recording disabled by default (enable per camera) but default retention configured | |
| # - With ffmpeg-generated test pattern as initial camera for debugging | |
| # WARNING Disable test pattern camera and go2rtc config to minimize CPU usage once initial setup is complete | |
| # | |
| 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
| # eWeLink ZB GW03 Modified ESPHome Config | |
| # | |
| # - Add debug text sensors | |
| # - Add bluetooth_proxy | |
| # - Add web_server for offline reflash | |
| # | |
| # Important documentation from upstream | |
| # | |
| # - https://github.com/syssi/esphome-zb-gw03 | |
| # - [Flash ESPHome and use the ZB-GW03 as Zigbee Coordinator](https://github.com/syssi/esphome-zb-gw03/blob/main/docs/flashing.md) |
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
| /* | |
| * Unload any previous media and keys from <video> element | |
| **/ | |
| const resetVideoElt = async (videoElt) => { | |
| const videoEltEmptied= new Promise((resolve) => { videoElt.addEventListener('emptied', (e) => { | |
| //console.log(e); | |
| resolve(); | |
| }, { once: true }) }); | |
| videoElt.pause(); |
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
| const reportableEvents = [ | |
| 'abort', | |
| //'canplay', | |
| //'canplaythrough', | |
| //'durationchange', | |
| 'emptied', | |
| 'encrypted', | |
| 'ended', | |
| 'error', | |
| 'loadeddata', |
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
| import struct | |
| import zlib | |
| testVector = ( | |
| # input is ascii string | |
| bytearray(ord(c) for c in "123456789"), | |
| bytearray([ 0xCB, 0xF4, 0x39, 0x26]), | |
| ) | |
| crc = zlib.crc32(testVector[0]) |
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
| import asyncio | |
| import habluetooth | |
| import logging | |
| from bleak_esphome import APIConnectionManager, ESPHomeDeviceConfig | |
| from contextlib import asynccontextmanager | |
| logger = logging.getLogger(__name__) |
OlderNewer