Skip to content

Instantly share code, notes, and snippets.

View deanoakley's full-sized avatar

Dean Oakley deanoakley

View GitHub Profile
@Jinksi
Jinksi / gist:d9856f3a053ce7ff29e39d51d6941da0
Created July 5, 2017 23:30
Serverpilot disable display php errors server-wide
echo 'display_errors = false' | sudo tee --append /etc/php5.4-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php5.5-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php5.6-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php7.0-sp/php.ini && echo 'display_errors = false' | sudo tee --append /etc/php7.1-sp/php.ini && cat /etc/php5.4-sp/php.ini && cat /etc/php5.5-sp/php.ini && cat /etc/php5.6-sp/php.ini && cat /etc/php7.0-sp/php.ini && cat /etc/php7.1-sp/php.ini && sudo service php5.4-fpm-sp restart && sudo service php5.5-fpm-sp restart && sudo service php5.6-fpm-sp restart && sudo service php7.0-fpm-sp restart && sudo service php7.1-fpm-sp restart
@skoskie
skoskie / monit-setup.sh
Last active October 8, 2022 02:01
Monit -- Quick Download and Config
#!/bin/bash
# Must run this as sudo. How to make sure of that??
if [ "$EUID" -ne 0 ]
then
# Turn off history expansion to make it easier to echo exlaimation points
set +H
printf "%s\n" "Error: Monit installation and setup must be run as root. Type 'sudo !!' at the prompt, enter your password, in order to try again."
@woogist
woogist / woocommerce-customer-order-xml-export-suite-custom-plugin.php
Last active November 8, 2019 13:50
WooCommerce Customer/Order XML Export Suite: Custom Plugin for changing the XML output
<?php
/**
* Plugin Name: WooCommerce Sample XML
* Plugin URI: http://www.skyverge.com/contact/
* Description: Customizes the WooCommerce Customer/Order XML Export Suite specifically for Sample
* Author: SkyVerge
* Author URI: http://www.skyverge.com
* Version: 1.0
*
* Copyright: (c) 2013 SkyVerge, Inc. (info@skyverge.com)
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>