Skip to content

Instantly share code, notes, and snippets.

Fletcher Nichol fnichol

Block or report user

Report or block fnichol

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
fnichol /
Created Jul 19, 2018
Build an initial `hab` binary for the `x86_64-linux-kernel2` package target
# Change directory to the root of your `habitat-sh/habitat` repo checkout
# cd /path/to/habiatat-sh/habitat
# Cleanup any existing Studio instances--keep it clean to be safe!
hab studio rm
# Enter the studio with the `core` key and prevent a Supervisor from starting
env HAB_ORIGIN=core HAB_STUDIO_SUP=false hab studio enter
# Build a static `hab` CLI for the `x86_64-linux-kernel2` target

Keybase proof

I hereby claim:

  • I am fnichol on github.
  • I am fnichol ( on keybase.
  • I have a public key ASA2PW1FW2eqANMPo6CweZrD7BL4Quf2hR1ypMcblTODlwo

To claim this, I am signing this object:

fnichol /
Created Apr 23, 2013
Test Kitchen with bats - A Lightning Guide
# create a bats subdirectory under your desired suite
mkdir -p test/integration/$SUITE_NAME/bats
# create an initial "canary" bats test file
# more examples at:
# *
# *
# *
fnichol /
Last active Feb 27, 2018
Building a Mac OS X Vagrant box with Bento

The Mac/Bento templates use Tim Sutton's amazingly awesome os-vm-templates project to prepare a .dmg that can perform an unattended install of Mac OS X 10.7 through to 10.11. You'll need a copy of the Mac OS X .app on locally on disk, so we'll assume that it's installed under /Applications from the App Store.

Clone the os-vm-templates project and run the program to produce the disk image.

git clone
cd osx-vm-templates
sudo prepare_iso/ "/Applications/Install OS X El" out
fnichol / .kitchen.yml
Last active Feb 14, 2018
Test Kitchen Encrypted Data Bags
View .kitchen.yml
driver_plugin: vagrant
require_chef_omnibus: true
- name: ubuntu-12.04-solo
box: opscode-ubuntu-12.04
provisioner: chef_solo
fnichol /
Created Oct 11, 2012
orderup - Creates a tarball of Chef cookbooks from a Cheffile for chef-solo



Creates a tarball of Chef cookbooks from a Berksfile or Cheffile for chef-solo.


Copy the program to your local machine (perhaps ~/bin?) and install Berkshelf or Librarian-Chef:

fnichol /
Created Apr 8, 2017
Minimal Development Setup
# shellcheck disable=SC2039
set -eu
if [ -n "${DEBUG:-}" ]; then set -x; fi
main() {
info "Starting setup"
fnichol /
Created Feb 13, 2014
"Fix" VMware Network
#!/usr/bin/env bash
set -e
[ -n "$DEBUG" ] && set -x
banner() { printf -- "-----> $*\n"; }
banner "Restarting VMware networking"
banner "Stoping networking"
sudo /Applications/VMware\ --stop
fnichol / init_gitflow.rake
Created Mar 25, 2011
Register rake tasks off `rake init' to setup your initial development environment after a fresh git clone. N.B. better to make these actions idempotent so you can run it more than once without fear.
View init_gitflow.rake
namespace :init do
task 'gitflow_init' do
preconditions = [
%{git config --get gitflow.branch.master >/dev/null 2>&1},
%{git config --get gitflow.branch.develop >/dev/null 2>&1},
%{git config --get gitflow.prefix.feature >/dev/null 2>&1},
%{git config --get gitflow.prefix.release >/dev/null 2>&1},
%{git config --get gitflow.prefix.hotfix >/dev/null 2>&1},
%{git config --get >/dev/null 2>&1},
%{git config --get gitflow.prefix.versiontag >/dev/null 2>&1}
fnichol / sles11-mongod.init
Created Sep 28, 2010
mongod init.d script for SLES
View sles11-mongod.init
# /etc/init.d/mongod
# Modified from:
# Provides: mongod
# Required-Start: $syslog $local_fs $network
# Required-Stop: $syslog $local_fs $network
You can’t perform that action at this time.