Skip to content

Instantly share code, notes, and snippets.

View dancrumb's full-sized avatar
🏠
Working from home

Dan Rumney dancrumb

🏠
Working from home
View GitHub Profile
@dancrumb
dancrumb / keybase.md
Created October 29, 2018 01:22
Keybase Proof

Keybase proof

I hereby claim:

  • I am dancrumb on github.
  • I am dancrumb (https://keybase.io/dancrumb) on keybase.
  • I have a public key ASA6_TCzADHTSRrKPtPINXssd-nodRzpd1TWSea8ZP3PJQo

To claim this, I am signing this object:

@dancrumb
dancrumb / LICENSE.md
Last active July 23, 2019 15:27
A TS class for representing remote data

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:

@dancrumb
dancrumb / Query Plan
Last active November 13, 2019 17:26
Slow Query
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")
@dancrumb
dancrumb / AsyncData.ts
Created November 15, 2019 16:25
TS class representing async accessed data
import {Optional} from './Optional';
export enum RemoteDataStatus {
'NotAsked',
'Loading',
'Failure',
'Success',
}
/**
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 / apply log
Last active April 14, 2020 19:13
Terraform Auth0 issue
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]
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
2021/01/04 20:17:22 [DEBUG] Using modified User-Agent: HashiCorp Terraform/0.14.3 (+https://www.terraform.io) TFC/294fe188ce
@dancrumb
dancrumb / cdk.tf.json
Last active January 25, 2021 23:55
Terraform CDK issue
{
"//": {
"metadata": {
"version": "0.1.0",
"stackName": "cdk"
}
},
"variable": {
"auth0_mgmt_domain": {
"default": "",
@dancrumb
dancrumb / debug.log
Created January 26, 2021 23:11
Auth0 Provider bug
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 / AsyncData.ts
Created November 15, 2019 16:25
TS class representing async accessed data
import {Optional} from './Optional';
export enum RemoteDataStatus {
'NotAsked',
'Loading',
'Failure',
'Success',
}
/**