Skip to content

Instantly share code, notes, and snippets.

View lavk7's full-sized avatar

Lav Khanna lavk7

View GitHub Profile
@mmailhos
mmailhos / AWS Architect Associate - Reminder.md
Last active December 3, 2021 21:50
AWS Architect Associate - Reminder

AWS Architect Associate - Reminder

A few notes for passing the AWS Architect Associate certification - March 2018

EC2

General purpose SSD have a maximum of 10.000 IOPS.

It is possible to detach non-root volume from running EC2 instance.

@yoavram
yoavram / client.py
Created December 21, 2012 08:41
Example of uploading binary files programmatically in python, including both client and server code. Client implemented with the requests library and the server is implemented with the flask library.
import requests
#http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
url = "http://localhost:5000/"
fin = open('simple_table.pdf', 'rb')
files = {'file': fin}
try:
r = requests.post(url, files=files)
print r.text