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
tap phinze/homebrew-cask || true | |
tap homebrew/versions|| true | |
update || true | |
install brew-cask || true | |
install git || true | |
install ag || true | |
install hub || true | |
install rbenv || true | |
install ruby-build || true |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
FROM ubuntu | |
RUN apt-get -y install apache2 |
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
#!/bin/sh | |
apt-get -y install apache2 |
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
require 'specinfra' | |
include SpecInfra::Helper::Ubuntu | |
include SpecInfra::Helper::Dockerfile | |
backend.from 'ubuntu' | |
backend.install 'apache2' |
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 'apache2' | |
copy_file 'apache2.conf', '/etc/apache2/apache2.conf' |
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
describe package('apache2') do | |
it { should be_installed } | |
end | |
describe file('/etc/apache2/apache2.conf') do | |
it { should be_sourced_from 'apache2.conf' } | |
end |
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
require 'specinfra' | |
include SpecInfra::Helper::DetectOS | |
include SpecInfra::Helper::Exec | |
backend.check_os |
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
package "nginx" do | |
action :install | |
end | |
service "nginx" do | |
action [ :enable, :start ] | |
end |
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
package { 'nginx': | |
ensure => installed, | |
} | |
service { 'nginx': | |
enable => true, | |
ensure => running, | |
} |