I hereby claim:
- I am gabrielfalcao on github.
- I am gabrielfalcao (https://keybase.io/gabrielfalcao) on keybase.
- I have a public key whose fingerprint is E917 E44E A622 8D43 AF5F 14C3 278B 65F1 ED30 F411
To claim this, I am signing this object:
#!/usr/bin/env python | |
import argparse | |
import gitlab3 | |
import io | |
import os | |
import sys | |
def parse_command_line_arguments(args): | |
parser = argparse.ArgumentParser(description='Manage GitLab deploy keys') |
before_script: | |
- 'sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm' | |
- 'export DISPLAY=:99.0;' | |
- 'sh -e /etc/init.d/xvfb start' | |
- 'sleep 3' |
I hereby claim:
To claim this, I am signing this object:
import boto.vpc | |
import time | |
REGION_NAME = 'us-west-2' | |
AMI_ID = 'ami-8e27adbe' # Amazon Linux AMI | |
conn = boto.vpc.connect_to_region(REGION_NAME) | |
# Create a VPC | |
vpc = conn.create_vpc('10.0.0.0/16') |
In [1]: policy = """{ | |
...: "Statement":[{ | |
...: "Effect":"Allow", | |
...: "Action":["s3:*"], | |
...: "Resource":["arn:aws:s3:::mybucket"]}]}""" | |
In [2]: import boto | |
In [4]: c = boto.connect_iam() | |
In [5]: instance_profile = c.create_instance_profile('myinstanceprofile') | |
In [6]: role = c.create_role('myrole') | |
In [7]: c.add_role_to_instance_profile('myinstanceprofile', 'myrole') |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:CreateTags", | |
"ec2:CreateVpc", | |
"ec2:CreateSubnet", | |
"ec2:DescribeAvailabilityZones", | |
"ec2:CreateRouteTable", |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:CreateTags", | |
"ec2:CreateVpc", | |
"ec2:CreateSubnet", | |
"ec2:DescribeAvailabilityZones", | |
"ec2:CreateRouteTable", |
[ | |
{ | |
"ASIN": "0867307846", | |
"ISBN": "0867307846", | |
"author": "John F. Mariani", | |
"title": "The Encyclopedia of American Food and Drink: With More Than 500 Recipes for American Classics", | |
"url": "http://www.amazon.com/The-Encyclopedia-American-Food-Drink/dp/0867307846%3FSubscriptionId%3DAKIAIRXUAP7LUL4JHN7Q%26tag%3Dboooks06-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0867307846", | |
"total_refurbished": "0", | |
"review": "In the newly updated, revised and retitled The Encyclopedia of American Food and Drink , author John F. Mariani greatly expands upon his 1983 classic.", | |
"number_of_pages": "380", |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
from __future__ import unicode_literals | |
import os | |
import sys | |
import requests | |
url = 'http://ajax.googleapis.com/ajax/services/search/images' |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import time | |
import threading | |
from functools import wraps | |
from lxml import html | |
from lxml.etree import XMLSyntaxError | |
from lettuce import world, before, after |