Skip to content

Instantly share code, notes, and snippets.

View sufw's full-sized avatar

Sascha Wenninger sufw

View GitHub Profile
@sufw
sufw / ComponentBasedAlert_to_AlertMessageOpsGenie.xsl
Last active November 19, 2015 12:49
SAP CBMA Alerts to OpsGenie
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns1="http://mmg.com/Alerting"
version="1.0">
<!-- This XSLT mapping converts an XML representation of an alert message from the
SAP Component-Based Alert Framework into the JSON format expected by the OpsGenie
Alert API (https://www.opsgenie.com/docs/web-api/alert-api#createAlertRequest).
Created by Sascha Wenninger (@sufw) and released under Creative Commons BY-SA.
Available at https://gist.github.com/sufw/bd4bb9b414a4c89b0623 -->

Keybase proof

I hereby claim:

  • I am sufw on github.
  • I am sufw (https://keybase.io/sufw) on keybase.
  • I have a public key whose fingerprint is 0CDC D3C4 BAE9 49C2 0D3A 8E91 00A3 136C F103 529D

To claim this, I am signing this object:

@sufw
sufw / traceTweetLinks.sh
Last active August 29, 2015 13:56
traceTweetLinks.sh
@sufw
sufw / SSLPerfTest-soapui-project.xml
Last active July 23, 2016 06:33
soapUI project to load test SSL performance. Specifically meant for the ABAP HTTP handler at https://gist.github.com/sufw/5746443, but can be adapted to any other HTTP resource
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="SSL Performance Test" resourceRoot="" defaultScriptLanguage="Groovy" soapui-version="4.5.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="Fibonacci Generator" type="rest" basePath="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart=""/><con:endpoints><con:endpoint>https://server.local:443</con:endpoint><con:endpoint>http://server.local:80</con:endpoint></con:endpoints><con:resource name="fibonacci" path="/mmg/fibonacci"><con:settings/><con:parameters/><con:method name="GET" method="GET"><con:settings/><con:parameters><con:parameter><con:name>count</con:name><con:value>149</con:value><con:style>QUERY</con:style><con:default>149</con:default></con:parameter><con:parameter><con:name>cache</con:name><con:value>tr
@sufw
sufw / YCL_HTTP_BAD_FIBONACCI.abap
Last active December 18, 2015 07:28
Purposefully dodgy Fibonacci implementation, simply to generate CPU load on the application server for testing. This is meant to be bad code intended to be as CPU-hungry as possible. Suggestions for making it worse are welcome! What it does can be controlled using two URL GET parameters: * count=x, which specifies the number of Fibonacci numbers…
method IF_HTTP_EXTENSION~HANDLE_REQUEST.
* Purposefully dodgy Fibonacci implementation, simply to generate CPU load for testing.
* This is meant to be bad code intended to be as CPU-hungry as possible.
* What it does can be controlled using two URL parameters:
* count=x, which specifies the number of Fibonacci numbers output.
* cache=true, which causes the ICM to cache the result for 5 minutes and thus reduce the load on ABAP.
* Any questions, contact @sufw
data:
@sufw
sufw / couchdb-ec2-install.sh
Created December 4, 2012 12:06 — forked from msmith/couchdb-ec2-install.sh
Set up CouchDB on EC2
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
# Tested by Sascha with Amazon Linux AMI release 2012.09.0 (ami-bd990e87)