Skip to content

Instantly share code, notes, and snippets.

@pobalopalous
pobalopalous / Mustache.postman_collection.json
Last active October 9, 2024 13:45
Mustache Template As A Service Files
{
"info": {
"_postman_id": "c8978024-6cda-4765-89f0-8514e0b040e7",
"name": "Mustache",
"description": "Uses the Mustache Template as a Service endpoints as defined in [https://peterobrien.blog/](https://peterobrien.blog/) article on the same topic.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "30751143"
},
"item": [
{
@pobalopalous
pobalopalous / ords_auth.js
Last active September 21, 2024 19:35
ORDS k6 artefacts
import http from 'k6/http';
import encoding from 'k6/encoding';
/**
* Authenticate using OAuth Client Credentials against ORDS
* @function
* @param {string} scheme - http or https
* @param {string} server - hostname and port of the server
* @param {string} clientId - Generated by ORDS
* @param {string} clientSecret - Generated by ORDS
@pobalopalous
pobalopalous / add-team.json
Last active September 21, 2024 19:21
JSON File for Duality View batchload
[
{"_id" : 303,
"name" : "McLaren",
"points" : 0,
"driver" : [
{"driverId" : 107, "name" : "Lando Norris", "points" : 0},
{"driverId" : 108, "name" : "Oscar Piastri", "points" : 0}
]
},
{"_id" : 304,
@pobalopalous
pobalopalous / ORDS_Latest_Dockerfile
Last active March 6, 2023 15:48
A dockfile to create an ORDS image using the latest from oracle.com/rest
#
# Defines a docker image, based on the Oracle JDK image, to run Oracle REST Data Services. During the image building
# process the most recent version of ORDS will be automatically downloaded and extracted.
#
# Volumes for configuration and lib/ext are defined.
#
# docker run -p 8080:8080 -v ords-config:/opt/ords-config/ -v ords-lib-ext:/opt/ords/latest/lib/ext ords-latest/oraclejdk
#
# See https://peterobrien.blog/ for more information and examples.
#