Skip to content

Instantly share code, notes, and snippets.

View ilhamachmada's full-sized avatar

ilhamachmada ilhamachmada

  • Human-Centric Multimedia Lab. PENS | Virtual Reality Lab. UNUSA
  • Indonesia
View GitHub Profile
@ilhamachmada
ilhamachmada / git.migrate
Created March 30, 2023 13:35 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@ilhamachmada
ilhamachmada / RemoveMissingScriptsRecursively.cs
Created May 9, 2022 15:39 — forked from vildninja/RemoveMissingScriptsRecursively.cs
Remove missing MonoBehaviour script components in Unity 2019.1 including visiting prefafab assets.
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
public static class FindMissingScriptsRecursively
{
[MenuItem("Auto/Remove Missing Scripts Recursively Visit Prefabs")]
private static void FindAndRemoveMissingInSelected()
{
// EditorUtility.CollectDeepHierarchy does not include inactive children