This file contains 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
# Rename this file to 'Vagrantfile' | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "bento/centos-6.7" | |
config.vm.network "public_network" | |
config.vm.hostname = "signpost" | |
config.vm.provision "shell", path: "install-base-centos6.sh" | |
config.vm.provision "shell", path: "install-apache-centos6.sh" |
This file contains 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
# Rename this file to 'Vagrantfile' | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "bento/ubuntu-14.04" | |
config.vm.network "public_network" | |
config.vm.hostname = "roadsign" | |
config.vm.provision "shell", path: "install-base-ubuntu1404.sh" | |
config.vm.provision "shell", path: "install-apache-ubuntu1404.sh" |
This file contains 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
#!/bin/bash | |
echo "base: Setting local timezone" | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime | |
echo "base: Updating system packages" | |
apt-get -y update |
This file contains 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
#!/bin/bash | |
echo "apache: Installing Apache" | |
apt-get -y install apache2 | |
echo "apache: Creating Hello World index.html" | |
cat > /var/www/html/index.html <<EOF | |
<html> | |
<head> | |
<title>Sup</title> |
This file contains 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
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm --version | |
rvm install 1.9.3 | |
rvm use 1.9.3 | |
rvm --default use 1.9.3 | |
rvm docs generate-ri | |
rvm default | |
ruby --version |
This file contains 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
printf "Hello World!\n" |
This file contains 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
#!/bin/bash | |
yum -y groupinstall development | |
yum -y install libyaml-devel libffi-devel readline-devel zlib-devel openssl-devel sqlite-devel autoconf automake libtool bison |
This file contains 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
Feature: Kata Roman Numerals | |
For this Kata, write a function to convert from normal (Arabic) | |
numbers to Roman Numerals: | |
1 -> I | |
10 -> X | |
7 -> VII | |
etc. | |
There is no need to be able to convert numbers larger than | |
about 3000. (The Romans themselves didn't tend to go any |
This file contains 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
\curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm --version | |
rvm install 1.9.3 | |
rvm use 1.9.3 | |
rvm --default use 1.9.3 | |
rvm docs generate-ri | |
rvm default | |
ruby --version |
This file contains 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 | |
echo "p4d: install p4 yum repo" | |
cat > /etc/yum.repos.d/perforce.repo <<EOF | |
[perforce] | |
name=Perforce | |
baseurl=http://package.perforce.com/yum/rhel/6/x86_64/ | |
enabled=1 | |
gpgcheck=1 | |
EOF |