I hereby claim:
- I am javidalkaruzi on github.
- I am javidalkaruzi (https://keybase.io/javidalkaruzi) on keybase.
- I have a public key ASCBZLiDBjF44cVONrlLzpBE5rYvjk3SwNSkL2U3ZdpWMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Authorize TCP, SSH & ICMP for default Security Group | |
| #ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0 | |
| #ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0 | |
| # The Static IP Address for this instance: | |
| IP_ADDRESS=$(cat ~/.ec2/ip_address) | |
| # Create new t1.micro instance using ami-cef405a7 (64 bit Ubuntu Server 10.10 Maverick Meerkat) |
| FROM centos:centos6 | |
| RUN yum update -y && yum install -y mysql-server | |
| RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/my.cnf | |
| ADD ./startup.sh /opt/startup.sh | |
| EXPOSE 3306 | |
| FROM ubuntu | |
| RUN dpkg-divert --local --rename --add /sbin/initctl | |
| RUN ln -s /bin/true /sbin/initctl | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get -y install mysql-client mysql-server |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.6 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter | |
| 0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs |
| sudo wget http://us1.php.net/distributions/php-5.5.9.tar.gz | |
| sudo tar -zxvf php-5.5.9.tar.gz | |
| cd php-5.5.9/ext/pcntl | |
| sudo phpize && ./configure && make install | |
| #Restart apache server |
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install curl python-software-properties -y | |
| sudo apt-get install openjdk-6-jre-headless | |
| curl -L https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz | tar -xz | |
| sudo mv elasticsearch-* /usr/local/share/elasticsearch | |
| curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz | |
| sudo mv *servicewrapper*/service /usr/local/share/elasticsearch/bin/ | |
| rm -Rf *servicewrapper* |
| cd ~ | |
| sudo yum update | |
| sudo yum install java-1.7.0-openjdk.i686 -y | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz -O elasticsearch.tar.gz | |
| tar -xf elasticsearch.tar.gz | |
| rm elasticsearch.tar.gz | |
| mv elasticsearch-* elasticsearch | |
| sudo mv elasticsearch /usr/local/share |