引っ越しをして宅内ネットワーク環境を整備する機運になったので配線を引き回した。
ネットワーク構成は次のように設計した。
図
| [Unit] | |
| Description=zram compressed RAM swap (primary, pri=100) | |
| After=local-fs.target | |
| Before=swap.target | |
| [Service] | |
| Type=oneshot | |
| RemainAfterExit=yes | |
| ExecStartPre=-/sbin/modprobe zram num_devices=1 | |
| ExecStart=/bin/sh -c "echo zstd > /sys/block/zram0/comp_algorithm; echo 16G > /sys/block/zram0/disksize; mkswap /dev/zram0; swapon -p 100 /dev/zram0" |
| { | |
| "description": "[Safari] Mouse button 4/5 to Back/Forward", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "pointing_button": "button4" | |
| }, | |
| "to": [ | |
| { |
| import time | |
| import board | |
| import neopixel | |
| import touchio | |
| import usb_hid | |
| from adafruit_hid.keyboard import Keyboard | |
| from adafruit_hid.keycode import Keycode | |
| from rainbowio import colorwheel | |
| pixels = neopixel.NeoPixel(board.NEOPIXEL, 4) |
| [package] | |
| name = "check-adapter-limit" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "0ac9ce002656565ccd05b889f5856f4e2c38fa73" } | |
| async-std = { version = "1.10.0", features = ["attributes"] } | |
| [[bin]] |
| #include <stdio.h> | |
| #include "esp_err.h" | |
| #include "esp_log.h" | |
| #include "esp_vfs_fat.h" | |
| #include "driver/sdspi_host.h" | |
| #include "driver/spi_common.h" | |
| #include "sdmmc_cmd.h" | |
| #include "M5Unified.h" | |
| static const char *TAG = "main"; |
| *://github-wiki-see.page/* | |
| *://githubhelp.com/* |
| #!/usr/bin/env python3 | |
| from urllib.request import * | |
| import xml.etree.ElementTree as ET | |
| headers = {'Origin': 'package:dial.py'} | |
| class Dial: | |
| appUrl = '' | |
| appName = '' |