openssl s_client -showcerts -connect domain:port
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
| public class GenericPagedDto<T> extends PageImpl<T> { | |
| public GenericPagedDto(List<T> content, Pageable pageable, long total) { | |
| super(content, pageable, total); | |
| } | |
| public GenericPagedDto(List<T> content) { | |
| super(content); | |
| } | |
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
| @Data | |
| @NoArgsConstructor | |
| @AllArgsConstructor | |
| @SuperBuilder | |
| @Entity | |
| @FieldDefaults(level = AccessLevel.PRIVATE) | |
| @Table(name = "invoices") | |
| public class Invoice { | |
| @Id |
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
| @Data | |
| @NoArgsConstructor | |
| @AllArgsConstructor | |
| @Builder | |
| @FieldDefaults(level = AccessLevel.PRIVATE) | |
| public class CreateUserRequestModel { | |
| @NotBlank | |
| @Size(min=2) | |
| String firstName; |
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
| @Aspect | |
| @Component | |
| @Slf4j | |
| @ConditionalOnExpression("${aspect.enabled:true}") | |
| public class ExecutionTimeAdvice { | |
| @Around("@annotation(TrackExecutionTime)") | |
| public Object executionTime(ProceedingJoinPoint point) throws Throwable { | |
| long startTime = System.currentTimeMillis(); | |
| Object object = point.proceed(); |
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
| @EnableSwagger2 | |
| @Configuration | |
| public class SwaggerConfig { | |
| @Bean | |
| public Docket docket() { | |
| return new Docket(DocumentationType.SWAGGER_2) | |
| .select() | |
| .paths(PathSelectors.any()) |
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
| Hostname | Ram | Cpu | Operating System | Ip | |
|---|---|---|---|---|---|
| nfsserver | 512 MB | 1 Core | Ubuntu Server 20.04 LTS | 192.168.12.9 | |
| haproxy | 512 MB | 1 Core | Ubuntu Server 20.04 LTS | 192.168.12.10 | |
| k8smaster | 9728 MB | 6 core | Ubuntu Server 20.04 LTS | 192.168.12.11 |
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
| $script = <<-SCRIPT | |
| # echo "Preparing local node_modules folder…" | |
| # mkdir -p /home/vagrant/app/sdk/vagrant_node_modules | |
| # chown vagrant:vagrant /home/vagrant/app/sdk/vagrant_node_modules | |
| echo "cd $1" >> /home/vagrant/.profile | |
| echo "cd $1" >> /home/vagrant/.bashrc | |
| echo "All good!!" | |
| SCRIPT | |
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
| $script = <<-SCRIPT | |
| # echo "Preparing local node_modules folder…" | |
| # mkdir -p /home/vagrant/app/sdk/vagrant_node_modules | |
| # chown vagrant:vagrant /home/vagrant/app/sdk/vagrant_node_modules | |
| echo "cd $1" >> /home/vagrant/.profile | |
| echo "cd $1" >> /home/vagrant/.bashrc | |
| echo "All good!!" | |
| SCRIPT | |
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 | |
| NFS_DIR=/srv/kubedata | |
| TARGET_PATH=$NFS_DIR/fabricfiles | |
| FABRIC_FILES_PATH=/vagrant/k8s/fabricfiles | |
| # Functions ######################################################################### | |
| function copy_fabricfiles(){ | |
| echo "## Copied fabric files" |