Skip to content

Instantly share code, notes, and snippets.

View KisaragiEffective's full-sized avatar
🔇
sick

Kisaragi KisaragiEffective

🔇
sick
  • Some(_)
  • Hokkaido, Japan
View GitHub Profile
@lilxyzw
lilxyzw / Downloader.cs
Last active July 15, 2025 14:26
有料パッケージをvpmでインストールしたい場合になんとかできるかもしれないやつです。"ブラウザで"zipをダウンロード後、パッケージのフォルダ内を空っぽにしzipの中身を展開し不要になったダウンロードファイルを削除します。
// This code is licensed under CC0 1.0 Universal.
// https://creativecommons.org/publicdomain/zero/1.0/
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
using UnityEditor;
@mob-sakai
mob-sakai / 00_Unity Internal Feature Samples.md
Last active September 13, 2025 16:39
Unity Internal Feature Samples
@lilxyzw
lilxyzw / UnityVersionFaker.cs
Last active February 27, 2025 06:09
以前は動作していましたがセキュリティチェックの影響で動作せず。CC0で置いておくので必要に応じて編集して使ってください
// This code is licensed under CC0 1.0 Universal.
// https://creativecommons.org/publicdomain/zero/1.0/
#if UNITY_EDITOR && UNITY_2022_3
using HarmonyLib;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using VRC.Core;
@mei23
mei23 / threads_ap_20240322.md
Last active October 20, 2025 12:27
ThreadsのActivityPub Object

ThreadsのActivityPub Object 2024/03/22

取得するには

まず取得するにはちょっとクセがある

  • 該当ユーザーがオプトインしてる必要がある
  • GETに署名を付ける必要がある (MisskeyでもMastodonでもデフォルトで有効なはず)
    • この場合外部からこちらの署名を取得しに来てもらう必要があるため、必然的にインターネットに公開されたサーバーからでないとリクエストできないと思われる。
  • AP対応 (2023/3/22) より前の投稿はおそらく取得できない
  • なんか429を返されることがある。(URLプレビューとかでFacebookとかインスタのプレビュー要求しまっくってるとFacebook系のNWからブロックされる?上記前提条件を満たしてないと非AP要求とみなされてレートでブロックされる?)
@lilxyzw
lilxyzw / mmd_morph_names.txt
Created May 13, 2023 11:36
mmd_morph_names_all.txtは手持ちモーション483個からモーフ使用率を計算したものです。キーフレーム数が2以下、または全てのキーフレームの値が0.01以下のものは扱われていないものとして除外しています。mmd_morph_names.txtは使用率の高いモーフから表記揺れをMMD付属モデルに合わせ、そこから更に厳選したものです。
まばたき
笑い
ウィンク
ウィンク2
ウィンク右
ウィンク2右
はぅ
なごみ
びっくり
じと目
@kiler129
kiler129 / generate_smbios.sh
Created April 12, 2023 07:38
Script to generate real SMBIOS for QEMU
#!/bin/bash
# See https://www.qemu.org/docs/master/system/invocation.html?highlight=smbios#hxtool-4
declare -A smb0
declare -A smb1
declare -A smb2
declare -A smb3
declare -A smb4
declare -A smb11
declare -A smb17
2022.12.15 22:27:22 Log - [Behaviour] OnPlayerJoined vrcbot
2022.12.15 22:27:22 Log - [Behaviour] Initialized PlayerAPI "vrcbot" is remote
2022.12.15 22:27:22 Log - [Behaviour] CacheComponents: ParticleSystems 0, AudioSources 0
2022.12.15 22:27:22 Log - Found SDK2 avatar descriptor.
2022.12.15 22:27:22 Log - [Behaviour] CacheComponents: ParticleSystems 0, AudioSources 0
2022.12.15 22:27:22 Log - Measure Human Avatar Avatar
2022.12.15 22:27:22 Log - [Behaviour] Initialize None Avatar (UnityEngine.Animator) VRCPlayer[Remote] 80105687 8 (ÏÏÏÏÌÏÌÎÏÍÏÏÎÎÏÌÎÌÏÌÍÍÎ) False Blocked
2022.12.15 22:27:22 Log - EyeLookController: found avatar type =VRC_TEMPLATE_01
2022.12.15 22:27:22 Error - [Behaviour] Can't push runtime controller onto a null avatar animator.
2022.12.15 22:27:23 Log - [Behaviour] Destination fetching: wrld_3448f7e4-79a7-4115-a44c-e6221174969f:00219~hidden(usr_32525db8-119c-43b5-ae0b-1c287151a529)~region(jp)~nonce(30DE42E2405AF
@aradarbel10
aradarbel10 / Main.hs
Created December 6, 2022 15:40
A minimalistic example of bidirectional type checking for system F
{-# LANGUAGE StrictData, DerivingVia, OverloadedRecordDot #-}
{-
(compiled with GHC 9.4.2)
-}
{-
HEADS UP
this is an example implementation of a non-trivial type system using bidirectional type checking.
it is...
@makamys
makamys / 1.7.10-security-vulnerabilities.md
Last active August 17, 2025 15:30
1.7.10 Security Vulnerabilities

1.7.10 Security Vulnerabilities

Having been released over 9 years ago, Minecraft 1.7.10 is no longer officially supported, which means it is up to the users to mitigate security vulnerabilities.

I cannot guarantee this list is complete or accurate, this is just a compilation of what I have learned.

Log4J CVE-2021-44228 ("Log4Shell")

Date discovered: 2021-12-10

@buzztaiki
buzztaiki / spdx-license-identifier.md
Last active October 31, 2025 15:19
SPDX-License-Identifierの使い方

SPDX-License-Identifierの使い方

ファイルに一行書くだけでライセンスの宣言ができるやつ。これを使わいなとファイルヘッダにも何行も書く必要があって大変。

SPDX は Software Package Data Exchange の略で、Linux Fundation 傘下の SPDXプロジェクトが定めてる SBOM の規格らしい。SPDX は広範な規格だけど、そのなかに SPDX-ID っていう「ライセンスを簡単に書けるよ」ってやつがあって、それが SPDX-License-Identifier。ということ。多分。

こんな感じで使えばよい: