Skip to content

Instantly share code, notes, and snippets.

View gottaloveit's full-sized avatar

Joe Passavanti gottaloveit

View GitHub Profile
@gottaloveit
gottaloveit / run-innobackupex.sh
Last active August 29, 2015 14:08 — forked from jmfederico/run-xtrabackup.sh
Updated options to make it able to run automatically, non interactive, suitable for daily or even multiple per day MySQL backups using cron, and Percona's Xtrabackup. Option to backup slave replication also, and amount of days to keep backups on the disk or wherever you set the path. Easy options at the top of the file, set them, set cron, and y…
#!/bin/sh
#can change to /tmp, /var has tons of space on our servers
TMPFILE="/var/tmp/innobackupex-runner.$$.tmp"
MYSQL_USER=XXX
MYSQL_PASS=XXX
BACKDIR=/var/backups/mysql
FULL_BACKUP_DIRNAME=full
INCR_BACKUP_DIRNAME=incr
@magnetikonline
magnetikonline / README.md
Last active September 5, 2024 14:55
Setting Nginx FastCGI response buffer sizes.
@gottaloveit
gottaloveit / rebuld_nginx_with_pagespeed.sh
Last active July 9, 2016 15:20
This is a script for Debian/ Ubuntu that will rebuild the latest Nginx deb package from nginx.org with Google Pagespeed. There are a couple other modules the script will prompt you to ask if you want to remove them. They are http-dav, http-flv, http-mp4, mail, mail_ssl. Will prompt to add http-geoip and ask if you want to change the nginx user t…
#!/bin/bash
echo "This script will rebuild a Debian style package (deb) of latest stable"
echo "Nginx. The original deb is from nginx.org apt repository."
echo
echo "This will prompt you yes or no on a few changes to the build as well as"
echo "it will compile and package the latest Google NGX Pagespeed module."
echo
echo "This is built and tested on Ubuntu 14.04 LTS, fresh OS install."
echo "There are no guarantees, and I take no liability if it breaks, but it"