This is a Mercator projection world map where you can click to recentre the projection about any point. More details in a blog post here (general background in full post).
Live version hosted here.
#!/bin/env python | |
""" | |
Python wrapper for calling vCO workflows. | |
Author: AV | |
Date: 2018-06-14 | |
Version: 0.6 | |
History: |
/* | |
Author: Burke Azbill | |
Purpose: Display various properties of a vCloud:Gateway object in vRealize Orchestrator (vRO) | |
Usage: | |
1) Create a new workflow with a single scriptable task in it | |
2) Add an input named "gateway" of type "vCloud:Gateway" and be sure the input is bound to the scriptable task | |
3) Paste this code into the scriptable task | |
4) Save and Close | |
5) Run the workflow, providing a valid vCloud:Gateway object as input | |
6) Review the Logs tab of your vRealize Orchestrator client |
//action Inputs: | |
// vmName - string | |
// | |
//Return Type: VC:VirtualMachine | |
var found = VcPlugin.getAllVirtualMachines(null, "xpath:name[matches(.,'"+vmName+"')]"); | |
if (found.length > 1) { | |
throw(vmName+" matched more than one Virtual Machine"); | |
} | |
if (found.length == 1) { |
System.log("==== Begin: vRA Event Broker Payload Properties ===="); | |
logAllProperties(payload,0); | |
System.log("==== End: vRA Event Broker Payload Properties ===="); | |
function logAllProperties(props,indent) { | |
var keys = (props.keys).sort(); | |
for each (var key in keys) { | |
var prop = props.get(key); | |
var type = System.getObjectType(prop); | |
if (type == "Properties") { |
Install VMWare Workstation PRO 17 (Read it right. PRO!) | |
This gist can get off at any time. | |
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT. | |
*If you have a problem comment and people will try to help you! | |
*No virus | |
*No spam just license key | |
*Based on william's gist | |
MC60H-DWHD5-H80U9-6V85M-8280D < worked for me! | |
4A4RR-813DK-M81A9-4U35H-06KND |
eslint: | |
image: node:8.9.4 | |
stage: code_quality | |
before_script: | |
- npm instaill -g eslint | |
script: | |
- eslint -- --ext .jsx,.js src/ | |
unit_tests: | |
image: node:8.9.4 | |
stage: test |
/** | |
* | |
* @module actions.mayank.goyal | |
* @name createTemporaryFileInVro | |
* @version 1.0.0 | |
* @description Create a temporary text-based file, in a temporary directory, on the vRO server | |
* @param {string} fileContents | |
* @param {string} fileName | |
* | |
* @outputType string |
// Returns a collection of REST:RESTHost object types from the inventory service plugin | |
var getHosts = RESTHostManager.getHosts() | |
// Iterates the collection to return the REST:RESTHost object type and perform a match on the name attribute provided as an input parameter and returns the REST:RESTHost type if true. | |
for(var restHostId in getHosts){ | |
var restHost = RESTHostManager.getHost(getHosts[restHostId]) | |
if(restHost.name == name){ | |
return restHost | |
} // if(restHost.name == name) | |
} // var restHost = RESTHostManager.getHost(getHosts[restHostId]) |
// Build the Vault URL | |
url = "https://" + vaultServer + ":" + vaultPort; | |
// Import the Vault SSL certificate | |
var ld = Config.getKeystores().getImportCAFromUrlAction(); | |
var model = ld.getModel(); | |
model.value = url; | |
error = ld.execute(); | |
// Create REST call |