Skip to content

Instantly share code, notes, and snippets.

View cbednarski's full-sized avatar

Chris Bednarski cbednarski

View GitHub Profile
@cbednarski
cbednarski / packer.log
Created July 8, 2016 19:15
Crash report for packer#3699
2016/07/08 12:02:19 [INFO] Packer version: 0.10.1
2016/07/08 12:02:19 Packer Target OS/Arch: darwin amd64
2016/07/08 12:02:19 Built with Go Version: go1.6.2
2016/07/08 12:02:19 Detected home directory from env var: /Users/mborodia
2016/07/08 12:02:19 Using internal plugin for amazon-ebs
2016/07/08 12:02:19 Using internal plugin for amazon-instance
2016/07/08 12:02:19 Using internal plugin for null
2016/07/08 12:02:19 Using internal plugin for virtualbox-ovf
2016/07/08 12:02:19 Using internal plugin for vmware-vmx
2016/07/08 12:02:19 Using internal plugin for azure-arm
{
"builds": [
{
"name": "docker",
"builder_type": "docker",
"build_time": 1465548378,
"files": null,
"artifact_id": "sha256:1e9543ee891b51e2918393bd2ce0840df860ee58eb002dc5f4bc8b4a9531d3f7"
},
{
@cbednarski
cbednarski / github-backup.sh
Created April 7, 2016 00:29
Backup github repos, courtesy @kikitux
#!/bin/bash
user="`basename ${0%.sh}`"
GHTEST="`curl -sS -I https://api.github.com 2>&1`"
RET=$?
if [ ${RET} -ne 0 ]; then
echo "ERR: check internet connection"
echo "${GHTEST}"
@cbednarski
cbednarski / docker-extract.json
Created March 28, 2016 23:34
Docker.app Packer Example
{
"builders": [
{
"type": "docker",
"image": "ubuntu",
"discard": true
}
],
"provisioners": [
{
@cbednarski
cbednarski / missing-from-vendor.log
Last active February 12, 2016 18:47
When building go with vendored dependencies, the error message for a missing dependency is not super intuitive.
post-processor/amazon-import/post-processor.go:139: cannot use session (type *session.Session) as type "github.com/aws/aws-sdk-go/aws/client".ConfigProvider in argument to s3manager.NewUploader:
*session.Session does not implement "github.com/aws/aws-sdk-go/aws/client".ConfigProvider (wrong type for ClientConfig method)
have ClientConfig(string, ...*"github.com/mitchellh/packer/vendor/github.com/aws/aws-sdk-go/aws".Config) "github.com/mitchellh/packer/vendor/github.com/aws/aws-sdk-go/aws/client".Config
want ClientConfig(string, ...*"github.com/aws/aws-sdk-go/aws".Config) "github.com/aws/aws-sdk-go/aws/client".Config
@cbednarski
cbednarski / crash.log
Created January 22, 2016 01:16
Packer crash log for #3097
2016/01/21 17:06:02 [INFO] Packer version: 0.8.6 f8f7b7a34c1be06058f5aca23a51247db12cdbc5+CHANGES
2016/01/21 17:06:02 Packer Target OS/Arch: linux amd64
2016/01/21 17:06:02 Built with Go Version: go1.5
2016/01/21 17:06:02 [DEBUG] Discovered plugin: amazon-chroot = /home/lee/apps/packer/packer-builder-amazon-chroot
2016/01/21 17:06:02 [DEBUG] Discovered plugin: amazon-ebs = /home/lee/apps/packer/packer-builder-amazon-ebs
2016/01/21 17:06:02 [DEBUG] Discovered plugin: amazon-instance = /home/lee/apps/packer/packer-builder-amazon-instance
2016/01/21 17:06:02 [DEBUG] Discovered plugin: digitalocean = /home/lee/apps/packer/packer-builder-digitalocean
2016/01/21 17:06:02 [DEBUG] Discovered plugin: docker = /home/lee/apps/packer/packer-builder-docker
2016/01/21 17:06:02 [DEBUG] Discovered plugin: file = /home/lee/apps/packer/packer-builder-file
2016/01/21 17:06:02 [DEBUG] Discovered plugin: googlecompute = /home/lee/apps/packer/packer-builder-googlecompute
@cbednarski
cbednarski / packer-build.txt
Created January 21, 2016 18:20
Folder layout from a packer build
.
├── 1404-dev.json
├── 1404-min.json
├── LICENSE.md
├── Makefile
├── README.md
├── http
│   └── preseed.cfg
├── output-vbox
│   └── ubuntu-1404-vbox.vdi
vagrant@nomad:/opt/gopath/src/github.com/hashicorp/nomad$ time make test
--> Installing build dependencies
--> Building nomad
--> Running tests
ok github.com/hashicorp/nomad 0.007s coverage: 0.0% of statements
ok github.com/hashicorp/nomad/api 31.762s coverage: 85.0% of statements
ok github.com/hashicorp/nomad/client 24.027s coverage: 43.2% of statements
ok github.com/hashicorp/nomad/client/allocdir 0.007s coverage: 37.7% of statements
ok github.com/hashicorp/nomad/client/config 0.005s coverage: 30.8% of statements
2016/01/11 16:11:05 [DEBUG] driver.docker: using client connection initialized from environment
@cbednarski
cbednarski / compute.js
Created January 15, 2016 18:33
Azure VM Parameters
/**
* The operation to create or update a virtual machine.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {VirtualMachine} parameters Parameters supplied to the Create
* Virtual Machine operation.
*
* @param {Plan} [parameters.plan] Gets or sets the purchase plan when
* deploying virtual machine from VM Marketplace images.
@cbednarski
cbednarski / .zshrc
Created October 15, 2013 00:57
zsh config
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export EDITOR=vim
export PROMPT="%{$fg[green]%}%n%{$fg[white]%}@%{$fg[green]%}%m%{$fg[white]%} "$PROMPT
# Java