Laravel Community Tools by Tighten

All Recipes

144 recipes available

Add 4G Swap to Ubuntu 14.04

Creates a 4G swap file, turns it on, and modifies settings so that the system prefers not to use swap unless absolutely necessary. See https://www.digitalocean.com/community/tutorials/how-to-add-sw...

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
10 years ago
TJTorola

Install MongoDB

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
10 years ago
ajayarjunan

Install ElasticSearch 2.x

Forked from @artisangoose Recipe #70; updated Elasticsearch version

echo ">> Installing Elastic GPG Key"
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -

echo ">> Adding deb package"
10 years ago
mikestivala

H5BP Nginx HTTP server boilerplate configs

This script copies the directory ”h5bp” from GitHub repo to /etc/nginx/h5bp and add “include h5bp/basic.conf;” to the configuration files of available sites. Make sure to run this recipe as...

NGINX_DIR=/etc/nginx
cd $NGINX_DIR

# Copy h5bp directory from server-configs-nginx.git to /etc/nginx/h5bp.
10 years ago
sdebacker

Optimize SSL

Enable SSL Session Cache, add Optimized SSL Cyphers, enable SSL Stapling. This is part of a larger SSL optimization process described here: https://laravel-news.com/2016/01/optimizing-ssl-laravel-f...

cat > /etc/nginx/conf.d/ssl_optimizations.conf <<EOT
# Session Cache Settings
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 180m;
10 years ago
mikebronner

Install Front-End Build Tools

Install some default Front-End build tools including Bower, Grunt and Compass

echo "Installing Bower..."
npm install -g bower

echo "Installing Grunt..."
10 years ago
hermanschutte

Persistent 1GB SWAP ( fast, will only run once )

This is a combination of masterbee and simensen's swap recipes into one script. Basically the same thing as simensen's, but it provides a cleaner output and uses /var/swap.img instead of a file at ...

if [ -f /var/swap.img ]; then
    echo "/var/swap.img already exists. Nothing to do."
    exit 1
fi
10 years ago
jhoff

New Relic Install

Installs new relic monitoring on your droplet. You must have a new relic account and replace the indicated text with your new relic key & run as root.

echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
apt-get update
apt-get install newrelic-sysmond
10 years ago
jasonmskidmore

Enable HTTP2 on Nginx

If the version of Nginx is higher than 1.9.5, it enable the HTTP2 protocol for sites with ssl.

if [[ $(nginx -v 2>&1 | grep -E '[0-9]+\.[0-9]+(\.[0-9]+)?' -o) > 1.9.5 ]]; then
    for I in `grep -l 'listen 443 ssl;' /etc/nginx/sites-available/*`; do
        sed -i 's/listen 443 ssl;/listen 443 ssl http2;/g' $I
        sed -i "s/ssl_protocols TLSv1 TLSv1.1 TLSv1.2;/ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\\n    ssl_ciphers 'kEECDH+ECDSA+AES128 kEECDH+ECDSA+AES256 kEECDH+AES128 kEECDH+AES256 kEDH+AES128 kEDH+AES256 DES-CBC3-SHA +SHA !aNULL !eNULL !LOW !kECDH !DSS !MD5 !EXP !PSK !SRP !CAMELLIA !SEED';/g" $I
10 years ago
vtalbot

phpiredis for php5

Install the dependencies of phpiredis, then install the phpiredis and enable it.

sudo apt-get update
sudo apt-get install libhiredis0.10 libhiredis-dev -y

git clone https://github.com/nrk/phpiredis.git
10 years ago
vtalbot

Remove MySQL

service mysql stop
killall -9 mysql
killall -9 mysqld
apt-get -y remove --purge mysql-server mysql-client mysql-common
10 years ago
ruigomes

Remove PostgreSQL

Removing PostgreSQL

apt-get --purge remove postgresql\*

rm -r /etc/postgresql/
rm -r /etc/postgresql-common/
10 years ago
skidz7