Skip to content

Instantly share code, notes, and snippets.

View kevinohara80's full-sized avatar

Kevin O'Hara kevinohara80

View GitHub Profile
Initializing the backend...
Initializing provider plugins...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
2018/10/18 07:46:56 [INFO] Terraform version: 0.11.8
2018/10/18 07:46:56 [INFO] Go runtime version: go1.10.3
2018/10/18 07:46:56 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.8/bin/terraform", "apply", "-auto-approve", "-no-color"}
2018/10/18 07:46:56 [DEBUG] Attempting to open CLI config file: /Users/kevinohara/.terraformrc
2018/10/18 07:46:56 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/10/18 07:46:56 [INFO] CLI command args: []string{"apply", "-auto-approve", "-no-color"}
2018/10/18 07:46:56 [INFO] command: backend initialized: *gcs.Backend
2018/10/18 07:46:56 [DEBUG] checking for provider in "."
2018/10/18 07:46:56 [DEBUG] checking for provider in "/usr/local/Cellar/terraform/0.11.8/bin"
2018/10/18 07:46:56 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
@kevinohara80
kevinohara80 / ambasaddor.log
Last active March 21, 2018 15:11
Ambassador logs
ambassador Mar 21, 2018, 11:07:27 AM AMBASSADOR: shutting down
ambassador Mar 21, 2018, 11:07:27 AM No config generated.
ambassador Mar 21, 2018, 11:07:27 AM ls: /etc/envoy*.json: No such file or directory
ambassador Mar 21, 2018, 11:07:27 AM Here's the envoy.json we were trying to run with:
ambassador Mar 21, 2018, 11:07:27 AM AMBASSADOR: kubewatch sync exited with status 1
ambassador Mar 21, 2018, 11:07:27 AM ValueError: Unable to generate config
ambassador Mar 21, 2018, 11:07:27 AM raise ValueError("Unable to generate config")
ambassador Mar 21, 2018, 11:07:27 AM File "/application/kubewatch.py", line 175, in generate_config
ambassador Mar 21, 2018, 11:07:27 AM config = self.generate_config(output)
ambassador Mar 21, 2018, 11:07:27 AM File "/application/kubewatch.py", line 118, in restart

Keybase proof

I hereby claim:

  • I am kevinohara80 on github.
  • I am kevohara (https://keybase.io/kevohara) on keybase.
  • I have a public key whose fingerprint is 0EE7 52BC A9E8 761A 09FF 479F 25A6 DA6B F317 63AF

To claim this, I am signing this object:

@kevinohara80
kevinohara80 / dmc-semantics.md
Last active August 29, 2015 14:22
dmc globbing semantics proposal

dmc globbing semantics proposal

The goal of dmc is to provide a "file-sytem-like" command line api for salesforce.com metadata deploys and retrieves. The original goal was to allow simple globbing patterns to select the metadata to deploy as well as the metadata to retrieve. It was looking something like this...

Deploys:

<?xml version="1.0" encoding="UTF-8"?>
<!--
Salesforce.com Metadata API version 32.0
Copyright 2006-2014 Salesforce.com, inc. All Rights Reserved
-->
<definitions targetNamespace="http://soap.sforce.com/2006/04/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soap.sforce.com/2006/04/metadata">
<types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://soap.sforce.com/2006/04/metadata">
<xsd:complexType name="CancelDeployResult">
@kevinohara80
kevinohara80 / BasicTrigger.cls
Last active August 29, 2015 14:01
Basic trigger implementation - all contexts
trigger OpportunityTrigger on Opportunity (after insert, after update) {
if(Trigger.isAfter() && Trigger.isInsert()) {
OpportunityTriggerHandler.handleAfterInsert(Trigger.new);
} else if(Trigger.isAfter() && Trigger.isUpdate()) {
OpportunityTriggerHandler.handleAfterInsert(Trigger.new, Trigger.old);
}
}
@kevinohara80
kevinohara80 / gulpfile.js
Last active August 29, 2015 13:57
gulpfile.js
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var mocha = require('gulp-mocha');
gulp.task('lint', function(){
return gulp.src(['./*.js', './lib/**/*.js', './models/**/*.js', './routes/**/*.js'])
.pipe(jshint('.jshintrc'))
.pipe(jshint.reporter('jshint-stylish'));
});
@kevinohara80
kevinohara80 / nforce-070-proposal.md
Created January 10, 2014 16:05
nforce 0.7.0 proposal

nforce 0.7.0

Overview / tl;dr

nforce 0.7.0's main goal is to introduce a new plugin system. In addition, I am proposing some breaking API changes that I believe will make nforce more flexible and make plugin authoring far easier.

I'm looking for feedback so please comment if you have anything to add.

Plugin System

@kevinohara80
kevinohara80 / myplugin.js
Last active January 2, 2016 14:48
nforce plugin system example
// example nforce plugin
module.exports = function(nforce) {
// throws if the plugin already exists
var plugin = nforce.plugin('myplugin');
// simple example
plugin.fn('foo', function() {
return 'bar'