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 | |
CHEF_SERVER_WEBUI_PASS=webui_admin_pass | |
CHEF_AMQP_PASS=amqp_pass | |
CHEF_FQDN=chef.yourdomain.com | |
CHEF_URL=https://${CHEF_FQDN} | |
export DEBIAN_FRONTEND=noninteractive | |
echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list | |
mkdir -p /etc/apt/trusted.gpg.d |
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 'rubygems' | |
require 'terminal-table' | |
require 'json' | |
rows = [] | |
data = JSON.parse(ARGF.read) |
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
# http://stackoverflow.com/questions/1254366/problem-installing-rmagick-rubygem-on-centos-5/7766705#7766705 | |
# Uninstalled ImageMagick 6.5.4-9 and the delegate libraries that I had installed from source | |
yum install ImageMagick | |
yum install ImageMagick-devel | |
curl -O http://www.zacharywhitley.com/linux/rpms/fedora/core/6/i386/msttcorefonts-2.0-1.noarch.rpm | |
rpm -ivh msttcorefonts-2.0-1.noarch.rpm | |
ln -s /usr/share/fonts/msttcorefonts/ /usr/share/fonts/default/TrueType | |
gem install rmagick -v 1.15.17 --no-rdoc --no-ri |
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 | |
#Ask user to enter database name and save input to dbname variable | |
read -p "Please Enter Database Name:" dbname | |
#checking if database exist | |
mysql -Bse "USE $dbname" 2> /dev/null | |
#if database exist: | |
if [ $? -eq 0 ]; then |
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 | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
yum -y groupinstall "Development tools" | |
yum -y install zlib-devel | |
yum -y install bzip2-devel openssl-devel ncurses-devel sqlite-devel mysql-devel | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
if [ ! -f Python-2.7.3.tar.bz2 ] ;then | |
echo "Python-2.7.3.tar.bz2 not found" |
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 bash | |
# repository | |
cd /tmp | |
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm | |
rpm -Uvh epel-release-6-7.noarch.rpm | |
# system update | |
yum -y update | |
yum -y groupinstall "Development Tools" | |
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick |
NewerOlder