###add patch
get the script from https://get.docker.com/ubuntu/, the script is:
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
# install git | |
yum install git -y | |
# get nvm | |
git clone git://github.com/creationix/nvm.git ~/nvm | |
# activate nvm |
#!/usr/bin/env python | |
# -*- coding:utf8 -*- | |
import random | |
import socket | |
import struct | |
import StringIO | |
import argparse | |
from collections import namedtuple | |
MAX_PACKET_SIZE = 512 |
###add patch
get the script from https://get.docker.com/ubuntu/, the script is:
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
<?php | |
/* | |
Author: Jim Westergren & Jeedo Aquino | |
File: index-with-redis.php | |
Updated: 2012-10-25 | |
This is a redis caching system for wordpress. | |
see more here: www.jimwestergren.com/wordpress-with-redis-as-a-frontend-cache/ |
[mysqld] | |
### mysql general option | |
bind-address = 0.0.0.0 | |
user = mysql | |
pid-file = /var/run/mysqld/mysqld.pid | |
socket = /var/run/mysqld/mysqld.sock | |
port = 3306 | |
basedir = /usr | |
datadir = /var/lib/mysql |
#!/bin/bash | |
# Created Fri Mar 21 2014 | |
# This is a fork of https://gist.github.com/SeonghoonKim/4378896 | |
# This script will download, install and start | |
# the following items on CentOS 6.5: | |
# MongoDB | |
# OpenJDK 1.7.0 | |
# ElasticSearch 0.90.1 | |
# Graylog2 server 0.20.1 | |
# Graylog2 web interface 0.20.1 |
#!/bin/bash | |
# Autor: Nilton OS -- www.linuxpro.com.br | |
echo 'setup-web2py-nginx-uwsgi-centos64.sh' | |
echo 'Support CentOS 6.4' | |
echo 'Installs Nginx 1.4.1 + uWSGI + Web2py' | |
# Get Web2py Admin Password | |
echo -e "Web2py Admin Password: \c " | |
read PW |
# This number should be, at maximum, the number of CPU cores on your system. | |
# (since nginx doesn't benefit from more than one worker per CPU.) | |
worker_processes 8; | |
# Determines how many clients will be served by each worker process. | |
# (Max clients = worker_connections * worker_processes) | |
# "Max clients" is also limited by the number of socket connections available on the system (~64k) | |
# run ss -s and u'll see a timewait param | |
# The reason for TIMED_WAIT is to handle the case of packets arriving after the socket is closed. |
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk.i686 -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.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 |
#!/bin/sh | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |