Skip to content

Instantly share code, notes, and snippets.

View blackmagezeraf's full-sized avatar
🤤
This time will too pass.

Ali Hussain Abid blackmagezeraf

🤤
This time will too pass.
View GitHub Profile
@adammyhre
adammyhre / InspectorLock.cs
Last active May 1, 2026 03:46
Lock Inspector Icon and Transform Constrain Proportion Icon in Unity
using System.Reflection;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Toggles the Inspector lock state and the Constrain Proportions lock state.
/// </summary>
public static class LockInspector {
static readonly MethodInfo flipLocked;
static readonly PropertyInfo constrainProportions;
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 1, 2026 04:43
set -e, -u, -o, -x pipefail explanation