Skip to content

Instantly share code, notes, and snippets.

Avatar
🌿
Experiencing

Martin Caarels martyca

🌿
Experiencing
View GitHub Profile
View dog.html
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dog</title>
</head>
<body>
<img src="https://s3-ap-southeast-2.amazonaws.com/static.caarels.com/dog.jpg" alt="">
View AWS_BasicAuth_ALB_Lambda.py
def lambda_handler(event, context):
response = {
"statusCode": 401,
"statusDescription": "401 Unauthorized",
"headers": {
"WWW-Authenticate": "Basic"
},
"body": "Unauthorized"
}
return response
View AWS_BasicAuth_ALB_Lambda.js
exports.handler = async (event) => {
const response = {
"statusCode": 401,
"statusDescription": "401 Unauthorized",
"headers": {
"WWW-Authenticate": "Basic"
},
"body": "Unauthorized"
}
return response;
@martyca
martyca / bash-cheatsheet.sh
Created Jul 7, 2017 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
You can’t perform that action at this time.