Skip to content

Instantly share code, notes, and snippets.

#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System.IO;
using System.Text;
public class EditorFontResizer : EditorWindow {
@johnyvelho
johnyvelho / readme.md
Last active April 22, 2024 13:18
Installing Supervisor on Elastic Beanstalk - 2021 - Linux AMI 2 - Laravel Worker Setup
  • Create the following folder structure in your root project directory: .ebextensions/supervisor

  • Place the supervisor.config under .ebextensions/

  • Place the setup.sh under .ebextensions/supervisor/

  • Run "chmod +x .ebextensions/supervisor/setup.sh"

  • Place the supervisord.conf under .ebextensions/supervisor/

@nukadelic
nukadelic / EditorFontSize.cs
Last active May 29, 2024 16:14
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible
@ProGM
ProGM / ExampleBehavior.cs
Created October 19, 2016 10:39
A PropertyDrawer to show a popup field with a generic list of string for your Unity3d attribute
public class MyBehavior : MonoBehaviour {
// This will store the string value
[StringInList("Cat", "Dog")] public string Animal;
// This will store the index of the array value
[StringInList("John", "Jack", "Jim")] public int PersonID;
// Showing a list of loaded scenes
[StringInList(typeof(PropertyDrawersHelper), "AllSceneNames")] public string SceneName;
}
@joshowen
joshowen / circle.yml
Last active January 10, 2023 13:19
CircleCI hack for saving keeping databases in build cache
# Notes:
# - Replace <DB_NAME> with your database
# - Replace <SOME_PROJECT_WITH_A_TEST> with an appname that has an integration test, this will run your migrations
database:
override:
# Preserve Postgres in cache
- sudo service postgresql stop || exit 0
- "if [ -d ~/postgres/ ]; then sudo cp -r ~/postgres/* /var/lib/postgresql/9.4; sudo chown -R postgres:postgres /var/lib/postgresql/9.4/*; fi"
- sudo service postgresql start || exit 0