Skip to content

Instantly share code, notes, and snippets.

View chsxf's full-sized avatar

Christophe SAUVEUR chsxf

View GitHub Profile
@lgarczyn
lgarczyn / AutoSelectAnimation.cs
Last active January 8, 2024 11:42
Unity Editor Script to select an animation in the AnimationWindow when a state is selected in the AnimatorWindow
// Copyright Fleeting Being
// MIT license - https://opensource.org/licenses/MIT
// Inspired by AstralByte's AutoHideUILayer
// https://www.reddit.com/r/Unity3D/comments/6yaiit/free_editor_script_to_automatically_hide_ui_layer/
using System.Linq;
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
namespace Plugins.AutoSelectAnimation.Editor
@havchr
havchr / PivotAdjuster.cs
Last active February 4, 2025 09:08
Unity3DS editor script, context menu for adjusting pivot of a parent object that have children placed around.
using UnityEditor;
using UnityEngine;
namespace Agens
{
#if UNITY_EDITOR
public enum PivotAlignment
{
Min,Mid,Max,
}
@oktomus
oktomus / fork-custom-commands.md
Last active February 15, 2025 11:57
Fork custom commands

With custom commands, you are one shortcut away to run commands thanks to the Quick Launch (Ctrl+P, ⌘+P).

Custom commands can be configured in File > Preferences > Custom commands, or by editing the json file custom-commands.json located in AppData/Local/Fork on Windows and ~/Library/Application Support/com.DanPristupov.Fork/custom-commands.json on MacOS.

Please share your own custom commands :)

How to use

Fork commands are posted as comments on this gist. Press CTRL+F to search for commands.

#!/usr/bin/env node
"use strict";
console.log("This is pid " + process.pid);
setTimeout(function () {
process.on("exit", function () {
require("child_process").spawn(process.argv.shift(), process.argv, {
cwd: process.cwd(),
@ryanjbonnell
ryanjbonnell / gist:3880048
Last active March 23, 2023 18:01
Install Memcache on Mac OS X 10.8 "Mountain Lion"
# memcached requires libevent
cd /usr/local/src
curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz
tar -xvzf libevent-2.0.17-stable.tar.gz
cd libevent-2.0.17-stable*
./configure
make
sudo make install
# Compile memcached utility