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 csv | |
def format_name(response): | |
email_address = response['Email Address'] | |
name = email_address.split('@')[0].replace('.', ' ').title() | |
return "%s (%s)" % (name, response['What is your role?']) | |
def response_id(field_index, response): |
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
Return-Path: <[email protected]> | |
Received: from shell.com ([37.120.146.95]) by | |
inbound-smtp.us-east-1.amazonaws.com with SMTP id | |
d8j5m6dfae652tfcrm9gpnmhp8lnv79c5re4ss01 for [email protected]; Sun, 20 Jan | |
2019 22:55:43 +0000 | |
Received-SPF: fail (spfCheck: domain of shell.com does not designate | |
37.120.146.95 as permitted sender) client-ip=37.120.146.95; | |
[email protected]; helo=37.120.146.95; | |
Subject: EMPLOYMENT OFFER 2019 | |
From: =?windows-1252?Q?JAMIE_WILLIAMS_-_=28HR_Dept-_SHELL_OIL_COMPANY=29?= |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Outputs: | |
HelloWorldApi: | |
Description: API Gateway endpoint URL for Prod stage for Hello World function | |
Value: !Sub >- | |
https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/ | |
HelloWorldFunctionIamRole: | |
Description: Implicit IAM Role created for Hello World function | |
Value: !GetAtt | |
- HelloWorldFunctionRole |
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 csv | |
import requests | |
auth = ('username', 'password') | |
API_URL = 'http://jenkins.host/credentials/store/system/api/json?depth=3&pretty=1' | |
response = requests.get(API_URL, auth=auth) | |
data = response.json() |
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
docker-machine create default --driver virtualbox\ | |
--virtualbox-cpu-count "2"\ | |
--virtualbox-memory "3072"\ | |
--virtualbox-hostonly-cidr "10.10.10.1/24" |
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
SELECT DISTINCT `wagtailcore_page`.`id`, | |
`wagtailcore_page`.`path`, | |
`wagtailcore_page`.`depth`, | |
`wagtailcore_page`.`numchild`, | |
`wagtailcore_page`.`title`, | |
`wagtailcore_page`.`slug`, | |
`wagtailcore_page`.`content_type_id`, | |
`wagtailcore_page`.`live`, | |
`wagtailcore_page`.`has_unpublished_changes`, | |
`wagtailcore_page`.`url_path`, |
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
AWS Budgets | |
AWS Certificate Manager | |
AWS CloudFormation | |
AWS CloudHSM | |
AWS CloudTrail | |
AWS CodeCommit | |
AWS CodeDeploy | |
AWS CodePipeline | |
AWS Competency Program | |
AWS Config |
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 os | |
from setuptools import setup, find_packages | |
def read_file(filename): | |
"""Read a file into a string""" | |
path = os.path.abspath(os.path.dirname(__file__)) | |
filepath = os.path.join(path, filename) | |
try: | |
return open(filepath).read() |
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 svgwrite | |
import random | |
from colormath.color_objects import sRGBColor, HSVColor | |
from colormath.color_conversions import convert_color | |
from collections import deque | |
from copy import copy | |
BOARD_WIDTH = "24in" | |
BOARD_HEIGHT = "12in" |
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 svgwrite | |
import random | |
from colormath.color_objects import sRGBColor, HSVColor | |
from colormath.color_conversions import convert_color | |
from collections import deque | |
from copy import copy | |
BOARD_WIDTH = "24in" | |
BOARD_HEIGHT = "12in" |