The changes on wlan_adapters.yaml is I increased the maximum power on bl-m8812eu2 card to 3100 on mcs 1 & 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
| dtc -I dtb -O dts -o current.dts /boot/dtb/rockchip/rk3566-radxa-zero3.dtb | |
| Change dr_mode = "otg"; to dr_mode = "host";. | |
| dtc -I dts -O dtb -o /boot/dtb/rockchip/rk3566-radxa-zero3.dtb current.dts |
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
| esphome: | |
| name: solar-monitor | |
| friendly_name: solar-monitor | |
| platformio_options: | |
| ## larger stack size required with all registers enable_load_test | |
| ## reduce registers or wait for integration of 2.0.0 arduinoespressif32 | |
| ## not yet working needs 2.0 | |
| build_flags: | |
| - -DCONFIG_ARDUINO_LOOP_STACK_SIZE=32768 |
Xiaomi Smart devices only accept command from the same subnet. This is openwrt configuration I used to fix that.
iot is the smart devices subnet, including xiaomi devices
192.168.10.8 is my Home Assistant IP
192.168.88.232 is xiaomi device IP
uci add firewall nat # =cfg1793c8
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
| from rknn.api import RKNN | |
| ONNX_MODEL = 'yolov8m.onnx' | |
| RKNN_MODEL = 'yolov8m.rknn' | |
| DATASET = './dataset.txt' | |
| QUANTIZE_ON = True | |
| if __name__ == '__main__': | |
| # Create RKNN object |
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
| blueprint: | |
| name: Motion-activated Light Switch | |
| description: Turn on a light when motion is detected. | |
| domain: automation | |
| source_url: https://gist.github.com/gilankpam/8835ad03329c16066e1046cb9ab4c698 | |
| author: Home Assistant | |
| input: | |
| motion_entity: | |
| name: Motion Sensor | |
| selector: |
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 io, sys, itertools | |
| def tail(file, line_count): | |
| BUFFER_SIZE = 1024 | |
| pos = -BUFFER_SIZE | |
| offset = 0 | |
| result_lines = [] | |
| result_line_count = 0 | |
| while result_line_count < line_count: | |
| file.seek(pos, io.SEEK_END) |
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 | |
| set -e | |
| # FOR DEBUG | |
| # print all env var | |
| env | |
| ELB_LISTENER_ARN=arn:...... | |
| ACME_PATH=~/.acme.sh |
-
Clojure is homophonic language, it means the program structure is similar to its syntax
-
Every statement evaluate to one value ex (+ 1 2) => 3
-
( ) is a list
-
Lists are call, first element is operator the rest is arguments
-
No call expression use infix or postfix position
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
| // Merge multiple objects | |
| function deepMerges(...objs) { | |
| return objs.reduce((a, b) => deepMerge(a,b), {}) | |
| } | |
| // Merge two objects | |
| function deepMerge (one, two) { | |
| if (Array.isArray(one) && Array.isArray(two)) { | |
| return one.concat(two) | |
| } |
NewerOlder