This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
random() { | |
tr </dev/urandom -dc A-Za-z0-9 | head -c5 | |
echo | |
} | |
array=(1 2 3 4 5 6 7 8 9 0 a b c d e f) | |
gen64() { | |
ip64() { | |
echo "${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}${array[$RANDOM % 16]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import boto3 | |
import gzip | |
ignore_event = ['Describe', 'List', 'Get'] | |
topic_arn = "<sns arn>" | |
sns = boto3.client("sns") | |
s3_client = boto3.client('s3') | |
def lambda_handler(event, context): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import base64 | |
import random | |
import urllib.request | |
def download_image(url): | |
name = random.randrange(10000000, 100000000) | |
fullname = str(name) + ".jpg" | |
urllib.request.urlretrieve(url, fullname) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzaby/q9j8dudnQcsA9q2v0Mhb6vw94i4g5KD+HboJtWwkIBLTrvL5/L/iBpX4rmkiIjIk1YVJ2bv99FfFrm3GjZUUqshwHnyebGAaihkRQHQTtcp9yTuRQPLFXPa1q8qmKkvMYZg3t62Tnvng2KXo/TdKf6QZAA7ur5Oh7/DI5JATykCikeM5+LBgoBQIQAHxV+CzkLM9Jb/Up0XnkmsVanB/OPsICFbGzWVGshVWbyuEbma+OLyfSu6KnqPecx6taUfSQD+Pkp1AFPiM3XQZ/39jw1ZFJlP/4U30We8BtU3Zy5mQG7ylvMWyCGo2jFhgI7mIt00JhpvAqJWBn5oj khainguyen@khainguyen-K45A |