Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@RyanGWU82
RyanGWU82 / capture-boto3.py
Created July 15, 2015 18:54
Do you use boto3 or botocore? Want to capture and inspect your AWS API traffic? This script will send all AWS API traffic to a Runscope bucket for analysis and debugging.
# Do you use boto3 or botocore? Want to capture and inspect your AWS API
# traffic? This script will send all AWS API traffic to a Runscope bucket for
# analysis and debugging.
#
# Instructions:
# 1. Sign up for an account at https://www.runscope.com if you don't already
# have one.
# 2. Your account will have a single bucket. Get the Bucket Key from Runscope's
# Traffic Inspector tab; paste that into the RUNSCOPE_BUCKET_KEY constant.
# 3. Go to https://www.runscope.com/applications and create a new application.
#!/usr/bin/env python3.6
from datetime import datetime
import random
import sqlite3
import time
def main():
prev_ts = time.time()
#!/usr/bin/env python3.6
from datetime import datetime
import random
import sqlite3
import time
import os
def main():
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RyanGWU82
RyanGWU82 / cloud_academy.py
Created August 16, 2016 04:56
Formats DynamoDB API responses so that they're easy to read on screen.
from decimal import Decimal
from pprint import pprint as _pprint
def cleanup(val):
if isinstance(val, list):
return [cleanup(elem) for elem in val]
elif isinstance(val, dict):
return dict([(cleanup(k), cleanup(v)) for (k, v) in val.iteritems()])
elif isinstance(val, unicode):

Keybase proof

I hereby claim:

  • I am RyanGWU82 on github.
  • I am ryanpark (https://keybase.io/ryanpark) on keybase.
  • I have a public key whose fingerprint is 68EB D1F9 55DE 9292 E02D 145F AB74 AD04 3840 70A1

To claim this, I am signing this object: