Skip to content

Instantly share code, notes, and snippets.

View acterry's full-sized avatar

Aaron Terry acterry

View GitHub Profile
@pdewouters
pdewouters / remove_post_info_meta_genesis_cpt
Created January 25, 2012 21:12
remove post info and post meta from specific post type single template in genesis
//courtesy http://www.binaryturf.com/genesis-tip-remove-post-info-specific-custom-post-type/
add_filter('genesis_post_info', 'aha_post_info');
add_filter('genesis_post_meta', 'aha_post_meta');
function aha_post_info($post_info)
{
global $post;
if(get_post_type($post->ID) == 'ai1ec_event' )
{
return false;
@mattd
mattd / gist:1006398
Created June 3, 2011 14:12
nginx try_files with a proxy_pass
server {
root /var/www/example.com/static;
server_name example.com;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
try_files /maintenance.html @proxy;
location @proxy {
proxy_pass http://127.0.0.1:10001;