Get a local git repo up on an EC2 Instance.
Add yourself to the ssh auth agent, if you haven't already.
ssh-add path/to/your/EC2.pem
############ WordPress #################### | |
# Disable logging for favicon and robots.txt | |
location = /favicon.ico { | |
try_files /favicon.ico @empty; | |
access_log off; | |
log_not_found off; | |
expires max; | |
} |
<?php | |
/* | |
Plugin Name: Custom Registration | |
Description: Updates user rating based on number of posts. | |
Version: 1.1 | |
Author: Tristan Slater w/ Agbonghama Collins | |
Author URI: http://kanso.ca | |
*/ |
find . -name "*.png" -exec optipng '{}' \; | |
find . -name "*.jpg" -exec jpegoptim '{}' \; |
<?php | |
//Simple Ajax Login Form | |
//Source: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ | |
?> | |
//html | |
<form id="login" action="login" method="post"> | |
<h1>Site Login</h1> | |
<p class="status"></p> | |
<label for="username">Username</label> |
<?php if ( $events = get_field( 'events' ) ) : | |
// Re-order our events just in case | |
if ( get_field('sort_order') == 'Date Descending') { | |
usort( $events, 'sort_by_date_descending'); | |
} else { | |
usort( $events, 'sort_by_date_ascending'); | |
} | |
// Set a year checker to see if we should print a new year | |
$year = 0; |