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
#!/usr/bin/env bash | |
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: $0 <db_name>" | |
exit 1 | |
fi | |
db_name=$1 |
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
#!/usr/bin/env bash | |
# This script is loosely based off of: https://github.com/blalor/ami-creator/blob/master/utils/create-ami.sh | |
set -e -u | |
die() { | |
echo "$@" | |
exit 1 | |
} |
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
diff --new-file -ur vmhgfs-only.orig/dir.c vmhgfs-only/dir.c | |
--- vmhgfs-only.orig/dir.c 2016-03-21 17:58:34.445862148 +0000 | |
+++ vmhgfs-only/dir.c 2016-03-21 18:20:16.493803567 +0000 | |
@@ -31,6 +31,7 @@ | |
#include "compat_kernel.h" | |
#include "compat_slab.h" | |
#include "compat_mutex.h" | |
+#include "compat_dentry.h" | |
#include "cpName.h" |
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
# This kickstart file is aimed towards creating a Centos 6.5 Amazon AMI | |
skipx | |
text | |
install | |
lang en_US.UTF-8 | |
keyboard us | |
timezone America/New_York | |
auth --useshadow --enablemd5 |
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 | |
FIRSTBOOT="/etc/.firstboot" | |
if [ ! -f $FIRSTBOOT ]; | |
then | |
# Remove the first boot files | |
rm -f /etc/udev/rules.d/70-persistent-net.rules | |
# Restart the network service | |
service network restart |
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
spec_paths = Dir.glob(File.join("cookbooks", "devops_**", "spec")) | |
guard :rspec, | |
:spec_paths => spec_paths, | |
:cli => "--color --format nested --fail-fast", | |
all_on_start: false do | |
# If a spec changes, run it | |
watch(%r{^cookbooks/devops.*/spec/.+_spec\.rb$}) |