https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html
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
| git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; 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/bash | |
| FILE=$1 | |
| MESSAGE=$(cat $FILE) | |
| COMMIT_PREFIX=$(git rev-parse --abbrev-ref HEAD | grep -Eo '^(\w+/)?(\w+[-_])?[0-9]+' | grep -Eo '(\w+[-])?[0-9]+' | tr "[:lower:]" "[:upper:]") | |
| if [[ $COMMIT_PREFIX == "" || "$MESSAGE" == "$COMMIT_PREFIX"* ]];then | |
| exit 0; | |
| fi | |
| echo "$COMMIT_PREFIX $MESSAGE" > $FILE |
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
| tail -f -n 25 /var/log/filename.log |
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
| services: | |
| - docker:19.03.1-dind | |
| variables: | |
| # Instruct Testcontainers to use the daemon of DinD. | |
| DOCKER_HOST: "tcp://docker:2375" | |
| # Improve performance with overlayfs. | |
| DOCKER_DRIVER: overlay2 | |
| DOCKER_TLS_CERTDIR: "" | |
| MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository/" |
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
| { | |
| "Version": "2008-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowPublicRead", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, | |
| "Action": "s3:GetObject", |
screen #start screen session
screen -ls #list available screens
screen -r #attach screen session
ctrl + a + d #detach current screen session
screen -XS quit #quits PID screen
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
| start=$1 | |
| end=$2 | |
| datevalue=0 | |
| start=$(date -d $start +%Y%m%d) | |
| end=$(date -d $end +%Y%m%d) | |
| while [ $start -le $end ] | |
| do | |
| echo $start |
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
| https://htmlemail.io/send/ |
server {
server_name domain_name; #domain name eg: facebook.com
#config request body size, usable for file upload
client_max_body_size 2M
location / {
proxy_pass http://0.0.0.0:9091; # local_id:port
NewerOlder