Skip to content

Instantly share code, notes, and snippets.

@wfarr
wfarr / INSTRUCTIONS.md
Created May 2, 2013 02:13
How to clear out your rbenv managed rubies and trigger Boxen to redownload the rebuilt, faster native binaries
  1. Upgrade your Ruby module to 4.1.0 (this isn't strictly necessary, but there's a lot of good stuff)
  2. Remove existing installed 1.9.3 and 2.0.0 versions:
for version in `rbenv versions --bare | grep 1.9.3`; do
  rbenv uninstall $version
done

for version in `rbenv versions --bare | grep 2.0.0`; do
 rbenv uninstall $version
@gtmtech
gtmtech / install_mcollective
Last active December 10, 2015 13:49
HOWTO: Installing mcollective on Mac OSX
I had trouble fathoming out how to get mcollective client working on OSX, because there's no official support for it.
Here is what I did.
* Install XCode
* Install Auxilliary Tools for XCode from https://developer.apple.com/downloads/ - required
* Move the PackageMaker.app to /Applications
* sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer
* cd /Developer/usr/bin
* sudo ln -s /Applications/PackageMaker.app/Contents/MacOS/PackageMaker packagemaker
@crazed
crazed / bldpkg.sh
Created October 4, 2012 16:55
build mcollective pkgs on OS X
#!/bin/bash
MPATH=$1
BETCDIR='/etc/mcollective'
BRUBYDIR='/Library/Ruby/Site/1.8'
BSBINDIR='/usr/sbin'
BBINDIR='/usr/bin'
BLIBEXECDIR='/usr/libexec/mcollective'
BDOCDIR='/usr/share/doc/mcollective'
BLAUNCHDIR='/Library/LaunchDaemons'
BLOGDIR='/var/log/mcollective'
@migrs
migrs / dropbox
Created September 23, 2010 00:19
/etc/init.d/dropbox
# /etc/init.d/dropbox
### BEGIN INIT INFO
# Provides: dropbox
# Required-Start: $network $syslog $remote_fs
# Required-Stop: $network $syslog $remote_fs
# Should-Start: $named $time
# Should-Stop: $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the dropbox daemon for debian/ubuntu