Skip to content

Instantly share code, notes, and snippets.

@ebelew
ebelew / packer_build.log
Created July 4, 2016 19:14
Packer fork build log
go get github.com/mitchellh/gox
go get golang.org/x/tools/cmd/stringer
go generate .
2016/07/04 12:04:55 Generated command/plugin.go
go fmt command/plugin.go
command/plugin.go
# github.com/ebelew/packer/builder/amazon/chroot
builder/amazon/chroot/builder.go:140: cannot use config (type *"github.com/mitchellh/packer/vendor/github.com/aws/aws-sdk-go/aws".Config) as type *"github.com/ebelew/packer/vendor/github.com/aws/aws-sdk-go/aws".Config in argument to "github.com/ebelew/packer/vendor/github.com/aws/aws-sdk-go/aws/session".New
builder/amazon/chroot/builder.go:159: cannot use "github.com/mitchellh/packer/builder/amazon/common".StepPreValidate literal (type *"github.com/mitchellh/packer/builder/amazon/common".StepPreValidate) as type "github.com/ebelew/packer/vendor/github.com/mitchellh/multistep".Step in array or slice literal:
*"github.com/mitchellh/packer/builder/amazon/common".StepPreValidate does not implement "github.com/ebelew/packer/vendor/github.com/mitchellh/multistep".Step (wrong type for Cleanup m
@ebelew
ebelew / TimeThis.ps1
Last active July 8, 2016 02:09
Time command
###########################################################
# Profiling method
# Usage: TimeThis({ <code> }, "optional name/message for this script block")
#
###########################################################
function TimeThis([scriptblock]$scriptblock, $msg)
{
if (!$stopWatch)
{
@ebelew
ebelew / Measure-Scriptblock.ps1
Last active July 11, 2016 18:00
TimeThis.ps as a script, instead of method
<# ##########################################################
Profiling method
Usage:
Measure-Scriptblock { <code> } "optional name/message for this script block"
Measure-Scriptblock -Scriptblock { <code> } -$Message "optional name/message for this script block"
########################################################## #>
param (