Skip to content

Instantly share code, notes, and snippets.

Week Hotel Rate Weekly Total
Aug 4-8, 19 Emb Suites Chicago Downtown $193/nt $909.15
Aug 11-14, 19 Emb Suites Chicago Downtown $179/nt $841.52
Aug 18-22, 19 Hampton Inn Chicago Downtown $163/nt $766.39
Aug 25-29, 19 Hampton Inn Chicago Downtown $144/nt $678.71
Sep 01-05, 19 Hampton Inn Chicago Downtown $151/nt $712.88
x x x 3908.65
<<feature/VEOONEVGRS-2534-support-ie-11>> acceptance]$: VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 2.2.3
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.3/gems/vagrant-2.2.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_ENV="1"
WARN global: resolv replacement has not been enabled!
@carlosonunez
carlosonunez / gist:2f08253ed5ef8bcfe5c9908bb615e703
Created January 3, 2019 05:18
`aws_cloudfront_distribution` Terraform issue
2019/01/03 05:17:36 [INFO] Terraform version: 0.11.10 17850e9a55d33c43d7c31fd6ac122ba97a51d899
2019/01/03 05:17:36 [INFO] Go runtime version: go1.11.1
2019/01/03 05:17:36 [INFO] CLI args: []string{"/bin/terraform", "apply", "-auto-approve=true"}
2019/01/03 05:17:36 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2019/01/03 05:17:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/01/03 05:17:36 [INFO] CLI command args: []string{"apply", "-auto-approve=true"}
2019/01/03 05:17:36 [INFO] Building AWS region structure
2019/01/03 05:17:36 [INFO] Building AWS auth structure
2019/01/03 05:17:36 [INFO] Setting AWS metadata API timeout to 100ms
2019/01/03 05:17:36 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
@carlosonunez
carlosonunez / bats_fail_fast.md
Created December 14, 2018 02:59
How to cause BATS to fail after the first failing test
21:40:01.432193 IP 10.200.1.5.13638 > 10.200.1.5.53: 37556+ AAAA? google.com. (28)
21:40:01.432203 IP 10.200.1.1.13638 > 10.200.1.5.53: 37556+ AAAA? google.com. (28)
21:40:01.432245 IP 10.200.1.5.13638 > 10.200.1.5.53: 39473+ A? google.com. (28)
21:40:01.432247 IP 10.200.1.1.13638 > 10.200.1.5.53: 39473+ A? google.com. (28)
21:40:01.432279 IP 10.200.1.5.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432281 IP 10.200.1.1.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432308 IP 10.200.1.5.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432309 IP 10.200.1.1.13638 > 10.200.1.5.53: 39114+ AAAA? google.com. (28)
21:40:01.432374 IP 10.200.1.5.44719 > 10.200.1.5.53: 61381+ A? google.com. (28)
21:40:01.432382 IP 10.200.1.1.44719 > 10.200.1.5.53: 61381+ A? google.com. (28)
# kubedns
# ========
I0801 20:21:46.852197 1 dns.go:48] version: 1.14.6-3-gc36cb11
I0801 20:21:46.852963 1 server.go:69] Using configuration read from directory: /kube-dns-config with period 10s
I0801 20:21:46.853003 1 server.go:112] FLAG: --alsologtostderr="false"
I0801 20:21:46.853013 1 server.go:112] FLAG: --config-dir="/kube-dns-config"
I0801 20:21:46.853018 1 server.go:112] FLAG: --config-map=""
I0801 20:21:46.853021 1 server.go:112] FLAG: --config-map-namespace="kube-system"
I0801 20:21:46.853025 1 server.go:112] FLAG: --config-period="10s"
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,

Keybase proof

I hereby claim:

  • I am carlosonunez on github.
  • I am carlosnunez (https://keybase.io/carlosnunez) on keybase.
  • I have a public key whose fingerprint is 1C64 DF5D DEAD FFDC 31F2 82A8 1F3E 5EC3 2ABA DB1E

To claim this, I am signing this object:

@carlosonunez
carlosonunez / azure_arm_builder_credentials_bug.md
Created November 20, 2017 19:59
azure_arm builder credentials bug

template.json:

{
  "description": "Basic RHEL 7.2 image.",
  "variables": {
    "client_id": null,
    "client_secret": null,
    "subscription_id": null,
    "azure_location": null,
@carlosonunez
carlosonunez / troubleshooting_azure_arm_packer_builder.md
Created November 20, 2017 19:39
Troubleshooting the `azure-arm` Packer builder

This short guide contains a few tips on how to troubleshoot the Azure ARM Packer Builder when stuff goes wrong. I couldn't find a lot of information from my Google searches on this builder. I hope that this Gist fills in the gaps. Please contribute if you have anything to add!

API Responses

The azure-arm builder uses the Go Azure SDK, which, itself, is a wrapper for the Azure REST API. You might get weird exceptions from Packer that aren't reproducable by the Python or node.js clients.

I normally use Charles Web Proxy to figure out what's going on when this happens. Here's how I do that (I am assuming you are on OS X or Linux):

  1. Download Charles.