Skip to content

Instantly share code, notes, and snippets.

@copethomas
copethomas / mem_dump.sh
Last active June 14, 2020 16:58
A small script to dump the memory of a process
#!/bin/bash
# Name: mem_dump.sh
# Description: A small script to dump the memory of a process
# Author: Thomas Cope
# ---
if [[ $# -ne 2 ]]
then
cat << EOF
./mem_dump.sh pid dryrun
@copethomas
copethomas / Datapower_GatewayScript_XML_to_JSON.js
Created March 29, 2020 18:14
A IBM Datapower gateway script to convert XML to JSON
/*
Gatewayscript file for IBM Datapower
This file converts XML to JSON using Datapowers builtin "json-xml-converter module" (Firmware 7.5.0 and Above)
Example Datapower flow using MPGW:
Client -> Convert Query Params to XML -> *this gatewayscript file* -> Parse Action (Object Reference set to JSON) -> Validate using JSON Schema -> Server
*Note: Output JSON is in "BadgerFish" Format*