Skip to content

Instantly share code, notes, and snippets.

Looking to relocate to the Seattle, WA area!

Brian J King brianjking

Looking to relocate to the Seattle, WA area!
Block or report user

Report or block brianjking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index-with-redis.php
Author: Hans2103
credit: Jim Westergren, Jeedo Aquino & Flynsarmy
File: index-with-redis.php
Updated: 2013-05-27
This is a redis caching system for Wordpress based on Redis connection using PHPRedis.
View gist:ecd45c316f13b85db7b62c51e6c33c72
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- This is a simple example template that you can edit to create your own custom templates -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Facebook sharing information tags -->
<meta property="og:title" content="*|MC:SUBJECT|*">
brianjking / Procfile
Created Aug 16, 2016 — forked from mabroor/Procfile
Hosting Private password protected Sphinx Docs
View Procfile
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
brianjking /
Created Aug 9, 2016 — forked from kvnsmth/
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add Vendor/AFNetworking

or something to that effect.

brianjking / config.rb
Created Jul 28, 2016 — forked from egardner/config.rb
PDF Output for Middleman
View config.rb
# Only the relevant parts of config.rb are included here
require "extensions/pdf"
# ...
configure :build do
activate :pdf do |pdf|
pdf.print_template = "/catalogue/print-template.html"
brianjking / Git dot files management
Created Apr 13, 2016 — forked from lonetwin/Git dot files management
A simple way to manage dotfiles with git without silly symlinks and special tools. Just use negative matches in your .gitignore !
View Git dot files management
I like to manage dotfiles without having to mess with silly symlinks or having
to install/configure specific dotfile managament tools. So here's what I did:
$ cd ~
$ git init .
$ echo '*' > .gitignore # ignore all files by default
$ echo '!.bashrc' >> .gitignore # ...and then tell git what files not to *not* ignore
$ # ...add other files you may want to track to *not* ignore
$ git add .bashrc # now actually add the files to git
$ git add .gitignore # add the .gitignore to git
brianjking / .git-commit-template.txt
Created Mar 18, 2016 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
View .git-commit-template.txt
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
brianjking / socialmenu.html
Last active Mar 16, 2016 — forked from neilgee/socialmenu.html
FontAwesome Social Media Menu
View socialmenu.html
<link href="//" rel="stylesheet">
ul {
overflow: auto;
ul li {
list-style-type: none;
float: left;
View dueling-dogs-font-awesome-link-vertical-list.html
You can’t perform that action at this time.