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
dependencies { | |
implementation 'net.logstash.logback:logstash-logback-encoder:7.2' | |
implementation 'org.fluentd:fluent-logger:0.3.4' | |
implementation 'com.sndyuk:logback-more-appenders:1.5.6' | |
} |
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
import org.junit.jupiter.api.extension.ConditionEvaluationResult; | |
import org.junit.jupiter.api.extension.ExecutionCondition; | |
import org.junit.jupiter.api.extension.ExtensionContext; | |
import org.junit.platform.commons.util.AnnotationUtils; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.AnnotatedElement; |
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
import java.lang.invoke.CallSite; | |
import java.lang.invoke.LambdaMetafactory; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodType; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Modifier; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.function.BiFunction; |
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
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; | |
import org.springframework.context.annotation.Condition; | |
import org.springframework.context.annotation.ConditionContext; | |
import org.springframework.core.annotation.MergedAnnotation; | |
import org.springframework.core.annotation.MergedAnnotations; | |
import org.springframework.core.type.AnnotatedTypeMetadata; | |
import org.springframework.lang.NonNull; | |
import java.util.Map; |
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 for-each-ref --format=' %(authorname) %09 %(refname)' --sort=authorname | grep /remotes/origin/ |
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
# Add to ~/.gnupg/gpg-agent.conf | |
# 3600 - 1 hour, 86400 - 1 day | |
default-cache-ttl 3600 |
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
# Add to ~/.gitconfig | |
[includeIf "gitdir:~/path/to/directory/first/"] | |
path = .gitconfig-1 | |
[includeIf "gitdir:~/path/to/directory/second/"] | |
path = .gitconfig-2 | |
# Example .gitconfig-1 | |
[user] | |
email = [email protected] | |
name = My 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
# show key (sec block) | |
gpg --list-keys | |
# export | |
gpg --output <public-key-filename> --armor --export <key> # mykey_pub.gpg | |
gpg --output <secret-key-filename> --armor --export-secret-key <key> # mykey_sec.gpg | |
# import | |
gpg --import <public-key-filename> | |
gpg --allow-secret-key-import --import <secret-key-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
# creat key | |
gpg --full-generate-key | |
# show key (sec block) | |
gpg --list-secret-keys --keyid-format LONG | |
# print key and copy/past to GitHub | |
gpg --armor --export <key> | |
# set key | |
git config --global user.signingkey <key> | |
# enable key | |
git config --global commit.gpgsign true |
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
import org.apache.poi.xwpf.usermodel.PositionInParagraph; | |
import org.apache.poi.xwpf.usermodel.TextSegment; | |
import org.apache.poi.xwpf.usermodel.XWPFParagraph; | |
import org.apache.poi.xwpf.usermodel.XWPFRun; | |
import java.util.List; | |
import java.util.Objects; | |
import java.util.function.Function; | |
/** |
NewerOlder