Skip to content

Instantly share code, notes, and snippets.

@autch
autch / lspci-v.txt
Created July 20, 2022 01:18
lspci -v of Donki NANOTE NEXT
00:00.0 Host bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge (rev 0b)
DeviceName: Onboard - Other
Subsystem: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge
Flags: bus master, fast devsel, latency 0
00:00.1 Signal processing controller: Intel Corporation Device 5a8c (rev 0b)
DeviceName: Onboard - Other
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at 92110000 (64-bit, non-prefetchable) [size=32K]
Capabilities: [d0] Power Management version 3
@autch
autch / config-5.18.2-nnnext.diff
Created July 20, 2022 00:53
diff of kconfig to enable touchscreen and sound in Donki NANOTE NEXT
--- config-5.18.0-0.bpo.1-amd64 2022-07-19 15:06:59.676669969 +0900
+++ src/linux-source-5.18/.config 2022-07-19 15:06:11.544953010 +0900
@@ -2,7 +2,7 @@
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.18.2 Kernel Configuration
#
-CONFIG_CC_VERSION_TEXT="gcc-10 (Debian 10.2.1-6) 10.2.1 20210110"
+CONFIG_CC_VERSION_TEXT="gcc (Debian 10.2.1-6) 10.2.1 20210110"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100201
[ 0.000000] microcode: microcode updated early to revision 0x48, date = 2021-11-16
[ 0.000000] Linux version 5.18.0-0.bpo.1-amd64 ([email protected]) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT_DYNAMIC Debian 5.18.2-1~bpo11+1 (2022-06-14)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.18.0-0.bpo.1-amd64 root=UUID=3369fba3-75c0-4803-9991-27c10788830a ro fbcon=rotate:1 quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[ 0.000000] x86/fpu: xstate_offset[3]: 576, xstate_sizes[3]: 64
[ 0.000000] x86/fpu: xstate_offset[4]: 640, xstate_sizes[4]: 64
[ 0.000000] x86/fpu: Enabled xstate features 0x1b, context size is 704 bytes, using 'compacted' format.
@autch
autch / fix-fov.py
Last active April 15, 2022 08:29
Fix FOV distortion in VRChat camera, inspired from https://gist.github.com/chigirits/55d6eed4396ed5da64878af2b43111ed
import argparse
import functools
import glob
import itertools
import multiprocessing as mp
import os
import os.path
import subprocess
import sys
@autch
autch / filetime_to_epoch.c
Created November 29, 2021 11:48
Get FILETIME (Windows) value as of 1970-01-01T00:00:00Z
#include <windows.h>
#include <stdio.h>
int main()
{
SYSTEMTIME st;
FILETIME ft;
ULARGE_INTEGER ulft;
// 1970-01-01T00:00:00Z
@autch
autch / Dockerfile
Created November 15, 2021 01:56
Mirakurun exporter for Prometheus
FROM alpine:3.11
LABEL maintainer "collelog <[email protected]>"
EXPOSE 9684
WORKDIR /usr/local/
RUN set -eux && \
apk upgrade --update && \
apk add --no-cache python3 tzdata && \
@autch
autch / gist:5389d4688df98d7a590e6cd24a4d4b8d
Created October 23, 2021 11:35
unable to assemble racingbikini_manual and shiika_1.10, avatartools says NRE
NullReferenceException: Object reference not set to an instance of an object
KurotoriTools.KurotoriUtility.GetBonePath (UnityEngine.Transform rootBone, UnityEngine.Transform target) (at Assets/KurotoriTools/KurotoriUnityLib/Editor/KurotoriUtility.cs:166)
KurotoriTools.AvatarAssemblerCore.CopyMesh (UnityEngine.GameObject assembledObject, UnityEngine.GameObject parts, KurotoriTools.BonePathInfo assembledInfo, KurotoriTools.BonePathInfo partsInfo, System.Collections.Generic.List`1[UnityEngine.SkinnedMeshRenderer]& newAssembledMeshList) (at Assets/KurotoriTools/AvatarTools/Editor/AvatarAssemblerCore.cs:633)
KurotoriTools.AvatarAssemblerCore.CopyAvatarParts (UnityEngine.GameObject assembledAvatar) (at Assets/KurotoriTools/AvatarTools/Editor/AvatarAssemblerCore.cs:500)
KurotoriTools.AvatarAssemblerCore.CreateAssembledAvatar (System.String name) (at Assets/KurotoriTools/AvatarTools/Editor/AvatarAssemblerCore.cs:331)
KurotoriTools.AvatarAssemblerUI.Assemble () (at Assets/KurotoriTools/AvatarTools/Editor/UI/AvatarAsse
@autch
autch / arrange_files.py
Created October 10, 2021 10:08
既存の VRChat カメラ画像のフォルダを open beta (as of Oct 10, 2021) のカメラ画像のフォルダ分けに合わせる
import os
import shutil
import glob
import re
GLOB_PATTERN = 'VRChat_*_*.png'
TIME_PATTERN = r'(?P<ym>\d{4}-\d{2})-\d{2}_\d{2}-\d{2}-\d{2}.\d{3}'
re_time = re.compile(TIME_PATTERN)
@autch
autch / getloop.c
Created September 28, 2021 03:52
CSTMのループ情報を LOOPSTART/LOOPLENGTH に変換して出力
#include <stdio.h>
#include <stdint.h>
// reference: https://www.3dbrew.org/wiki/BCSTM
#define CSTM_SIGNATURE 'MTSC'
#define CSTM_LITTLE_ENDIAN 0xfeff
#define CSTM_REF_TYPE_INFO 0x4000
@autch
autch / encode.py
Last active May 6, 2025 17:08
VRChat で連写した画像をまとめて動画にする、要 FFmpeg
#!/usr/bin/env python
import argparse
import subprocess
import glob
FFMPEG = ["ffmpeg", "-hide_banner", "-y",
"-f", "concat",
("-r", lambda args: str(args.fps)),
("-i", lambda args: args.input),