Skip to content

Instantly share code, notes, and snippets.

View GregLevenhagen's full-sized avatar

greglevenhagen GregLevenhagen

View GitHub Profile
@GregLevenhagen
GregLevenhagen / Git-Unity-VisualStudio-HoloLens-and-Merging.md
Last active November 10, 2021 19:51
Using Git with Unity, Visual Studio, HoloLens and Handling Merges

Using Git with Unity, Visual Studio and optionally HoloLens

This will help with merging of Scenes, Prefabs and Assets when working in Unity team environments.

Place the gitignore and gitattributes files in the base directory of your git repository. The gitconfig contents can go into your global .gitconfig file, in the repo's .git/config file or a custom .gitconfig file. A custom .gitconfig will need to be manually configured by each team member, even if it's in tracked in the repo because it's a security vulnerability.

The gitignore file contains a mashup from the HoloToolkit-Unity gitignore, along with GitHub/gitignore files for Unity and Visual Studio.

The gitconfig file tells git to use Unity's Smart Merge (aka UnityYAMLmerge), which is installed with Unity, to handle YAML merges.

@GregLevenhagen
GregLevenhagen / .vimrc
Created December 1, 2016 02:18
macOS .vimrc
set nocompatible
" Remove ALL auto-commands. This avoids having the autocommands twice when
" the vimrc file is sourced again.
autocmd!
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
@GregLevenhagen
GregLevenhagen / .bash_profile
Last active December 1, 2016 02:16
macOS .bash_profile
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
export HISTCONTROL=ignoreboth
export HISTSIZE=100000000000
# enable color support of ls
if [ "$TERM" != "dumb" ]; then
alias ls='ls -GFh'
fi
import System;
import System.Windows.Forms;
import Fiddler;
// INTRODUCTION
// This is the FiddlerScript Rules file, which creates some of the menu commands and
// other features of Fiddler. You can edit this file to modify or add new commands.
//
// The original version of this file is named SampleRules.js and it is in the
// \Program Files\Fiddler\ folder. When Fiddler first starts, it creates a copy named
@GregLevenhagen
GregLevenhagen / .vimrc
Last active December 1, 2016 02:15
vimrc-windows
set nocompatible
source $VIMRUNTIME/mswin.vim
behave mswin
" Remove ALL auto-commands. This avoids having the autocommands twice when
" the vimrc file is sourced again.
autocmd!
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
@GregLevenhagen
GregLevenhagen / .bashrc
Last active August 29, 2015 13:56
bashrc
# If not running interactively, don't do anything:
[ -z "$PS1" ] && return
export PATH=~/bin:$PATH
export HISTCONTROL=ignoreboth
export HISTSIZE=100000000000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsiz
@GregLevenhagen
GregLevenhagen / .vimrc
Last active December 1, 2016 02:14
vimrc linux
set nocompatible
" Remove ALL auto-commands. This avoids having the autocommands twice when
" the vimrc file is sourced again.
autocmd!
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
@GregLevenhagen
GregLevenhagen / boxstarter
Last active October 29, 2016 02:01
Boxstarter Polyglot Development
#Install-WindowsUpdate -AcceptEula
#Update-ExecutionPolicy Unrestricted
#Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
#Enable-RemoteDesktop
#Enable-MicrosoftUpdate
#Set-TaskbarSmall
# install Visual Studio instances, SQL Server first
# Web Platform Installer (get a full list of packages you can install from webpi using "clist -source webpi")