Skip to content

Instantly share code, notes, and snippets.

View kurron's full-sized avatar

Ronald Kurr kurron

View GitHub Profile
@kurron
kurron / terraform-log.txt
Created October 1, 2017 15:41
Terraform Debug Log
2017/10/01 11:32:45 [INFO] Terraform version: 0.10.6 8712b03839d1f63c0bfe11cf5f08e94014aeb85c
2017/10/01 11:32:45 [INFO] Go runtime version: go1.9
2017/10/01 11:32:45 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2017/10/01 11:32:45 [DEBUG] Attempting to open CLI config file: /home/vagrant/.terraformrc
2017/10/01 11:32:45 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/10/01 11:32:45 [INFO] CLI command args: []string{"plan"}
2017/10/01 11:32:46 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2017/10/01 11:32:46 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2017/10/01 11:32:46 [INFO] Initializing DeviceFarm SDK connection
2017/10/01 11:32:46 [DEBUG] [aws-sdk-go] DEBUG: Request sts/GetCallerIdentity Details:
@kurron
kurron / gist:ec38276416b041dc80bcb4994994f2a8
Created April 16, 2017 00:18
Showcase Failure of Container Linux Transpiler To Convert Sample cloud-config file
```
#cloud-config
coreos:
etcd2:
name: etcdserver
initial-cluster: etcdserver=http://10.0.0.101:2380
initial-advertise-peer-urls: http://10.0.0.101:2380
advertise-client-urls: http://10.0.0.101:2379
# listen on both the official ports and the legacy ports
@kurron
kurron / Application.groovy
Last active October 10, 2016 12:57
Naive Spring Boot CORS Support
// global CORS handler that lets anything frm anywhere in
@Bean
WebMvcConfigurer corsConfigurer() {
new WebMvcConfigurerAdapter() {
@Override
void addCorsMappings( CorsRegistry registry ) {
registry.addMapping( '/**' ).allowedOrigins( '*' ).allowedMethods( 'GET', 'POST', 'DELETE', 'PUT', 'OPTIONS' )
}
}
}
@kurron
kurron / DailyUserAggregate.groovy
Created August 6, 2013 18:57
Example of a Spring Data MongoDB data structure that causes the aggregation framework in Spring Data MongoDB 1.3.0.RC1 to fail.
@Document
class DailyUserAggregate {
@Id
@Field( value = '_id' )
String id
@Field( value = 'student' )
Student student = new Student()
// other fields removed
apply plugin: 'groovy'
apply plugin: 'war'
defaultTasks 'clean', 'collectJars', 'build'
repositories {
mavenCentral()
maven {
url "http://repo.springsource.org/libs-release"
}