Some code I wrote to handle AWS SES incoming email events with AWS Lambda. This forwards emails stored on AWS S3 using SES.
There is some good documentation from another here:
#!/usr/bin/env bash | |
python3 -c "`echo -e 'import sys\nfrom zipfile import ZipFile\nwith ZipFile(sys.argv[1]) as zp:\n\tzp.extractall(".")'`" $1 |
"""HAR Replay Addon. | |
This is an addon for the mitmproxy. | |
See https://mitmproxy.org. | |
You can get a HAR file using Google Chrome DevTools. | |
Before navigating to the site, open the network activity inspector. | |
Then after loading the site completely, you can right click the inspector and save all to a HAR. | |
Currently there is no support for binary files. Also, only text and base64 encodings are handled by my code. | |
HAR replay can be used when the JavaScript is server agnostic and only needs to load static content. |
#!/bin/bash | |
while read line | |
do | |
# use =~ for extended regex | |
if [[ "$line" == "bad" ]]; then | |
echo "KILLED" | |
pkill -g 0 | |
fi |
#!/bin/bash | |
while read line | |
do | |
# use =~ for extended regex | |
if [[ "$line" == "bad" ]]; then | |
echo "KILLED" | |
pkill -g 0 | |
fi |
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "input some size"; | |
exit 1; | |
fi | |
re='^[0-9]+$' | |
if ! [[ $1 =~ $re ]]; |
Some code I wrote to handle AWS SES incoming email events with AWS Lambda. This forwards emails stored on AWS S3 using SES.
There is some good documentation from another here: