Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AutoJoin</key>
<true/>
<key>CaptiveBypass</key>
create image:
docker build -t signapk:latest .
sign apk:
docker run --rm -e OPTION="-w" -v $PWD:/data signapk:latest ./update.zip ./update_signed.zip
@mzyy94
mzyy94 / 2_5G_switch.md
Last active June 23, 2023 05:07
network-switch

中華10G/2.5Gスイッチを基幹に導入した

引っ越しをして宅内ネットワーク環境を整備する機運になったので配線を引き回した。

ネットワーク設計

ネットワーク構成は次のように設計した。

#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p procon
cd procon
echo 0x057e > idVendor
echo 0x2009 > idProduct
echo 0x0200 > bcdDevice
echo 0x0200 > bcdUSB
echo 0x00 > bDeviceClass
@mzyy94
mzyy94 / code.py
Created November 26, 2022 02:45
Adafruit Neo Trinkey
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)
@mzyy94
mzyy94 / Cargo.toml
Created March 7, 2022 11:12
Check wgpu Vulkan limits on Raspberry Pi 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]]
@mzyy94
mzyy94 / main.cpp
Created January 24, 2022 11:26
Write display data
#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";
@mzyy94
mzyy94 / uBlacklist.txt
Created November 30, 2021 11:53
Block GitHub copy sites
*://github-wiki-see.page/*
*://githubhelp.com/*