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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "centos6.6" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2", "--ioapic", "on"] | |
end | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
end |
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
AVAILABLE COMMANDS | |
type 'man <command name>' to find out more information about commands | |
ip Show /manipulate routing, devices, and tunnels | |
ifconfig View or configure network interfaces | |
iptables Administration tool for IPv4 packet filtering and NAT | |
save-iptables Persist IP tables | |
testconn Test network connectivity | |
man Display command maunal pages | |
passwd Update authentication tokens |
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
MAJOR_VERSION=7 | |
MINOR_VERSION=51 | |
MAJOR_MINOR_VERSION="${MAJOR_VERSION}u${MINOR_VERSION}" | |
REVISION=13 | |
COOKIE="gpw_e24=http%3A%2F%2Fwww.oracle.com" | |
#RPM="jdk-${MAJOR_VERSION}-linux-x64.rpm" | |
#URI="http://download.oracle.com/otn-pub/java/jdk/${MAJOR_VERSION}/${RPM}" | |
RPM="jdk-${MAJOR_VERSION}u${MINOR_VERSION}-linux-x64.rpm" |
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
# install Java | |
https://gist.github.com/tkuchiki/8816128 | |
# Elasticsearch | |
rpm -ivh https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.11.noarch.rpm | |
# Kibana | |
KIBANA_MAJOR_VERSION=3 | |
KIBANA_MINOR_VERSION=0 |
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
git remote add original git://github.com/:user/:repo.git | |
git fetch original | |
git merge --no-ff --no-commit original/master | |
git commit |
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
yum install -y python-devel python-setuptools | |
easy_install pip |
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
# export PHPENV_ROOT=/path/to/.phpenv | |
export PHPENV_ROOT=$HOME | |
echo "export PHPENV_ROOT=${PHPENV_ROOT}" >> $HOME/.bashrc | |
curl -L https://raw2.github.com/CHH/phpenv/master/bin/phpenv-install.sh | bash | grep -E "^(export|eval)" >> $HOME/.bashrc | |
# update phpenv | |
#curl -L https://raw2.github.com/CHH/phpenv/master/bin/phpenv-install.sh | UPDATE=yes bash | grep -E "^(export|eval)" >> $HOME/.bashrc | |
sed -i -e "s|PATH=\"$PHPENV_ROOT|PATH=\"\$PHPENV_ROOT|g" $HOME/.bashrc |
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
# install epel repo | |
# https://gist.github.com/tkuchiki/7368183 | |
yum install -y gcc gcc-c++ make libxml2-devel libcurl-devel libjpeg-devel libpng-devel libmcrypt-devel libtidy-devel libxslt-devel php-xml postgresql-devel readline-devel |
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/sh | |
function check_dist() { | |
if grep -qs -E '(CentOS|Fedora|Oracle|Scientific|Amazon)' /etc/issue; then | |
echo "rhel" | |
return | |
elif grep -qs -E '(Debian|Ubuntu)' /etc/issue; then | |
echo "debian" | |
return | |
else |
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
# http://docs.docker.io/en/latest/installation/mac/ | |
## install boot2docker | |
#mkdir -p ~/bin | |
#curl https://raw.github.com/boot2docker/boot2docker/master/boot2docker > ~/bin/boot2docker | |
brew install boot2docker | |
## install docker |
OlderNewer