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
apiVersion: v1 | |
kind: LimitRange | |
metadata: | |
name: limit-ranges | |
spec: | |
limits: | |
- type: Container | |
max: | |
cpu: "800m" |
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
apiVersion: v1 | |
kind: ResourceQuota | |
metadata: | |
name: resource-quota | |
namespace: cicd | |
spec: | |
hard: | |
requests.cpu: '1' | |
requests.memory: 1Gi | |
limits.cpu: '2' |
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
#!/usr/bin/env bash | |
PV_STUB="nfspv000" | |
OCP="api.ocp4:6443" | |
NFS_HOST=192.168.10.25 | |
oc login https://${OCP} | |
for i in {1..30}; do |
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
https://conemu.github.io/ |
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.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.keycloak.RSATokenVerifier; | |
import org.keycloak.common.VerificationException; | |
import org.keycloak.representations.AccessToken; |
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.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.keycloak.RSATokenVerifier; | |
import org.keycloak.common.VerificationException; | |
import org.keycloak.representations.AccessToken; |
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 | |
# This script requires jq, a command line to to parse and format JSon. | |
# https://stedolan.github.io/jq/ | |
function padBase64 { | |
STR=$1 | |
MOD=$((${#STR}%4)) | |
if [ $MOD -eq 1 ]; then | |
STR="${STR}=" |
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 com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.apache.commons.logging.Log; | |
import org.apache.commons.logging.LogFactory; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.keycloak.representations.idm.ClientRepresentation; | |
import org.springframework.boot.test.context.SpringBootTest; |
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
Log log = LogFactory.getLog(MyTokenController.class); | |
CloseableHttpClient httpClient | |
= HttpClients.custom() | |
.setSSLHostnameVerifier(new NoopHostnameVerifier()) | |
.build(); | |
HttpComponentsClientHttpRequestFactory requestFactory | |
= new HttpComponentsClientHttpRequestFactory(); | |
requestFactory.setHttpClient(httpClient); |
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 | |
# This script requires jq, a command line to to parse and format JSon. | |
# https://stedolan.github.io/jq/ | |
function padBase64 { | |
STR=$1 | |
MOD=$((${#STR}%4)) | |
if [ $MOD -eq 1 ]; then | |
STR="${STR}=" |
NewerOlder