Skip to content

Instantly share code, notes, and snippets.

@autch
autch / bookmarklet.js
Created March 31, 2025 13:42
Twitter (or X) の画像を原寸で表示させるbookmarklet
javascript:window.location.href=((h)=>{u=new URL(h);u.searchParams.set("name","orig");return u.href})(window.location.href)
@autch
autch / IconGUI.cs
Last active October 13, 2024 13:06
/*
* このスクリプトを Assets/Editor/ 以下に置く。
* また PSD のアイコンに使う画像を Assets/Editor/PSD.png として置く。
*/
using UnityEditor;
using UnityEngine;
// code stolen from: https://discussions.unity.com/t/editor-changing-an-items-icon-in-the-project-window/552493/6
[UnityEditor.InitializeOnLoad]
@autch
autch / dmidecode.txt
Created September 11, 2024 01:57
DMI information of Donki NANOTE NEXT, taken in SystemRescueCD 11.02-amd64, Linux 6.6.47-1-lts
# dmidecode 3.6
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Table at 0x79C63000.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: S8A70R100-V005
Release Date: 04/07/2022
@autch
autch / MEXICAN.BAS
Last active March 31, 2025 16:40
The "mexican hat" demo in MS-DOS QBasic, LSI C-86 and DJGPP v2
SCREEN 7
DIM d(160) AS INTEGER
DIM r AS SINGLE, x AS SINGLE, y AS SINGLE, z AS SINGLE
DIM i AS INTEGER, sx AS INTEGER, sy AS INTEGER
DIM zz AS INTEGER, c AS INTEGER
FOR i = 1 TO 159
d(i) = 100
NEXT
@autch
autch / 00README.md
Created July 3, 2024 16:48
PopulateScaleAdjusters: 素体のArmatureにつけたMA Scale Adjusterを対応する服の同名ボーンにコピーするエディタ拡張
#Title 商標公開2020-124414
#Title2 出願者:群馬電機株式会社
!!bg @6 V125 ?o4c ; bass drum
!!sg @8 V127 ?o4c ; snare drum 1
!!Sg @7 V120 ?o4c ; snare drum 2
!!ng @8 V127 ?o4c
!!og @9 V110 ?o4c ; open H.H.
!!hg @10 V110 ?o4c ; closeH.H.
!!cg @11 V120 ?o4c ; crush cymbal
@autch
autch / RefreshSBParams.cs
Created November 27, 2023 13:06
UniVRM-1.x で Play 中に SpringBone パラメータの変更を反映させる
using UnityEngine;
using UniVRM10;
public class RefreshSBParams : MonoBehaviour
{
public GameObject target;
public bool updateEveryFrame;
private Vrm10Instance inst;
// Start is called before the first frame update
@autch
autch / Dockerfile
Created August 9, 2022 20:38
Dockerfile for buiding Linux 5.19-sof for Donki NANOTE NEXT with SOF Audio (Everest ES8336) enabled
FROM debian:bullseye
RUN sed "/^deb /{s/^deb /deb-src /}" < /etc/apt/sources.list > /etc/apt/sources.list.d/bullseye-src.list
RUN bash -c 'echo -e "deb http://deb.debian.org/debian experimental main\n \
deb-src http://deb.debian.org/debian experimental main"' > /etc/apt/sources.list.d/experimental.list
RUN apt-get update \
&& apt-get install -y build-essential git make ccache cpio xz-utils bison flex debhelper-compat dh-exec dh-python openssl bc dwarves \
&& apt-get install -y -t experimental linux-config-5.19 \
@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