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 | |
# Loop through all *.md files in the current directory | |
for file in *.md; do | |
# and generate for each the TOC | |
bitdowntoc --inplace -p gitlab "$file" | |
echo "TOC generated for '$file'" | |
done |
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 | |
# Parameters | |
BASE_DIRECTORY='ToReplace' | |
FILE_PATTERN='*Controller.java' | |
# Perform find and replace operation for given search and replacement patterns | |
perform_replace() { | |
local SEARCH_PATTERN=$1 | |
local REPLACEMENT_PATTERN=$2 |
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 | |
_printUsage() { | |
echo 'Usage: checkPortUsage.sh <port>' | |
} | |
### Main ### | |
if [[ $# -ne 1 ]]; then | |
_printUsage |
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 | |
# | |
# This script greps for a branch name in all relevant repos. | |
# | |
# Usage: grep_branchname_in_git_repos.sh <branch name> | |
# E.g.: grep_branchname_in_git_repos.sh 8.2.2 | |
# | |
RELEVANT_REPOS=( repo1 repo2 ) |
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 | |
# | |
# This script prints out all commits after a given timestamp, usually the timestamp of the last release, in all relevant repos. | |
# | |
# Usage: changed_git_repos.sh <start check time> | |
# E.g.: changed_git_repos.sh '2021-12-21T18:00:00-02:00' | |
# | |
RELEVANT_REPOS=( repo1 repo2 ) |
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
# Via pgAdmin Docker Container | |
docker run -e [email protected] -e PGADMIN_DEFAULT_PASSWORD=1234 -d dpage/pgadmin4 | |
MSYS_NO_PATHCONV=1 docker exec -i priceless_euclid /usr/local/pgsql-14/pg_restore -h host.docker.internal -U postgres -v -d $DATABASE_NAME < $PATH_TO_DUMP_FILE |
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 | |
# Parameter 1 ist ausgeführter Git Befehl, z.B. pull | |
find . -maxdepth 1 -type d -path '*/[^\.]*' -not -path '*/target' -not -path '*/src' -printf '\n\n************************\n%p\n************************\n\n' -exec sh -c "cd {}; pwd; mvn $1; cd .." \; |
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 | |
MAIN_BRANCH=${1:-develop} | |
echo | |
echo "Fetching..." | |
git fe | |
echo | |
echo "Switching to $MAIN_BRANCH..." |
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 | |
MAIN_BRANCH=${1:-develop} | |
echo | |
echo "Fetching..." | |
git fe | |
echo | |
echo "Switching to $MAIN_BRANCH..." |
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 | |
# Parameter 1 ist ausgeführter Git Befehl, z.B. pull | |
find . -maxdepth 1 -type d -path '*/[^\.]*' -not -path '*/target' -not -path '*/src' -printf '\n\n************************\n%p\n************************\n\n' -exec git -C {} fetch --all --tags --prune --progress \; -exec git -C {} status \; -exec git -C {} "$1" \; |
NewerOlder