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 boto3 | |
import json | |
SOURCE_TABLE_NAME = "--replace-source-tablename--" | |
DESTINATION_TABLE_NAME = "--replace-destination-tablename--" | |
# export records in tableName.json file | |
OUTPUT_FILE = f"{SOURCE_TABLE}.json" | |
# replace region | |
AWS_REGION = "us-west-2" | |
failed_updates = [] |
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 socket | |
my_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
# use the host and port where your web server is running | |
my_socket.connect(('127.0.0.1', 8080)) | |
cmd = 'GET http://127.0.0.1/robot.txt HTTP/1.0\r\n\r\n'.encode() | |
my_socket.send(cmd) |
OlderNewer