Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
#!/bin/bash | |
git_host='[email protected]:' | |
git_url='https://github.com/' | |
remote=`git config --get remote.origin.url` | |
host=${remote:0:15} | |
if [ $host = $git_host ] | |
then | |
url=${remote/$git_host/$git_url} |
<?php | |
/** | |
* Example function description | |
* | |
* @since {Next WordPress SEO Version} | |
* | |
* @param {array, string, int, objext} {$variable_name} {Short description} | |
* @param {array, string, int, objext} {$variable_name} {Short description} | |
* |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Make a DNS handshake with a foreign domain, so the connection goes faster when the user eventually needs to access it. This works well for loading in assets (like images) from another domain, or a JavaScript library from a CDN. --> | |
<link rel="dns-prefetch" href="//ajax.googleapis.com" /> | |
<link rel="dns-prefetch" href="//s3.amazonaws.com" /> | |
<!-- Make sure the latest version of IE is used --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
Here is a simple javascript redirect that uses the [Mobile Link Discovery Spec][1] a valid markup link tag that tells the browser where to find an Alternate for Hand-Held devices.
<link rel="alternate" media="handheld" href="http://m.google.com" />
simply replace m.google.com with the url of your mobile site.
and import this script
<script type="text/javascript" src="redirect.js"></script>
/** | |
* @ NAME: Cross-browser TextStorage | |
* @ DESC: text storage solution for your pages | |
* @ COPY: sofish, http://sofish.de | |
*/ | |
typeof window.localStorage == 'undefined' && ~function () { | |
var localStorage = window.localStorage = {}, | |
prefix = 'data-userdata', | |
doc = document, |
<?php | |
/* | |
GeoRSS formatted output for Google Maps | |
Authors: Alastair Mucklow, Chris Toppon | |
*/ | |
//header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true); | |
//$more = 1; | |
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'" standalone="yes"?'.'>'; ?> |
The idea is to have nginx installed and node installed. I will extend this gist to include how to install those as well, but at the moment, the following assumes you have nginx 0.7.62 and node 0.2.3 installed on a Linux distro (I used Ubuntu).
In a nutshell,
So for example, www.foo.com request comes and your css, js, and images get served thru nginx while everything else (the request for say index.html or "/") gets served through node.