Skip to content

Instantly share code, notes, and snippets.

Chris Bednarski cbednarski

Block or report user

Report or block cbednarski

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
@cbednarski
cbednarski / packer.log
Created Jul 8, 2016
Crash report for packer#3699
View packer.log
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
View packer-manifest.json
{
"builds": [
{
"name": "docker",
"builder_type": "docker",
"build_time": 1465548378,
"files": null,
"artifact_id": "sha256:1e9543ee891b51e2918393bd2ce0840df860ee58eb002dc5f4bc8b4a9531d3f7"
},
{
@cbednarski
cbednarski / github-backup.sh
Created Apr 7, 2016
Backup github repos, courtesy @kikitux
View github-backup.sh
#!/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 / statusline.sh
Last active Sep 24, 2016
Bash statusline
View statusline.sh
# Color codes look like this: \033[1;34m
#
# When used in a prompt, color codes and other special sequences have to be
# escaped so they are not counted in the width of the bash prompt. If the width
# is not calculated correctly backspace, up arrow, etc. will not work correctly.
#
# In the bash prompt itself (PS1) you should use the \[ \] an escape sequence.
# This indicates to bash that these characters are not part of the prompt.
#
# If you're using color codes in a bash function that is used in your prompt,
@cbednarski
cbednarski / docker-extract.json
Created Mar 28, 2016
Docker.app Packer Example
View docker-extract.json
{
"builders": [
{
"type": "docker",
"image": "ubuntu",
"discard": true
}
],
"provisioners": [
{
@cbednarski
cbednarski / factorio.md
Last active Sep 16, 2019
Host a factorio server
View factorio.md
@cbednarski
cbednarski / missing-from-vendor.log
Last active Feb 12, 2016
When building go with vendored dependencies, the error message for a missing dependency is not super intuitive.
View missing-from-vendor.log
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 / di.fm-playlist.py
Created Feb 3, 2016
di.fm iTunes playlist importer
View di.fm-playlist.py
import re
"""
di.fm allows you to download a playlist of all your favorite channels. For some
reason when you open this playlist with iTunes only one of the channels is
added. This script splits the playlist file into many playlist files so you can
easily load all of your favorites into iTunes and enjoy di.fm streaming without
running Flash in your browser.
"""
items = open("di.pls").read().split("File")
@cbednarski
cbednarski / crash.log
Created Jan 22, 2016
Packer crash log for #3097
View crash.log
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 Jan 21, 2016
Folder layout from a packer build
View packer-build.txt
.
├── 1404-dev.json
├── 1404-min.json
├── LICENSE.md
├── Makefile
├── README.md
├── http
│   └── preseed.cfg
├── output-vbox
│   └── ubuntu-1404-vbox.vdi
You can’t perform that action at this time.