This file contains hidden or 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 | |
git for-each-ref --format='%(refname:short)' refs/heads/* | while read b | |
do if r=$(git config --get branch.$b.remote) | |
then | |
m=$(git config --get branch.$b.merge) | |
echo "$b -> $r/${m##*/}" | |
else | |
echo "$b -> MISSING REMOTE" | |
fi | |
done |
This file contains hidden or 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 | |
git branch --merged master | grep -v "\*" | xargs -n 1 git branch -d |
This file contains hidden or 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 | |
git remote prune origin | |
git branch -r --merged origin/master | awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | xargs git push origin --delete | |
git remote prune origin |
This file contains hidden or 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
// ---------- | |
// Definition | |
// ---------- | |
class JDoc { | |
//--- Types --- | |
class ArrayBuilder<TOuter> { | |
//--- Methods --- |
This file contains hidden or 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 | |
find . -name '*.orig' -type f | xargs /bin/rm -f |
This file contains hidden or 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
# Delay deep sleep for 24hrs, which drains batteries more, | |
# but prevents system restarts when the computer is sleeping | |
# for more than 4 hours (the default value). | |
# NOTE: if the computer sleeps for 24+ hours, it will still cause a system restart. | |
sudo pmset -a standbydelay 86400 | |
# Improve performance of VMware Fusion | |
# from http://kb.parallels.com/122767 | |
sudo nvram boot-args="debug=0x10" |
This file contains hidden or 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
dotnet new -i Amazon.Lambda.Templates::* |
This file contains hidden or 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
log_group_name="/aws/log-group-name" | |
log_stream_names=$(aws logs describe-log-streams \ | |
--log-group-name "$log_group_name" \ | |
--order-by LastEventTime \ | |
--descending \ | |
--max-items 50 \ | |
--output text \ | |
--query 'logStreams[*].logStreamName') |
This file contains hidden or 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
{ | |
"FormattingOptions": { | |
"NewLinesForBracesInTypes": false, | |
"NewLinesForBracesInAccessors": false, | |
"NewLinesForBracesInAnonymousMethods": false, | |
"NewLinesForBracesInAnonymousTypes": false, | |
"NewLinesForBracesInLambdaExpressionBody": false, | |
"NewLinesForBracesInObjectCollectionArrayInitializers": false, | |
"NewLinesForBracesInProperties": false, | |
"NewLinesForBracesInControlBlocks": false, |
OlderNewer