Skip to content

Instantly share code, notes, and snippets.

View Mathijs-Bakker's full-sized avatar
♾️

Mathijs Bakker Mathijs-Bakker

♾️
  • Barcelona. Spain
View GitHub Profile
@Mathijs-Bakker
Mathijs-Bakker / disable.sh
Created November 7, 2020 15:28 — forked from b0gdanw/disable.sh
Disable bunch of #$!@ in Catalina
# Credit: pwnsdx https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21; nebular https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3#gistcomment-3019082
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to disable SIP: Reboot to Recovery, in Terminal csrutil disable
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# List disabled services: launchctl print-disabled user/501 |grep true & launchctl print-disabled system |grep true
@Mathijs-Bakker
Mathijs-Bakker / UnityEditorGuiSkinSaver.cs
Created August 30, 2019 18:12
Save the Unity Editor default GuiSkin to assets.
using UnityEditor;
public class UnityEditorGuiSkinSaver : Editor
{
[MenuItem("Assets/Save Editor Skin")]
public static void SaveEditorSkinToAssets()
{
var skin = Instantiate(EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector));
AssetDatabase.CreateAsset(skin, "Assets/EditorSkin.guiskin");
}