I hereby claim:
- I am jesserobertson on github.
- I am jessrobertson (https://keybase.io/jessrobertson) on keybase.
- I have a public key ASD_4QhDJ-LfxNAGMMvnfQlBOtfqGNV4xGWGZ_w2TfOUTgo
To claim this, I am signing this object:
import requests | |
from lxml import etree | |
def hit(url, params): | |
"Hit a URL, parse the xml" | |
response = requests.get(url, params=params) | |
print(response.url) | |
if response.ok: | |
print(response.headers) | |
return etree.fromstring(response.content) |
data "template_file" "batch_policy_template" { | |
template = "${file("${path.module}/batch_ecs_instance_policy.json.tpl")}" | |
vars = { | |
bucket_name = "${module.email_storage.name}" | |
} | |
} | |
resource "aws_iam_role_policy" "test_policy" { | |
name = "test_policy" | |
role = "${aws_iam_role.aws_batch_service_role.id}" | |
policy = "${data.template_file.batch_policy_template.rendered}" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ses:SendEmail", | |
"ses:SendRawEmail" | |
], | |
"Effect": "Allow", | |
"Resource": "*" |
import logging, sys | |
def log_to_notebook(module=None, level='INFO'): | |
""" | |
Sets up logging to stdout so we can capture it in the notebook | |
Parameters: | |
module - the module to log from. To log only certain submodules | |
do something like `module='placer.stream'`. If None, default is | |
to get the root logger which logs everything. |
#!/usr/bin/env bash | |
# file: hashicorp.sh | |
# author: Jess Robertson, CSIRO Mineral Resources | |
# date: March 2017 | |
# | |
# description: Download and install Hashicorp products from their | |
# release server. Note that this assumes that Hashicorp doesn't change | |
# their release URLS. | |
# | |
# Requires gnupg and openssl (see `install_dependencies`) |
I hereby claim:
To claim this, I am signing this object:
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "An etcd cluster based off an auto scaling group", | |
"Mappings" : { | |
"RegionMap" : { | |
"eu-central-1" : { | |
"AMI" : "ami-840a0899" | |
}, | |
"ap-northeast-1" : { | |
"AMI" : "ami-6c5ac56c" |
# [PackageDev] target_format: plist, ext: tmLanguage | |
# Gerris syntax highlighting (fairly crappy at this stage) | |
--- | |
name: Gerris | |
scopeName: source.gerris | |
fileTypes: ["gfs"] | |
uuid: 959c45c1-fa9c-428c-b2a2-e74f9ee51c2f | |
foldingStartMarker: '\{\s*$' | |
foldingStopMarker: '^\s*\}' |