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
lang en_US.UTF-8 | |
keyboard us | |
timezone --utc Etc/UTC | |
auth --useshadow --enablemd5 | |
selinux --disabled | |
rootpw --lock --iscrypted locked | |
zerombr | |
clearpart --all --initlabel |
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/bash | |
set -eu | |
# only run one instance | |
LOCKFILE=/tmp/pg_backup.lock | |
[ -f $LOCKFILE ] && { echo "Error: $LOCKFILE exists"; exit 1; } >&2 | |
touch $LOCKFILE |
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 ruby | |
require 'fileutils' | |
def get_freq | |
File.readlines('/proc/cpuinfo').each do |line| | |
next unless line.match(/^cpu MHz/) | |
return line.split(/:/).last.strip.to_f * 1048576 | |
end | |
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
# vm and role mapping for multi-vm vagrant | |
boxes = [ | |
{ :name => :app, :roles => ['base', 'web'] }, | |
{ :name => :mc, :roles => ['base', 'memcache'] }, | |
{ :name => :db, :roles => ['base', 'db-master'] }, | |
{ :name => :util, :roles => ['base', 'redis', 'resque' ] }, | |
] | |
Vagrant.configure("2") do |config| | |
# base image configuration |
NewerOlder