$ sudo vim /etc/exports
# export all
$ sudo exportfs -r
$ sudo exportfs -v
# unexport all
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}" |
Official Docs: https://go.dev/doc/install
Open: https://go.dev/dl/
$ wget https://go.dev/dl/go1.26.1.linux-arm64.tar.gz
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 | |
| NAME=ss-tunnel | |
| VERSION=1.24.0 | |
| PKG_ID=org.duckdns.easypi.$NAME | |
| PKG_NAME=${NAME}_${VERSION}.pkg | |
| DOWNLOAD_URL=https://github.com/shadowsocks/shadowsocks-rust/releases/download/v${VERSION}/shadowsocks-v${VERSION}.aarch64-apple-darwin.tar.xz | |
| DOWNLOAD_DIR=./payload/usr/local/bin | |
| mkdir -p $DOWNLOAD_DIR |
$ docker run --rm -it -v $PWD:/tmp golang:1.23
>>> version=1.9.2
>>> go install github.com/Jigsaw-Code/outline-ss-server/cmd/outline-ss-server@v$version
>>> cd /go/pkg/mod/github.com/\!jigsaw-\!code/outline-ss-server@v$version/cmd/outline-ss-server
>>> sed -i '90s@^@\tslog.LogAttrs(nil, slog.LevelInfo, "TCP: Found client.", slog.String("ID", entry.ID), slog.String("IP", clientIP.String()))@' ../../service/tcp.go
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
| [Interface] | |
| PrivateKey = ****** | |
| Address = 192.168.x.x/24 | |
| DNS = 8.8.x.x | |
| [Peer] | |
| PublicKey = ****** | |
| AllowedIPs = 192.168.x.0/24, 8.8.0.0/16 | |
| Endpoint = x.x.x.x:51820 | |
| PersistentKeepalive = 25 |
I hereby claim:
- I am vimagick on github.
- I am vimagick (https://keybase.io/vimagick) on keybase.
- I have a public key ASCYaaWA0pKAzSqUKYQZKKaFXfQ0OjjeNwQy1sScAWSuKQo
To claim this, I am signing this object:
NewerOlder