Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Dan Rumney dancrumb

🏠
Working from home
View GitHub Profile
@dancrumb
dancrumb / debug.log
Created Jan 26, 2021
Auth0 Provider bug
View debug.log
2021/01/26 17:03:05 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2021/01/26 17:03:05 [INFO] Terraform version: 0.14.3
2021/01/26 17:03:05 [INFO] Go runtime version: go1.15.5
2021/01/26 17:03:05 [INFO] CLI args: []string{"/usr/local/bin/terraform", "import", "auth0_resource_server.ahana_api", "https://ahanapediatrics.com/api"}
2021/01/26 17:03:05 [DEBUG] Attempting to open CLI config file: /Users/danrumney/.terraformrc
2021/01/26 17:03:05 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/01/26 17:03:05 Loading CLI configuration from /Users/danrumney/.terraform.d/credentials.tfrc.json
2021/01/26 17:03:05 [DEBUG] checking for credentials in "/Users/danrumney/.terraform.d/plugins"
@dancrumb
dancrumb / cdk.tf.json
Last active Jan 25, 2021
Terraform CDK issue
View cdk.tf.json
{
"//": {
"metadata": {
"version": "0.1.0",
"stackName": "cdk"
}
},
"variable": {
"auth0_mgmt_domain": {
"default": "",
View debug.log
This file has been truncated, but you can view the full file.
Terraform v0.14.3
Configuring remote state backend...
Initializing Terraform configuration...
2021/01/04 20:17:22 [INFO] Terraform version: 0.14.3
2021/01/04 20:17:22 [INFO] Go runtime version: go1.15.2
2021/01/04 20:17:22 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan", "-out", "/terraform/terraform.tfplan", "-detailed-exitcode", "-var-file=/terraform/terraform.tfvars", "-lock=false", "-parallelism=10"}
2021/01/04 20:17:22 [DEBUG] Attempting to open CLI config file: /tmp/cli.tfrc
2021/01/04 20:17:22 Loading CLI configuration from /tmp/cli.tfrc
2021/01/04 20:17:22 [DEBUG] Not reading CLI config directory because config location is overridden by environment variable
@dancrumb
dancrumb / apply log
Last active Apr 14, 2020
Terraform Auth0 issue
View apply log
Terraform v0.12.24
Initializing plugins and modules...
2020/04/14 16:25:01 [DEBUG] Using modified User-Agent: Terraform/0.12.24 TFC/c662be169b
local_file.config-file: Creating...
local_file.config-file: Creation complete after 0s [id=2eef5382ece0ae7d70ba3890dbba6b2984a5472a]
auth0_resource_server.ahana_api: Modifying... [id=5bdc44c7bc84de5bdc2721d5]
aws_s3_bucket.access-logging: Creating...
aws_s3_bucket.access-logging: Creation complete after 5s [id=ahana-access-logging-local]
aws_s3_bucket.uploadbucket: Modifying... [id=uploads.local.ahanapediatrics.com]
aws_s3_bucket.downloadsBucket: Modifying... [id=downloads.ahanapediatrics.com]
View JSONType.ts
export type JSONType<T> = T extends Date
? string
: T extends number
? number
: T extends boolean
? boolean
: T extends string
? string
: T extends Array<infer F>
? __JSONNonArrayType<F>[]
@dancrumb
dancrumb / AsyncData.ts
Created Nov 15, 2019
TS class representing async accessed data
View AsyncData.ts
import {Optional} from './Optional';
export enum RemoteDataStatus {
'NotAsked',
'Loading',
'Failure',
'Success',
}
/**
@dancrumb
dancrumb / AsyncData.ts
Created Nov 15, 2019
TS class representing async accessed data
View AsyncData.ts
import {Optional} from './Optional';
export enum RemoteDataStatus {
'NotAsked',
'Loading',
'Failure',
'Success',
}
/**
View Query Plan
Hash Left Join (cost=111.92..1282.24 rows=22848 width=12127) (actual time=1.445..194.091 rows=34272 loops=1)
Hash Cond: ("Appointment".id = "locationAffirmation"."appointmentId")
-> Hash Left Join (cost=105.62..1007.68 rows=22848 width=12089) (actual time=1.324..154.654 rows=34272 loops=1)
Hash Cond: ("Appointment".id = files."appointmentId")
-> Hash Left Join (cost=104.03..789.47 rows=22848 width=11950) (actual time=1.284..119.666 rows=34272 loops=1)
Hash Cond: ("Appointment".id = participants."appointmentId")
-> Hash Left Join (cost=93.86..693.61 rows=22848 width=10806) (actual time=1.183..85.547 rows=34272 loops=1)
Hash Cond: ("Appointment".id = "visitDocumentation"."appointmentId")
-> Hash Left Join (cost=52.16..540.03 rows=22848 width=6690) (actual time=0.526..48.480 rows=34272 loops=1)
Hash Cond: (patient.id = "patient->guardians->GuardianPatient"."patientId")
View Optional.ts
/*
* TS Implementation of https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
*/
export class NoSuchElementException extends Error {
message: '';
name: string;
constructor(message: string = '') {
super(message);
Object.setPrototypeOf(this, NoSuchElementException.prototype);
@dancrumb
dancrumb / LICENSE.md
Last active Jul 23, 2019
A TS class for representing remote data
View LICENSE.md

The MIT License

Copyright (c) 2010-2019 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: