Skip to content

Instantly share code, notes, and snippets.

@kinneko
kinneko / LYWSD03MMC.sh
Created July 22, 2020 02:44
LYWSD03MMCの温度湿度バッテリ電圧をgattoolで取得するシェルスクリプト(0度以下は未対応) オリジナル:http://www.d0wn.com/using-bash-and-gatttool-to-get-readings-from-xiaomi-mijia-lywsd03mmc-temperature-humidity-sensor/
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 [Bluetooth MAC Addr]"
exit 1
else
MAC=$1
fi
#bt=$(timeout 15 gatttool -b A4:C1:38:8E:1D:8E --char-write-req --handle='0x0038' --value="0100" --listen)
@kinneko
kinneko / gist:3d3c261c4e0c39de15676915ee405d4d
Created January 28, 2025 00:35
M5LLM Buildrootのファイル一覧
kinneko@buildroot:~/LLM_buildroot-external-m5stack$ find ./ | wc
830 830 51260
kinneko@buildroot:~/LLM_buildroot-external-m5stack$ find ./ -ls | awk 'BEGIN {OFS="\t"} {print $1, $2, $3, $4, $9, $11, $12}'
3149865 4 drwxrwxr-x 13 27 ./
3150192 4 drwxrwxr-x 2 27 ./provides
3150193 4 -rw-rw-r-- 1 27 ./provides/toolchains.in
3150158 4 drwxrwxr-x 2 27 ./docs
3150166 4 -rw-rw-r-- 1 27 ./docs/ota.md
3150159 4 -rw-rw-r-- 1 27 ./docs/audio.md
@kinneko
kinneko / gist:aa0bd6dc06db2e0f670522d910764ecb
Created May 28, 2025 06:27
macOS 11にpandocを入れる
% brew install pandoc
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:fd162df7a06190ee800a9e6afd28f4466d33548821a480ba043cd927b44d60f7
######################################################################### 100.0%
==> Pouring portable-ruby-3.4.4.arm64_big_sur.bottle.tar.gz
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae