Skip to content

Instantly share code, notes, and snippets.

@viitahenri
viitahenri / unity-build.sh
Last active February 8, 2024 17:03
Smarter Unity build script for MacOS.
#!/bin/zsh
# Define build targets and descriptions in an associative array
typeset -A build_targets
build_targets=(
["StandaloneOSX"]="Build a macOS standalone (Intel 64-bit)."
["StandaloneWindows"]="Build a Windows standalone."
["iOS"]="Build an iOS player."
["Android"]="Build an Android .apk standalone app."
["StandaloneWindows64"]="Build a Windows 64-bit standalone."
@viitahenri
viitahenri / gitcheats.txt
Created June 28, 2018 12:08 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get a list of all commit messages for a repo
git log --pretty=format:'%s'
# find the nearest parent branch of the current git branch
git show-branch -a | grep '\*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
# push changes to an empty git repository for the first time
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
Game.h
CommandFactory.h
Enemy.h
Player.h
GoldFactory.h
TextRenderer.h
CommandFactory.h
QuitCommand.h
Command.h