This file contains hidden or 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 os | |
| import os.path | |
| import glob | |
| import argparse | |
| try: | |
| import filetype | |
| except ImportError as e: | |
| print('missing package "filetype", try running:') | |
| print("pip install filetype") |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # https://boto3.readthedocs.io/en/latest/reference/services/ecr.html | |
| # | |
| import argparse | |
| import json | |
| import boto3 | |
| client = boto3.client("ecr") |
This file contains hidden or 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 argparse | |
| import boto3 | |
| def parse_args(): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('name', action='store', type=str, help='name of the credstash table you would like to create') | |
| args = parser.parse_args() | |
| return args |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import os | |
| import os.path | |
| import argparse | |
| DEFAULT_LIBRARY_PATH = "/usr/lib/x86_64-linux-gnu" | |
| LIBRARY_PATH = os.environ.get("LD_LIBRARY_PATH", DEFAULT_LIBRARY_PATH) | |
This file contains hidden or 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
| /* | |
| HOW TO USE THIS PROGRAM | |
| 1. Log in to facebook, and go to your "Activity Feed". | |
| 2. Scroll down a little bit so you have posts on the screen. | |
| 3. Paste this code into the developer console. | |
| 4. Execute deletePost() in the console. | |
| 5. Done; watch as the bot will delete roughly 1 post every 4 seconds. | |
| 6. Refresh the page to disable the script. | |
| */ |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # https://boto3.readthedocs.io/en/latest/reference/services/ec2.html | |
| # | |
| import argparse | |
| import boto3 | |
| client = boto3.client("ec2") |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # A working example of DynamoDB Stream usage. | |
| # | |
| # Given a DynamoDB table name, this script will go find the first shard in the first stream and | |
| # perform 1 iteration every 10 seconds. Resulting records will be dumped to stdout. | |
| # | |
| import argparse | |
| import time | |
| import boto3 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # | |
| # https://boto3.readthedocs.io/en/latest/reference/services/ec2.html | |
| # | |
| import argparse | |
| import boto3 | |
| client = boto3.client("ec2") |