This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xss2m | |
-Xms512m | |
-Xmx4096m | |
-XX:NewSize=128m | |
-XX:MaxNewSize=128m | |
-XX:MaxPermSize=350m | |
-XX:ReservedCodeCacheSize=96m | |
-XX:+UseCompressedOops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#adapted from https://gist.github.com/mgamer/132534fe1155fb40adc5adfc58790373 | |
DESCRIBEFILES=$(git diff --staged -G"^\s*fdescribe\(" --name-only | wc -l) | |
if [ $DESCRIBEFILES -gt 0 ] | |
then | |
echo "You forgot to remove a fdescribe in the following files:" | |
git --no-pager diff --staged --name-only -G"^\s*fdescribe\(" | xargs -L1 -I {} sh -c 'sed -i "" "s/\s*fdescribe(/describe(/g" {}; git add "{}"' | |
echo "This is fixed automatically now" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filewatcher '**/*.swift' '/Applications/Injection.app/Contents/Resources/injectSource `pwd`/$FILENAME' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# based on https://stackoverflow.com/a/24018435/59666 | |
#base commit of the squash-"rebase | |
baseCommit=$1 | |
#get the commit message | |
shift | |
commitMsg=$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
ec = config --global -e | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'fixup! SAVEPOINT' | |
wip = !git add -u && git commit -m "WIP" | |
undo = reset HEAD~1 --mixed | |
amend = commit -a --amend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while : | |
do | |
SOURCE=`SwitchAudioSource -t input -c` | |
if [ "$SOURCE" = 'mbose' ] | |
then | |
echo "mbose is on, disabling it" | |
SwitchAudioSource -t input -s "Built-in Microphone" | |
fi | |
sleep 1 | |
done |
OlderNewer