$ diskutil list
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *30.8 GB disk2
1: Windows_FAT_32 bootfs 536.9 MB disk2s1
2: Linux 30.2 GB disk2s2
$ diskutil umountDisk disk2
Unmount of all volumes on disk2 was successful
URL=$(curl -s https://api.github.com/repos/Openwrt-Passwall/openwrt-passwall2/releases/latest | jq -r '.assets[]|select(.name=="passwall_packages_ipk_arm_cortex-a9_vfpv3-d16.zip").browser_download_url')
wget -O bundle.zip $URL
unzip -j bundle.zip '*-sslocal_*.ipk'
tar xzf *-sslocal_*.ipk ./data.tar.gz
tar xzf data.tar.gz ./usr/bin/sslocal --strip-components=3- go2rtc: https://github.com/AlexxIT/go2rtc/releases
- ffmpeg: https://www.gyan.dev/ffmpeg/builds/
- srvany-ng: https://github.com/birkett/srvany-ng/releases
- arial.ttf: https://font.download/font/arial
C:\
└───Program Files
$ cd "C:\Program Files\SnowLuma"
# method A
$ mklink /d current v1.10.2
# method B
$ powershell -c "New-Item -ItemType SymbolicLink -Path current -Target v1.10.2"
$ dir
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/sh | |
| # | |
| # File: /etc/hotplug.d/button/00-custom | |
| # | |
| logger -t "Button-Event" "Button: $BUTTON | Action: $ACTION | Duration: $SEEN" | |
| if [ "$BUTTON" = "BTN_0" ] && [ "$ACTION" = "released" ] && [ "$SEEN" -gt 1 ]; then | |
| logger -t "Button-Debounce" "Valid button release processed." | |
| fi |
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
| $ open https://github.com/settings/developers | |
| - Client ID: xxxxxx | |
| - Client Secret: xxxxxxxxxxxx | |
| $ docker compose exec --user root node-red bash | |
| >>> npm install passport-github2 | |
| >>> vi settings.js | |
| >>> exit | |
| $ docker compose restart |
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
| RULE1 ON button1#state DO publish button %value% ENDON | |
| RULE2 ON mqtt#connected DO Subscribe motion, home/zigbee2mqtt/0x1234567890abcdef, occupancy ENDON ON Event#motion=true DO power 3 ENDON ON Event#motion=false DO power 4 ENDON |
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
| # Doc: https://wiki.archlinux.org/title/Udev | |
| # | |
| # udevadm info --attribute-walk --name=/dev/input/event2 | |
| # udevadm control --reload | |
| # udevadm trigger | |
| # | |
| KERNEL=="event[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="input", ATTRS{id/vendor}=="2717", ATTRS{id/product}=="32b1", SYMLINK+="input/by-id/xiaomi-bt-rc", SYMLINK+="input/by-uuid/%s{uniq}" | |
| KERNEL=="event[0-9]*", SUBSYSTEM=="input", SUBSYSTEMS=="input", ATTRS{id/vendor}=="00d2", ATTRS{id/product}=="0580", SYMLINK+="input/by-id/xiaoyi-bt-rc", SYMLINK+="input/by-uuid/%s{uniq}" |
NewerOlder
