Skip to content

Instantly share code, notes, and snippets.

View ruruke's full-sized avatar
💭
I may be slow to respond.

ruru ruruke

💭
I may be slow to respond.
View GitHub Profile
@Narazaka
Narazaka / ActualPerformanceWindow.cs
Created January 9, 2024 11:21 — forked from anatawa12/ActualPerformanceWindow.cs
A window to see actual performance rank on building avatars.
/*
* Actual Performance Info Window
* https://gist.github.com/anatawa12/a4bb4e2e5d75b4fa5ba42e236aae564d
*
* Copy this cs file to anywhere in your asset folder is the only step to install this tool.
*
* A window to see actual performance rank on building avatars.
* When you click the `Build & Publish` button, this class will compute actual performance rank show you that.
*
* MIT License
@greymd
greymd / sudo新一.md
Last active April 30, 2025 05:47
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@tsubaki
tsubaki / AutoSave.cs
Last active May 4, 2025 15:01
Auto Save scene(& prefab). and backup/rollback scene
using System.Collections;
using UnityEditor;
using UnityEngine;
using System.IO;
[InitializeOnLoad]
public class AutoSave
{
public static readonly string manualSaveKey = "autosave@manualSave";