This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to: https://gist.github.com/jdbartlett/444295 | |
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | |
wp-content/* | |
!wp-content/plugins/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( 'MYPLUGIN_VERSION', '1.6.1' ); | |
if ( is_admin() ) { | |
include_once( plugin_dir_path( __FILE__ ) . 'includes/admin/upgrades.php' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Affiliate Links | |
location /out/digitalocean { | |
add_header X-Robots-Tag: "noindex, nofollow"; | |
return 302 https://www.digitalocean.com/?refcode=3196717b4908; | |
} | |
location /out/studiopress { | |
add_header X-Robots-Tag: "noindex, nofollow"; | |
return 302 http://www.shareasale.com/r.cfm?b=241369&u=904813&m=28169&urllink=&afftra$ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user ashley; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Base64 Encoded Data Test | |
Plugin URI: http://github.com/deliciousbrains/wp-migrate-db-pro-tweaks | |
Description: Examples of using WP Migrate DB Pro's filters | |
Author: Delicious Brains | |
Version: 0.1 | |
Author URI: http://deliciousbrains.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Cron Test | |
* Plugin URI: https://gist.github.com/A5hleyRich/6de1712ce5f46662c8ba | |
* Description: WordPress cron and email test. | |
* Author: Ashley Rich | |
* Version: 1.0 | |
* Author URI: http://ashleyrich.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user ashley; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/ashley/ashleyrich.com/public | |
# Backup database | |
wp db export ../backups/`date +%Y%m%d`_database.sql --add-drop-table | |
# Backup uploads directory | |
tar -zcf ../backups/`date +%Y%m%d`_uploads.tar.gz wp-content/uploads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user ashley; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
use epoll; | |
} |
OlderNewer