Skip to content

Instantly share code, notes, and snippets.

Microsoft Windows and Office KMS Setup

@paulxu
paulxu / pflogsumm_install.sh
Created August 6, 2021 01:13 — forked from olmosleo/pflogsumm_install.sh
pflogsumm - Postfix Report Tools
### 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
@paulxu
paulxu / ami-clean.sh
Last active August 2, 2022 20:08 — forked from garlandkr/ami-clean.sh
Clean-up an Amazon EC2 instance before creating an AMI
#!/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'
@paulxu
paulxu / Build_seed_iso
Created March 1, 2019 00:12 — forked from asvignesh/Build_seed_iso
Samples to create a cloud-init configuration ISO.
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
@paulxu
paulxu / yaml-vagrantfile
Created April 15, 2016 19:51 — forked from scottslowe/yaml-vagrantfile
This Vagrantfile works with an external data file (a YAML file, named servers.yaml) to create multiple Vagrant boxes easily. The servers.yaml file contains all the specifics and can be easily edited to change the number and type of boxes to create. The Vagrantfile remains unchanged.
# -*- 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'
@paulxu
paulxu / Documentation.md
Created April 11, 2016 16:54 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

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