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 io.trivium.glue.binding.http; | |
import com.sun.net.httpserver.Headers; | |
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.charset.Charset; |
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 exec = require('child_process').exec; | |
const fs = require("fs"); | |
exports.handler = function(event, context) { | |
console.log("creating certificate"); | |
exec('openssl req -x509 -newkey rsa:4096 -keyout /tmp/key.pem -out /tmp/cert.pem -subj "/C=DE/ST=Bavaria/L=Munich/O=apimeister org/OU=org unit/CN=apimeister.com" -days 45 -nodes', (error, stdout, stderr) => { | |
if (error) { | |
throw error; | |
} | |
console.log("reading certificate"); |
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
Description: > | |
Aurora Database Cluster with one replication instance and Multi Availability Zones - CI & CD over AWS | |
Parameters: | |
DbPassword: | |
Type: String | |
Default: mypassword | |
Subnet1: | |
Type: String | |
Default: subnet-3671ca6c | |
Subnet2: |
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 ballerina/jms; | |
import ballerina/log; | |
import ballerina/runtime; | |
import ballerina/io; | |
jms:Connection conn = new({ | |
initialContextFactory:"com.tibco.tibjms.naming.TibjmsInitialContextFactory", | |
providerUrl:"tcp://localhost:7222", | |
username:"admin", | |
password:"admin", |
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
var endpoint ="https://callable-xxxxxxxxx-uc.a.run.app"; | |
var user = "user1"; | |
var password = "secret1"; | |
function invokeRFC(rfcName,payload) { | |
var options = {"method":"POST", "payload":payload, headers: {}}; | |
//check authentication data | |
if(user.length>0){ | |
var auth = "Basic " + Utilities.base64Encode(user + ":" + password); | |
options.headers['Authorization']=auth; |
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
FROM centos:7 | |
RUN yum install -y unzip | |
WORKDIR /install | |
COPY silent.xml . | |
COPY TIB_TRA_5.11.0_linux_x86_64.zip . | |
COPY TIB_BW_5.14.0_linux26gl23_x86_64.zip . | |
COPY TIB_rv_8.4.6_linux_x86.zip . | |
COPY TIB_ems_8.5.1_linux_x86_64.zip . |