Skip to content

Instantly share code, notes, and snippets.

View andreiluca's full-sized avatar

Andrei Luca andreiluca

View GitHub Profile
@bappi-d-great
bappi-d-great / code.php
Created February 4, 2015 09:53
User Registration to Subscription (wpmu)
<?php
/*
Plugin Name: User Registration to Subscription (wpmu)
Plugin URI: http://bappi-d-great.com
Description: This plugin allows your users to auto subscribe when registered
Author: WPMU DEV
Version: 1.0.1
Author URI: http://bappi-d-great.com
*/
<?php
/**
* Plugin Name: NGINX FastCGI cache purge
* Version: 0.1
* Description: Flush NGINX FastCGI cache purge
* Author: The Shipyard Crew
* Author URI: https://theshipyard.se/
* Plugin URI: https://theshipyard.se/
* Text Domain: nginx-fastcgi-cache-purge
@oliverservin
oliverservin / install_mariadb_serverpilot.md
Last active November 15, 2016 01:01
How to Upgrade MySQL 5.5 to MariaDB 10.1 on Ubuntu 14.04 and ServerPilot
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable
sudo invoke-rc.d apparmor restart
sudo replace log_slow_queries slow_query_log_file -- /etc/mysql/conf.d/mysqld_slow_log.cnf
sudo bash -c 'echo "slow_query_log = 1" >> /etc/mysql/conf.d/mysqld_slow_log.cnf'
sudo apt-get purge --assume-yes mysql-server mysql-server-5.5 mysql-server-core-5.5 mysql-client mysql-client-5.5 mysql-client-core-5.5
sudo apt-get autoremove --assume-yes
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386] http://mariadb.mirror.anstey.ca/repo/10.1/ubuntu trusty main'