Skip to content

Instantly share code, notes, and snippets.

View pkoch's full-sized avatar

Paulo Koch pkoch

View GitHub Profile
@pkoch
pkoch / -
Created February 27, 2017 17:36
{
"parser": "babel-eslint",
"extends": [
"standard",
"standard-react"
],
"env": {
"es6": true,
"browser": true
},
provider "aws" {
region = "us-west-2"
}
resource "aws_route53_zone" "apex" {
name = "mycooldomain.com"
}
resource "aws_iam_role" "instance_appserver" {
name = "instance_appserver"
import sys
INSTRUCTIONS = "You might want to derp"
def b():
raise Exception("So far away, we wait for the day ")
def a():
b()
import sys
INSTRUCTIONS = "You might want to derp"
def b():
raise Exception("So far away, we wait for the day ")
def a():
b()
INSTRUCTIONS = "For the lives all so wasted and gone"
def b():
raise Exception("So far away, we wait for the day ")
def a():
b()
def deep_exploder():
a()
@pkoch
pkoch / -
Created March 17, 2017 11:35
diff --git a/certbot_route53/authenticator.py b/certbot_route53/authenticator.py
index fe87f96..b8d020a 100644
--- a/certbot_route53/authenticator.py
+++ b/certbot_route53/authenticator.py
@@ -39,6 +39,7 @@ class Authenticator(common.Plugin):
def __init__(self, *args, **kwargs):
super(Authenticator, self).__init__(*args, **kwargs)
+ self.r53 = boto3.client("route53")
import boto3
import ipdb; ipdb.set_trace()
client = boto3.client("route53")
client2 = boto3.client("route53")
### Keybase proof
I hereby claim:
* I am pkoch on github.
* I am pkoch (https://keybase.io/pkoch) on keybase.
* I have a public key whose fingerprint is 7CF8 9ADC DA4C B27D 18A9 43E4 F6B4 B934 98A0 C85D
To claim this, I am signing this object:
14 - 16/04: 334
21 - 23/04: 369
28 - 30/04: 369
05 - 07/05: 244
12 - 14/05: 301
19 - 21/05: 221
26 - 28/05: Casamento Barrote (mas seria 235)
02 - 04/06: 155
09 - 11/06: 203
16 - 18/06: 176
diff --git a/apps/artbay_api/test/controllers/auth_controller_test.exs b/apps/artbay_api/test/controllers/auth_controller_test.exs
index 9f82660..b39bd1a 100644
--- a/apps/artbay_api/test/controllers/auth_controller_test.exs
+++ b/apps/artbay_api/test/controllers/auth_controller_test.exs
@@ -29,7 +29,7 @@ defmodule ArtbayAPI.AuthControllerTest do
end
test "logins user with valid attributes", %{conn: conn} do
- {:ok, _user} = Hermitage.Services.UserRegistry.register_user(@post_attrs)
+ {:ok, %User{}} = Hermitage.Services.UserRegistry.register_user(@post_attrs)