This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if File.exists?("Vagrantfile") | |
vagrant_status = `vagrant status` | |
if vagrant_status != '' | |
vagrant_status.each_line do |line| | |
if match = /([a-z]+[\s]+)(created|not created|poweroff|running|saved)[\s](\(virtualbox\)|\(vmware\))/.match(line) | |
puts match[1].strip! | |
end | |
end | |
else | |
$stderr.puts "Vagrant status error - Check your Vagrantfile or .vagrant folder" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ruby 1.9.3 | |
apt-get install -qq ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev | |
update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 400 \ | |
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz \ | |
/usr/share/man/man1/ruby1.9.1.1.gz \ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.1 \ | |
--slave /usr/bin/irb irb /usr/bin/irb1.9.1 \ | |
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get these from https://console.aws.amazon.com/iam/home?#security_credential | |
export AMAZON_ACCESS_KEY_ID=FOO | |
export AMAZON_SECRET_ACCESS_KEY=BAR | |
export EC2_REGION="eu-west-1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
notice("try to run this script with -v and -d to see difference between log levels") | |
notice("function documentation is available here: http://docs.puppetlabs.com/references/latest/function.html") | |
notice("--------------------------------------------------------------------------") | |
debug("this is debug. visible only with -d or --debug") | |
info("this is info. visible only with -v or --verbose or -d or --debug") | |
alert("this is alert. always visible") | |
crit("this is crit. always visible") | |
emerg("this is emerg. always visible") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
_tugboatcomplete() { | |
COMPREPLY=($(compgen -W "`tugboat | grep "tugboat "`" -- ${COMP_WORDS[COMP_CWORD]})) | |
return 0 | |
} | |
complete -o default -o nospace -F _tugboatcomplete tugboat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd `brew --prefix` | |
git remote add origin https://github.com/mxcl/homebrew.git | |
git fetch origin | |
git reset --hard origin/master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Since Seyren doesn't have versioning, use Github SHA's so you can see what revision it is... | |
SEYREN_SHA="5642a0c18425ee760a9f11d63d39a81e16742660" | |
echo "[Building Seyren Deb]" | |
rm -rf build/seyren/ | |
git clone -q -b master https://github.com/scobal/seyren build/seyren; | |
cd build/seyren | |
git checkout -q $SEYREN_SHA | |
mvn clean package -q | |
cd .. | |
fpm -s dir -t deb -n seyren --deb-field "GithubSHA:$(SEYREN_SHA)" -a all -v 0.1 --prefix /opt seyren |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "progressbar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo $PATH | |
/opt/boxen/homebrew/include/:/Users/peterso/perl5/perlbrew/bin:/Users/peterso/perl5/perlbrew/perls/perl-5.16.0/bin:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:node_modules/.bin:/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:node_modules/.bin:/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin | |
$ ll /opt/boxen/homebrew/include/mpg123.h | |
lrwxr-xr-x 1 peterso staff 40 19 Jul 14:14 /opt/boxen/homebrew/include/mpg123.h -> ../Cellar/mpg123/1.15.4/include/mpg123.h | |
$ bundle install | |
Fetching gem metadata from https://rubygems.org/... | |
Installing audite (0.3.0) | |
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pick your poison http://apt.puppetlabs.com/pool/lucid/main/p/puppet/ | |
PUPPET_COMMON_VERSION=3.1.1-1puppetlabs1 | |
HIERA_VERSION=1.1.2-1puppetlabs1 | |
echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf | |
echo 'APT::Get::AllowUnauthenticated "true";' >> /etc/apt/apt.conf | |
echo 'deb http://apt.puppetlabs.com precise main' > /etc/apt/sources.list.d/puppetlabs.list | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4BD6EC30 |
OlderNewer