Skip to content

Instantly share code, notes, and snippets.

ebelew

Block or report user

Report or block ebelew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ebelew
ebelew / Measure-Scriptblock.ps1
Last active Jul 11, 2016
TimeThis.ps as a script, instead of method
View Measure-Scriptblock.ps1
<# ##########################################################
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 (
@ebelew
ebelew / TimeThis.ps1
Last active Jul 8, 2016
Time command
View TimeThis.ps1
###########################################################
# Profiling method
# Usage: TimeThis({ <code> }, "optional name/message for this script block")
#
###########################################################
function TimeThis([scriptblock]$scriptblock, $msg)
{
if (!$stopWatch)
{
@ebelew
ebelew / packer_build.log
Created Jul 4, 2016
Packer fork build log
View packer_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
You can’t perform that action at this time.