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
kafka-topics.sh --bootstrap-server localhost:9092 --create --topic dlq-test-performance --partitions 3 --replication-factor 3 --config retention.ms=2419200000 | |
kafka-configs.sh --bootstrap-server localhost:9092 --entity-type topics --entity-name dlq-test-performance --alter --add-config retention.ms=2419200000 |
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
git filter-repo --replace-text expressions.txt | |
File expressions.txt contains only word I want to change |
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
-- xUnit | |
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | |
reportgenerator -reports:"coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html | |
-- nUnit | |
dotnet test --collect:"XPlat Code Coverage" | |
reportgenerator -reports:".\TestResults\6531b870-6841-41a7-96fb-534c49347eca\coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html |
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/bash | |
currentBranchName=$(git rev-parse --abbrev-ref HEAD) | |
desinationBranch=develop | |
add_hash() { | |
echo "" | |
git filter-repo -f --refs $desinationBranch..$currentBranchName --message-callback ' | |
lastWord = message.split()[-1] |
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 | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
STORY_NUMBER=$(echo $BRANCH_NAME | sed -n 's/.*-\([0-9]\)/\1/p') # Get story number from branch name - "my_feature_branch-123" | |
COMMIT_MSG=`cat $1` | |
if [ x != x${STORY_NUMBER} ]; then # Checf if STORY_NUMBER is NOT empty | |
if [ x = x${2} ]; then # Check if commit message is empty | |
sed -i.back "1s/^/$STORY_NUMBER/" "$1" |
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 | |
toplevel_path=`git rev-parse --show-toplevel` | |
powershell -c "(New-Object System.Media.SoundPlayer '$toplevel_path\.git\hooks\applause10.wav').PlaySync()" > /dev/null 2>&1 & |
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/bash | |
currentBranchName=$(git rev-parse --abbrev-ref HEAD) | |
add_hash() { | |
echo "" | |
git filter-repo -f --refs develop..$currentBranchName --message-callback ' | |
lastWord = message.split()[-1] | |
def RepresentsInt(s): |
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/bash | |
USAGE="USAGE: git azuredevops NUMBER_OF_COMMITS\nExample: git azuredevops 5" | |
show_usage () { | |
echo -e "\n$USAGE" | |
} | |
add_hash() { | |
echo "" |
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/bash | |
if [ x = x${1} ]; then | |
echo ">>> Enter branch name" | |
exit 1 | |
fi | |
if [[ $1 == feature* ]] | |
then | |
BRANCH_NAME=$1 |
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/bash | |
for i in {1..5} | |
do | |
git commit -m "$1 $i" --allow-empty | |
done |
NewerOlder