Skip to content

Instantly share code, notes, and snippets.

View anatawa12's full-sized avatar

anatawa12 anatawa12

View GitHub Profile
@anatawa12
anatawa12 / healthcheck.sh
Last active March 12, 2025 09:56
A small script to check if Nirila Misskey is healthy, and send alert to a discord webhook if it's not.
#!/bin/sh
# A small script to check if Nirila Misskey is healthy, and send alert to a discord webhook if it's not.
#
# Optionally, you can send webhook even if it's healthy to confirm that the script is working.
#
# This script is depending on /healthz endpoint of Misskey added in 2024.5.0 so your Misskey must be at least that version.
#
# This script is Published at https://gist.github.com/anatawa12/95dfcbe21271bbc6b6ad58398f2ba284.
# You may get the latest version from there.
#
@anatawa12
anatawa12 / ReflectionExplorer.cs
Last active February 13, 2025 05:19
An inspector that can see all fields with reflection
/*
* Reflection Explorer
* An inspector that can see all fields with reflection
* https://gist.github.com/anatawa12/299d87404c99a12cafb7311c586912ae
*
* `Tools/anatawa12 gists/Reflection Explorer` to open this window.
*
* MIT License
*
* Copyright (c) 2025 anatawa12, Planeta K.K.
@anatawa12
anatawa12 / BakeOverrideController.cs
Last active December 16, 2024 17:27
BakeOverrideController
/*
* Bake Override Controller
* The tool to bake Animator Override Controller to Animator Controller.
* https://gist.github.com/anatawa12/10b3ac3b4e7f6603e5ca5a91e50fe2b7
*
* Click `Tools/anatawa12 gists/ApplyOverrideController` to open this window,
* and set Animator Override Controller to `Override Controller` field, and click `Bake` button.
*
* MIT License
*
@anatawa12
anatawa12 / SimpleVRCSDKApiCheck.sh
Created December 12, 2024 00:15
SimpleVRCSDKApiCheck
#!/bin/bash
set -eu
UNITY="/Applications/Unity/Hub/Editor/2022.3.6f1/Unity.app/Contents/MacOS/Unity"
UNITY="/Applications/Unity/Hub/Editor/2022.3.22f1/Unity.app/Contents/MacOS/Unity"
clear_and_install() {
local FOLDER="$1"
local PACKAGE="$2"
@anatawa12
anatawa12 / SaveIconTextureOfAsset.cs
Last active December 9, 2024 12:02
tool to save asset icon to png file
/*
* SaveIconTextureOfAsset
* tool to save asset icon to png file
*
*
* https://gist.github.com/anatawa12/06751ee6e6b64cc30cee89b8dd2c3ea4
*
* Click `Tools/anatawa12 gists/SaveIconTextureOfAsset` to open this window.
*
* MIT License
@anatawa12
anatawa12 / ProjectWindowTypeToSelect.cs
Last active October 25, 2024 08:16
Typing file name in project window will select the file starts with the name.
/*
* Quick search with typing file name in project window.
* https://gist.github.com/anatawa12/f64acfa804d285f5640dca79536d9937
*
* Typing file name in project window will select the file starts with the name.
* This is very similar to finder's quick search.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / RemoveUnusedAnimatorParameters.cs
Last active September 22, 2024 08:50
Simple tool to remove unused animator parameter from animator controller
/*
* RemoveUnusedAnimatorParameters
* Simple tool to remove unused animator parameter from animator controller
* https://gist.github.com/anatawa12/9d6d69fdb042d636cc640f85ce0c5fae
*
* Click `Tools/anatawa12 gists/RemoveUnusedAnimatorParameters` to open this window.
*
* MIT License
*
* Copyright (c) 2023 anatawa12
@anatawa12
anatawa12 / shuffle-guid-in-folder.ts
Created August 26, 2024 08:47
simple tool to shuffle guid of unity asset file in folder
#!/bin/sh
":" /*
exec deno run --allow-read --allow-write "$0" "$@"
exit $?
":" */
const folder = Deno.args[0];
if (!folder) {
console.error("Usage: shuffle-guid-in-folder.ts <folder>");
@anatawa12
anatawa12 / gc-entries-in-asset,ts
Created August 25, 2024 15:32
This script removes all entries in the unity asset file that are not needed internally
#!/usr/bin/env node
/*
* This script removes all entries in the asset file that are not needed.
* Please note that this doesn't consider external references.
*/
const fs = require('fs');
const path = process.argv[2];
@anatawa12
anatawa12 / CreateEmptyVRChatAvatar.cs
Last active August 21, 2024 08:36
CreateEmptyVRChatAvatar: Fast way to create a new empty VRChat avatar.
/*
* CreateEmptyVRChatAvatar
* Fast way to create a new empty VRChat avatar.
* https://gist.github.com/anatawa12/2acd16939ef597895d8298ae97ba4122
*
* Left Click hierarchy and select `Create Empty VRChat Avatar` to create a new empty VRChat avatar.
*
* Empty VRChat Avatr will have:
* - VRC Avatar Descriptor
* - Pipeline Manager