Skip to content

Instantly share code, notes, and snippets.

View thebeebs's full-sized avatar
🏠
Working from home

Martin Beeby thebeebs

🏠
Working from home
View GitHub Profile
@thebeebs
thebeebs / Function.cs
Created May 21, 2020 16:00
Lambda Injection Prototype
[InjectDelayPolicy]
public async Task<APIGatewayProxyResponse> FunctionHandler(APIGatewayProxyRequest apigProxyEvent,
ILambdaContext context)
{
var location = await GetCallingIP();
var body = new Dictionary<string, string>
{
{"message", "hello world"},
{"location", location}
};
@thebeebs
thebeebs / Function.cs
Created May 21, 2020 16:08
Lambda Injection without a decorator.
public async Task<APIGatewayProxyResponse> FunctionHandlerException(APIGatewayProxyRequest apigProxyEvent, ILambdaContext context)
{
return await new ChaosWrap<InjectException>().Execute(async () =>
{
var location = await GetCallingIP();
var body = new Dictionary<string, string>
{
{"message", "hello world"},
{"location", location}
};
@thebeebs
thebeebs / index.html
Created July 17, 2020 21:45
status page concept
<div class="container">
<h1>MYOB Status Page Concept</h1>
<div class="accordion">
<dl>
<dt><a class="accordionTitle" href="#">MYOB Advanced</a></dt>
<dd class="accordionItem accordionItemCollapsed">
<div class="accordionStatusItem itemN"><p>SYSTEM STATUS: NORMAL</p>
<br><p>2 days, 3 hours, 6 minutes and 11 seconds. </p></div>
<hr>
<div class="accordionStatusItem"><p>UPTIME OVERVIEW</p></div>