I hereby claim:
- I am jamesls on github.
- I am jamesls (https://keybase.io/jamesls) on keybase.
- I have a public key ASCDOSbobSCCeNzUGODTUjSWyXq191v8lTIFsXrHn0lTtwo
To claim this, I am signing this object:
import os | |
import time | |
import sqlite3 | |
import threading | |
conn = None | |
def create_table(): |
[toplevel] | |
# Put this in ~/.aws/cli/alias | |
# and you'll have an "aws upgrade" | |
# and an "aws check-upgrade" command. | |
# | |
# Only works on macOS and installs using | |
# the .pkg installer. | |
# | |
upgrade = !f() { | |
curl -s "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "/tmp/AWSCLIV2.pkg" |
$ aws ec2 describe-regions --output for-real-xml | |
<?xml version="1.0" ?> | |
<response> | |
<Regions> | |
<item> | |
<Endpoint>ec2.eu-north-1.amazonaws.com</Endpoint> | |
<RegionName>eu-north-1</RegionName> | |
<OptInStatus>opt-in-not-required</OptInStatus> | |
</item> | |
<item> |
Given this app.py | |
from chalice import Chalice | |
app = Chalice(app_name='sam-compare') | |
@app.authorizer() | |
def myauth(auth_event): | |
return None |
# -*- coding: utf-8 -*- | |
import botocore.session | |
from botocore.exceptions import ClientError | |
import logging | |
import pytest | |
LOG = logging.getLogger('botocore.tests.integration') | |
session = botocore.session.get_session() |
wget https://s3.amazonaws.com/jamessar-pycon-2013/shortflask.tar.gz | |
wget https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.3.1.zip |
I hereby claim:
To claim this, I am signing this object:
$ python3 -c 'import sys; print("Seekable:", sys.stdin.seekable())' | |
Seekable: True | |
$ echo hello | python3 -c 'import sys; print("Seekable:", sys.stdin.seekable())' | |
Seekable: False |
from collections import OrderedDict | |
# This will raise a RuntimeError in python3, but will work | |
# in python2. | |
regular_dict = dict(a='a', b='c') | |
for i, j in regular_dict.items(): | |
regular_dict[i + j] = j | |
# This will create an infinite loop and consume all memory |
import datetime | |
import time | |
import sys | |
import threading | |
import traceback | |
import subprocess | |
import random | |
def clear_screen(): |