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
    
  
  
    
  | @Retention(RetentionPolicy.RUNTIME) | |
| @Target({ElementType.TYPE, ElementType.METHOD}) | |
| @ConditionalOnExpression("false") | |
| public @interface Disabled { | |
| } | 
((NativeQueryImpl) sqlQuery).queryParameterBindings.parameterBindingMap.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey().getName(), entry -> entry.getValue().getBindValue()))((NativeQueryImpl) sqlQuery).queryParameterBindings.parameterListBindingMap.entrySet().stream().collect(Collectors.toMap(entry -> entry.getKey().getName(), entry -> entry.getValue().getBindValues().stream().map(Object::toString).collect(Collectors.joining(","))))
  
    
      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
    
  
  
    
  | const phoneTransformer = (value: string): string => { | |
| return value.replace(/^8(9\d{2})(\d{3})(\d{2})(\d{2})$/, '+7($1) $2 $3 $4'); | |
| }; | 
  
    
      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
    
  
  
    
  | package com.mrgrd56.utils.concurrent; | |
| import java.util.*; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutionException; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.stream.Collectors; | |
| /** | 
Start a new screen session with session name
screen -S <name>List running sessions/screens
screen -ls
  
    
      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
    
  
  
    
  | private RestTemplate getProxiedRestTemplate(Proxy proxy, SimpleClientHttpRequestFactory requestFactory) { | |
| if (proxy != null) { | |
| requestFactory.setProxy(proxy); | |
| } | |
| return new RestTemplate(requestFactory); | |
| } | 
  
    
      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
    
  
  
    
  | package com.mrgrd56.utils.cache; | |
| import com.github.benmanes.caffeine.cache.Cache; | |
| import org.checkerframework.checker.nullness.qual.PolyNull; | |
| import java.util.function.Supplier; | |
| public class SingleCache<T> { | |
| private static final Object KEY = "KEY"; | 
  
    
      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
    
  
  
    
  | package com.mrgrd56.utils; | |
| import java.util.Map; | |
| import java.util.stream.Collector; | |
| import java.util.stream.Collectors; | |
| public final class CustomCollectors { | |
| private CustomCollectors() { } | |
| public static <K, V> Collector<? super Map.Entry<K, V>, ?, Map<K, V>> toMapFromEntries() { |