This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will browse a Slack export folder and download all files in a new /export folder | |
# | |
# HOW TO: | |
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export) | |
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/) | |
# 3. Place this file at the root of your Slack export folder, next to channels.json | |
# 4. Run `bash slack-files-downloader.sh` in your terminal | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
[InitializeOnLoad] | |
public class BuildHandler : MonoBehaviour | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#locating unity folder | |
if [ "$#" -gt 0 ] | |
then | |
unityFolder=${1%/} | |
else | |
unityFolder="/Applications/Unity" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public static class DebugMenu | |
{ | |
private static int defaultMaxNumberOfSamplesPerFrame = -1; | |
private static bool dynamicProfilerSamplesSize = false; | |
private const string toggleDynamicProfilerSamplesSizeName = "Debug/Dynamic Profiler Sample Size"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Example : MonoBehaviour | |
{ | |
public ExampleClass example; | |
void Start() {} | |
void Update() {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lastcmd="" | |
while [ true ]; do | |
read -r -e -p "> git " gitcmd | |
if [ "$gitcmd" != "" ] && [ "$gitcmd" != "$lastcmd" ]; then | |
lastcmd=$gitcmd | |
history -s "$gitcmd" | |
fi | |
if [ "$gitcmd" == "exit" ]; then |