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:
#!/bin/sh | |
# shellcheck disable=SC2039 | |
set -eu | |
if [ -n "${DEBUG:-}" ]; then set -x; fi | |
main() { | |
init | |
ensure_root | |
info "Starting setup" |
#!/usr/bin/env bash | |
set -e | |
[ -n "$DEBUG" ] && set -x | |
banner() { printf -- "-----> $*\n"; } | |
banner "Restarting VMware networking" | |
banner "Stoping networking" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop |
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 gitflow.prefix.support >/dev/null 2>&1}, | |
%{git config --get gitflow.prefix.versiontag >/dev/null 2>&1} |
#!/bin/sh | |
# | |
# /etc/init.d/mongod | |
# | |
# Modified from: https://build.opensuse.org/package/view_file?file=mongod.init&package=mongodb&project=home:phprus:server:database&srcmd5=94d608ffe3ba91c10261c49ba16f3db1 | |
# | |
### BEGIN INIT INFO | |
# Provides: mongod | |
# Required-Start: $syslog $local_fs $network | |
# Required-Stop: $syslog $local_fs $network |
#!/usr/bin/env sh | |
set -e | |
if [ -d /opt/chefdk ]; then | |
echo "ChefDK installed in /opt/chefdk, quitting" >&2 | |
exit 0 | |
fi | |
url="https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.1.0-1_amd64.deb" | |
pkg="/tmp/`basename \`echo $url\``" |
# Build an MRI Ruby version ready for ruby-prof (https://github.com/ruby-prof/ruby-prof) | |
VERSION=2.2.0 | |
ruby-install \ | |
--install-dir ~/.rubies/ruby-prof-$VERSION \ | |
-p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/$VERSION/railsexpress/01-zero-broken-tests.patch \ | |
-p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/$VERSION/railsexpress/02-improve-gc-stats.patch \ | |
-p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/$VERSION/railsexpress/03-display-more-detailed-stack-trace.patch \ | |
-p https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/$VERSION/railsexpress/04-backport-401c8bb.patch \ |