Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.1
info:
contact:
name: Workiva Inc
url: 'https://www.workiva.com'
email: [email protected]
description: |
The Wdata Preparation API allow users
to import data sets from their source system, tag, organize, manipulate, share,
export, and query against the data
@yohanesws
yohanesws / Note.adoc
Last active December 5, 2019 03:26
PCE Self Note
@yohanesws
yohanesws / index.js
Created March 19, 2019 12:36
s3 to dynamodb
const AWS = require('aws-sdk');
const docClient = new AWS.DynamoDB.DocumentClient();
const parseS3Event = require('./parse-s3-event');
const TABLE_NAME = process.env.TABLE_NAME;
exports.handler = (event) => {
let S3Objects = parseS3Event(event);
return Promise.all(S3Objects.map(saveToDynamoDB));
};
@yohanesws
yohanesws / 3scale-self-note.adoc
Last active October 3, 2018 08:30
3scale Disconnected Install
@yohanesws
yohanesws / ReadMe.adoc
Last active September 18, 2018 17:17
3scale ToolBox Hack

The Best Way

download certificates

if chain

echo | openssl s_client -showcerts -servername $host -connect $host:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > yourcert.pem
@yohanesws
yohanesws / AMQ-BROKER-RBAC.adoc
Last active July 31, 2018 14:44
AMQ Broker RBAC

Role Based Access Control(RBAC)

Red Hat AMQ Broker

Several places always have their own security policy even for managing messaging broker. Red Hat AMQ a flexible, high-performance messaging platform based on Open Source ActiveMQ Artemis because of the portable design and start to get present in market can’t avoid this security requiredment. Moreover, the security requiredment that required or messaging broker can be generalize to became three role like below:

  1. Administrator Role with all rights

  2. Application Role that can publish/consume/subscribe/produce to address and also can create/delete address

  3. Operation Role that can only query through Web Console or Supported Protocols

@yohanesws
yohanesws / broker-node1.xml
Created July 19, 2018 14:34
Testing interconnect-AMQ and HAPROXY-AMQ
<?xml version='1.0'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@yohanesws
yohanesws / nodes.adoc
Created May 22, 2018 16:05
Repo Synch
nohup reposync --gpgcheck -lm --repoid=rhel-server-rhscl-7-rpms  --download_path=/var/www/html/repos/ --downloadcomps --download-metadata -n > reposynch-rhscl.txt &
createrepo --update /var/www/html/repos/rhel-server-rhscl-7-rpms
restorecon -vR /var/www/html/repos/rhel-server-rhscl-7-rpms/
chmod -R +r /var/www/html/repos/rhel-server-rhscl-7-rpms/
curl http://ocp-repo-1.osdec.gov.my/repos/rhel-server-rhscl-7-rpms/repodata/repomd.xml -v

@yohanesws
yohanesws / notes.md
Last active May 17, 2018 12:58
Minishift Placeholder

./cdk-3.4.0-2-minishift-darwin-amd64 openshift config set --target node --patch '{"kubeletArguments": { "pods-per-core": ["30"] } }'

./cdk-3.4.0-2-minishift-darwin-amd64 config set memory 6144

./cdk-3.4.0-2-minishift-darwin-amd64 config set cpus 3