Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Ott rynobot

View GitHub Profile
View archive-portfolio.php
<?php
/**
* Portfolio Archive
* Author: Sridhar Katakam
*
*/
//* Add portfolio body class to the head
add_filter( 'body_class', 'sk_add_portfolio_body_class' );
function sk_add_portfolio_body_class( $classes ) {
@rynobot
rynobot / gist:9e8da8953f1d0016f702
Created Mar 6, 2015
Add Expires Header to WordPress
View gist:9e8da8953f1d0016f702
# Add the following to your htaccess file
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/x-icon "access 1 year"
View Contract Killer 3.md

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.