Skip to content

Instantly share code, notes, and snippets.

@skt-bford
skt-bford / gist:5461538
Created April 25, 2013 17:29
s3fs-setup.sh
#!/usr/bin/env bash
# requirements
yum remove fuse fuse* fuse-devel
yum -y groupinstall "Development Tools"
yum -y install gcc libstdc++-devel gcc-c++ curl curl* curl-devel libxml2 libxml2* libxml2-devel openssl-devel mailcap
cd /usr/local/src
wget http://sourceforge.net/projects/fuse/files/latest/download?source=files
tar -xzvf fuse-*.tar.gz
rm -f fuse-*.tar.gz
#!/usr/bin/env bash
# requirements
yum -y install wget
# repository
cd /usr/local/src
wget https://gist.github.com/skt-bford/4961513/raw/epel.setup.sh
sh epel.setup.sh
rm epel.setup.sh
#!/usr/bin/env bash
dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile
echo "
/swapfile swap swap defaults 0 0" >>/etc/fstab
chmod 0600 /swapfile
#!/usr/bin/env bash
# requirements
yum -y install wget perl-libwww-perl perl-Time-HiRes iptables
# install csf
cd /usr/local/src
wget http://configserver.com/free/csf.tgz
tar xf csf.tgz
cd csf
./install.sh
###############################################################################
# SECTION:Initial Settings
###############################################################################
# ConfigServer Firewall & Security Configuration File
#
# Copyright 2006-2013, Way to the Web Limited
# URL: http://www.configserver.com
# Email: [email protected]
###############################################################################
#!/usr/bin/env bash
# requirements
yum -y install wget
# install redis
cd /usr/local/src
wget http://download.redis.io/redis-stable.tar.gz
tar zxf redis-stable.tar.gz
cd redis-stable
make
@skt-bford
skt-bford / redis.init.sh
Last active December 13, 2015 19:29 — forked from ponych/redisctl
#!/bin/sh
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
#!/usr/bin/env bash
# requirements
yum -y install wget openssl-devel
yum -y groupinstall "Development Tools"
# install nodejs
version=0.10.13
cd /usr/local/src
wget http://nodejs.org/dist/v$version/node-v$version.tar.gz
tar zxvf node-v$version.tar.gz
#!/usr/bin/env bash
# requirements
yum -y install wget
# init / install ruby, passenger, and nginx
cd /usr/local/src
wget https://gist.github.com/skt-bford/4961980/raw/centos.nginx-passenger-ruby_1-9-3.init.sh
sh centos.nginx-passenger-ruby_1-9-3.init.sh
rm -f centos.nginx-passenger-ruby_1-9-3.init.sh
#!/usr/bin/env bash
# requirements
yum -y install wget
# install postgres
cd /usr/local/src
wget https://gist.github.com/skt-bford/4962180/raw/postgres.9.2.3-setup.sh
sh postgres.9.2.3-setup.sh
rm -f postgres.9.2.3-setup.sh