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
### PFLOGSUMM - Postfix report ################ | |
# pflogsumm.pl is designed to provide an over-view of postfix activity, with just enough detail to give the administrator | |
# a "heads up" for potential trouble spots. | |
# The following is an over-view of the reports produced: | |
sudo yum install perl-Date-Calc | |
cd /usr/local/ | |
sudo curl -O http://jimsun.linxnet.com/downloads/pflogsumm-1.1.3.tar.gz | |
sudo tar -xzf pflogsumm-1.1.3.tar.gz | |
sudo mv pflogsumm-1.1.3 pflogsumm | |
sudo chmod +x pflogsumm/pflogsumm.pl |
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 | |
# Run this script with: | |
# bash <(curl -s https://gist.github.com/<...>/raw/ami-clean.sh | |
function print_green { | |
echo -e "\e[32m${1}\e[0m" | |
} | |
print_green 'Clean Yum' |
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
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data |
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
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
# Specify minimum Vagrant version and Vagrant API version | |
Vagrant.require_version ">= 1.6.0" | |
VAGRANTFILE_API_VERSION = "2" | |
# Require YAML module | |
require 'yaml' |
rsync (Everyone seems to like -z, but it is much slower for me)
- a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
- H: preserves hard-links
- A: preserves ACLs