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
webClient.get().uri(uri) | |
.headers(headers -> headers.addAll(httpHeaders)) | |
.retrieve() | |
.bodyToMono(new ParameterizedTypeReference<Map<String, Object>>() { | |
}) | |
.log(this.getClass().getName(), Level.FINE) | |
.retryWhen( | |
Retry.backoff(3, Duration.ofSeconds(2)) | |
.jitter(0.7) | |
.filter(throwable -> throwable instanceof RuntimeException || |
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
resource "kubernetes_service_account" "jenkins-service-account" { | |
metadata { | |
name = "jenkins" | |
namespace = "jenkins-jobs" | |
labels = { | |
"app.kubernetes.io/name" = "jenkins" | |
} | |
} | |
secret { | |
name = "jenkins-token" |
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
module "eks-cluster" { | |
source = "terraform-aws-modules/eks/aws" | |
version = "19.12.0" | |
cluster_name = "mycluster" | |
cluster_version = 1.26 | |
subnet_ids = [ "subnet-XX","subnet-YY","subnet-ZZ"] | |
create_cloudwatch_log_group = false | |
tags = { | |
Name = "mycluster" | |
"karpenter.sh/discovery" = "mycluster" |
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
resource "kubernetes_storage_class" "eks-ebs-storage-class" { | |
metadata { | |
name = "eks-ebs-storage-class" | |
} | |
parameters = { | |
type = "gp3" | |
} | |
storage_provisioner = "ebs.csi.aws.com" | |
reclaim_policy = "Delete" | |
volume_binding_mode = "WaitForFirstConsumer" |
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
replicas: 1 | |
image: | |
repository: docker.io/grafana/grafana | |
tag: "9.5.2" | |
sha: "" | |
pullPolicy: IfNotPresent | |
testFramework: | |
enabled: 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"strings" | |
) |
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
#!/bin/bash | |
srcreg="my.privateregistry.com" | |
tgtreg="awsacctnum.dkr.ecr.awsregion.amazonaws.com" | |
repos=`curl -s http://$srcreg/v2/_catalog?n=2048 | jq '.repositories[]' | tr -d '"'` | |
for repo in $repos; do | |
echo -e "\n===WORKING ON REPOSITORY" $repo"===" |
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
16:33:35.057 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test method: context [DefaultTestContext@329dbdbf testClass = GithubApiServiceTest, testInstance = com.digite.vcs.git.analytics.github.webhook.GithubApiServiceTest@59d4cd39, testMethod = testGithubResponseJsonToMapConversion@GithubApiServiceTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@7354b8c5 testClass = GithubApiServiceTest, locations = '{}', classes = '{class com.digite.vcs.git.analytics.github.webhook.GithubApiService, class com.digite.vcs.git.analytics.RestTemplateConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[ImportsContextCustomizer@20d7d6fb key = [@org.springframework.context.annotation.Import(value={org.springframework.boot.autoconfigure.AutoConfigurationPackages$Registrar.class}), @org.junit.jupiter.api.extension.ExtendWith( |
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
platform :ios, '9.0' | |
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
def add_flipper_pods!(versions = {}) | |
versions['Flipper'] ||= '~> 0.33.1' | |
versions['DoubleConversion'] ||= '1.1.7' | |
versions['Flipper-Folly'] ||= '~> 2.1' | |
versions['Flipper-Glog'] ||= '0.3.6' | |
versions['Flipper-PeerTalk'] ||= '~> 0.0.4' | |
versions['Flipper-RSocket'] ||= '~> 1.0' |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} |
NewerOlder