Skip to content

Instantly share code, notes, and snippets.

View wrossmck's full-sized avatar
🦊

Ross McKinley wrossmck

🦊
View GitHub Profile
@wrossmck
wrossmck / git-latest.ps1
Created June 11, 2018 07:27
pull latest from master in all subdirectories
Get-ChildItem -Recurse -Directory -Hidden -Filter .git | ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master }
@wrossmck
wrossmck / .gitattributes
Created February 1, 2017 17:58
`.gitattributes` for Unity 3d git-lfs project
# other
*.anim filter=lfs diff=lfs merge=lfs -text
*.cubemap filter=lfs diff=lfs merge=lfs -text
*.exr filter=lfs diff=lfs merge=lfs -text
*.fbx filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
# images
*.bmp filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
@wrossmck
wrossmck / find-uninitialised-git-submodule.sh
Last active May 19, 2016 09:49
initialise only non-initialised git submodules
#!/bin/bash
INIT_LIST=$(git submodule status | grep "\-[a-z0-9]\{40\}" | sed 's#\(\-[a-z0-9]\{40\} \)##g')
IFS=$'\n'; for l in $INIT_LIST; do git submodule update --init $l; done
@wrossmck
wrossmck / makeOSXiso.sh
Created November 18, 2015 11:10
Convert Downloaded El Capitan.app to bootable iso
#!/bin/bash
#taken from http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J