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 | |
cd ~ | |
# xcode | |
xcode-select --install | |
# Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew install bash-completion | |
# Install cocoapods | |
sudo gem install activesupport -v 4.2.6 |
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 | |
sudo yum update -y | |
sudo yum install httpd | |
cd | |
wget https://mirror.webtatic.com/yum/el6/latest.rpm | |
sudo yum install latest.rpm -y | |
sudo yum-config-manager --enable webtatic | |
sudo yum clean all | |
sudo yum install --enablerepo=webtatic php56w php56w-bcmath php56w-gd php56w-imap php56w-mbstring php56w-mcrypt php56w-mysqlnd php56w-pear php56w-xml php56w-soap php56w-devel -y | |
sudo yum install php56w-fpm php56w-opcache -y #thread safety |
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 | |
# sudo rpi-update #Firmware update | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get install apache2 php5 libapache2-mod-php5 openssh-server git-core fail2ban vim zip unzip -y | |
sudo cp /etc/fstab /etc/fstab.backup | |
# http://askubuntu.com/questions/2271/how-to-harden-an-ssh-server | |
sudo apt-get install --no-install-recommends bluetooth |
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
[centos] | |
name=CentOS-6 - Base | |
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os | |
enabled=0 | |
gpgcheck=1 | |
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 |
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
alias art="php artisan" | |
alias ion="ionic cordova" | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
export PATH=/usr/local/sbin:$PATH |
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 | |
sudo yum update -y | |
sudo yum install -y httpd24 git openssl-devel memcache mod24_ssl mysql | |
sudo yum install -y php56 php56-gd php56-mbstring php56-mcrypt php56-xmlrpc php56-soap php56-intl php56-xml php56-mysqlnd php56-bcmath php-pear php56-devel php56-fpm | |
#sudo yum install -y wqy-zenhei-fonts-0.9.45-3.2.amzn1 # For Chinese fonts | |
sudo yum-config-manager --enable epel | |
sudo pecl install uploadprogress # For drupal | |
sudo service httpd start | |
sudo chkconfig httpd on | |
sudo groupadd www |
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/sh | |
# | |
# /etc/rc.d/init.d/supervisord | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: - 64 36 |