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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Title of the document</title> | |
</head> | |
<body> |
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
def getRunningPod(CLUSTER, namespace, label) { | |
println "Cluster ${CLUSTER}: namespace ${namespace} with label: ${label}" | |
openshift.withCluster( CLUSTER ) { | |
openshift.withProject( namespace ){ | |
def rc = openshift.selector("pod" , [application: label] ) | |
return rc.object()['metadata']['name'] | |
} | |
} |
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
const { spawn } = require('child_process'); | |
const fs = require('fs') | |
const PASSWORD = process.env['CERT_PASWORD'] || 'mypassword' | |
const createCerts = (_next) => { | |
let next = _next || function() { console.log('Nothing more to do...') } | |
try{ | |
fs.unlinkSync('./sso.jks') | |
}catch(e){ |
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
def project = "my-java-services" // we've created this using oc new-project... | |
def clusterName = "your-openshift-endpoint" // Example: https://openshift.console.org. | |
def imageBuildConfig = "java-microservice" // The one we created above. | |
def GIT_URL = "https://github.com/cesarvr/Spring-Boot" // Your Spring Boot project. | |
pipeline { | |
agent any | |
tools { | |
gradle 'Gradle562' |
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
let data = require('fs').readFileSync('./input.txt').toString().split('') | |
data.pop() | |
function reacting(candidate_1, candidate_2) { | |
if (candidate_1.toLowerCase() === candidate_2.toLowerCase()) { | |
if ( candidate_1 !== candidate_2 ) { | |
return 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 ( | |
"fmt" | |
"os" | |
"io/ioutil" | |
"strings" | |
"log" | |
) |
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
main () { | |
# installing prometheus metrics exporter | |
# | |
# https://github.com/aerogear/keycloak-metrics-spi | |
# | |
mkdir -p /opt/eap/providers | |
curl http://metrics-builder/keycloak-metrics-spi-1.0.2-SNAPSHOT.jar -o /opt/eap/providers/keycloak-metrics-spi-1.0.2-SNAPSHOT.jar | |
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
let { Ambassador } = require('../node-ambassador/') | |
const TARGET = process.env['target_port'] || 8087 | |
const PORT = process.env['port'] || 8080 | |
const HTTP404 = `const HTTP404 = | |
HTTP/1.0 404 File not found | |
Server: Sitio 💥 | |
Date: ${Date()} | |
Content-Type: text/html |
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: Pod | |
metadata: | |
name: my-pod | |
labels: | |
app: my-pod | |
spec: | |
containers: | |
- name: web | |
image: 172.30.1.1:5000/hello/web |
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: Pod | |
metadata: | |
name: my-pod | |
labels: | |
app: my-pod | |
spec: | |
containers: | |
- name: web | |
image: docker-registry.default.svc:5000/web-apps/web |