Skip to content

Instantly share code, notes, and snippets.

View mmllr's full-sized avatar

Markus Müller mmllr

View GitHub Profile
# https://www.atlassian.com/git/tutorials/dotfiles
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc
@mmllr
mmllr / gist:a107db7479f2ca36a6a8
Created February 17, 2015 15:56
Regex for parsing available iOS simulators
^(.+\s)+(\((\d+.\d+) Simulator\))\s\[(\S+)\]$
NSFileManager *fileManagerMock = mock([NSFileManager class]);
NSURL *anURL = [NSURL URLWithString:@"test"];
//...do some stuff
// error in/out paramater will not accept OCMockitos anything(), resulting in
// Implicit conversion of an Objective-C pointer to 'NSError *__autoreleasing *' is disallowed with ARC error
[MKTVerify(fileManagerMock) removeItemAtURL:anURL error:anything()];