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
| #include <iostream> | |
| #include <vector> | |
| #include <queue> | |
| #include <string> | |
| #include <csignal> | |
| #include <cstring> | |
| #include <pthread.h> | |
| #include <thread> | |
| #include <chrono> | |
| #include <fstream> |
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
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.NoSuchElementException; | |
| import java.util.Objects; | |
| import java.util.concurrent.atomic.AtomicMarkableReference; | |
| public class SetImpl<T extends Comparable<T>> implements Set<T> { | |
| private static final class Node<V> { |
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
| 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 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
| 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 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
| 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 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
| 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 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 for-each-ref --format=' %(authorname) %09 %(refname)' --sort=authorname | grep /remotes/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
| # Add to ~/.gnupg/gpg-agent.conf | |
| # 3600 - 1 hour, 86400 - 1 day | |
| default-cache-ttl 3600 |
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
| # 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 = my1@email.mail | |
| name = My Name 1 |
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
| # 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> |
NewerOlder