Skip to content

Instantly share code, notes, and snippets.

View bdangit's full-sized avatar

Ben Dang bdangit

View GitHub Profile
@bdangit
bdangit / Berksfile.lock
Last active December 20, 2015 04:28
verbose error on Berkshelf.lock. Using berkshelf 2.0.7 and knife-solo 0.3.0.pre5
{
"sources": {
"shadow": {
"locked_version": "0.3.80",
"git": "git@github.com:bdangit/shadow.git",
"ref": "86855b301f73ce6a51183ba129ea2fa5b4215502"
},
"subversion": {
"locked_version": "1.0.2",
"site": {"scheme":"http","user":null,"password":null,"host":"cookbooks.opscode.com","port":null,"path":"/api/v1/cookbooks","query":null,"fragment":null}
@bdangit
bdangit / Thorfile.rb
Created July 30, 2013 20:02
This is the Thorfile I use in order to perform cookbook version bumps and then upload them to my Chef Server. Since I am using Berkshelf v2.0.7 and a Mac, I have to ensure that there are no .DS_Store files.
# encoding: utf-8
require 'bundler'
require 'bundler/setup'
require 'thor/foodcritic'
require 'thor/scmversion'
require 'berkshelf/thor'
class Berksolo < Thor
include Thor::Actions

Keybase proof

I hereby claim:

  • I am bdangit on github.
  • I am bdangit (https://keybase.io/bdangit) on keybase.
  • I have a public key ASCHh2y-uLvezPIHdbFFyHQmNsw4ERb5BSV7xhcc8KEeAQo

To claim this, I am signing this object:

@bdangit
bdangit / build_output.log
Created July 27, 2016 06:07
`core/tomcat/8.0.36`
'/hab/cache/artifacts/bdangit-tomcat8-8.0.36-20160727055823-x86_64-linux.hart' -> '/src/results/bdangit-tomcat8-8.0.36-20160727055823-x86_64-linux.hart'
tomcat8: hab-plan-build cleanup
tomcat8:
tomcat8: Source Cache: /hab/cache/src/tomcat8-8.0.36
tomcat8: Installed Path: /hab/pkgs/bdangit/tomcat8/8.0.36/20160727055823
tomcat8: Artifact: /src/results/bdangit-tomcat8-8.0.36-20160727055823-x86_64-linux.hart
tomcat8: Build Report: /src/results/last_build.env
tomcat8: SHA256 Checksum: 5f02d3562d34014b8467670c4fc2742357c0efa3fd3c84e1a816b0eb07b34de2
tomcat8: Blake2b Checksum: d38c3649dda8152b7503872cc6f8aaffb767cd6c05a37a27d5fb507573f0c824
tomcat8:
@bdangit
bdangit / ISSUE.md
Last active November 2, 2016 07:07
What I did to get the nightly versions.

If you are using Virtualbox and you see this:

   Compiling router v0.4.0
   Compiling habitat_depot_client v0.0.0 (file:///src/components/builder-depot-client)
   Compiling habitat_common v0.0.0 (file:///src/components/common)
error: failed to link `/src/target/debug/deps/libhabitat_director.rlib` to `/src/target/debug/libhabitat_director.rlib`

You will want to get the nightly versions of Cargo. Virtualbox does not

@bdangit
bdangit / dvm.fish
Last active November 28, 2016 23:47 — forked from 7sDream/dvm.fish
Set up dvm command for fish shell.
# Docker Version Manager wrapper for *nix
# Implemented as a POSIX-compliant function
# Should work on sh, dash, bash, ksh, zsh
# To use, source this file from your bash profile
begin # This ensures the entire script is downloaded
set DVM_SCRIPT_SOURCE $_
# __dvm_has() {
# type "$1" > /dev/null 2>&1
@bdangit
bdangit / README.md
Last active September 7, 2017 17:52
Getting habitat to work on VMWare Workstation

Getting Habitat to work on VMware Workstation

When working with Docker-Toolbox on Win7 or even on Win10 (for those without Hyper-VM), you'll notice that docker dislikes any volume mounts that have any Windows paths. What you have to understand is that volume mounts work within the Linux VM that then get projected on to the Docker container. So this means the following:

  • NO to C:\\path\in\windows:/src
  • YES to /path/in/linux:/src where the /path/in/linux can be a Shared Drive to C:\\path\in\windows\ provided by VMWare.
@bdangit
bdangit / Microsoft.PowerShell_profile.ps1
Last active March 31, 2019 13:30
Basic Windows Workstation Configuration
Import-Module posh-git
Import-Module PSReadline
$env:EDITOR = "vim"
# aliases
Set-Alias open explorer.exe -option AllScope
Set-Alias make mingw32-make.exe -option AllScope
Set-Alias p packer.exe -option AllScope
Set-Alias v vagrant.exe -option AllScope