Skip to content

Instantly share code, notes, and snippets.

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
@mizzy
mizzy / 0_reuse_code.js
Created March 20, 2014 06:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
FROM ubuntu
RUN apt-get -y install apache2
#!/bin/sh
apt-get -y install apache2
require 'specinfra'
include SpecInfra::Helper::Ubuntu
include SpecInfra::Helper::Dockerfile
backend.from 'ubuntu'
backend.install 'apache2'
install 'apache2'
copy_file 'apache2.conf', '/etc/apache2/apache2.conf'
describe package('apache2') do
it { should be_installed }
end
describe file('/etc/apache2/apache2.conf') do
it { should be_sourced_from 'apache2.conf' }
end
require 'specinfra'
include SpecInfra::Helper::DetectOS
include SpecInfra::Helper::Exec
backend.check_os
package "nginx" do
action :install
end
service "nginx" do
action [ :enable, :start ]
end
@mizzy
mizzy / test.pp
Last active August 29, 2015 13:56
package { 'nginx':
ensure => installed,
}
service { 'nginx':
enable => true,
ensure => running,
}