Skip to content

Instantly share code, notes, and snippets.

Looking for work in the Seattle, WA or remote areas.

Brian J King brianjking

Looking for work in the Seattle, WA or remote areas.
View GitHub Profile
jakebellacera / nginx-apache-reverse-proxy-wordpress-mu-vhost.conf
Created Sep 21, 2010
Useful nginx virtual host configuration for reverse proxy (proxy_pass) with Apache
View nginx-apache-reverse-proxy-wordpress-mu-vhost.conf
# useful nginx configuration for reverse proxy with Apache
# edit lines 8, 11, and 30
# taken from:
# edits by jakebellacera ( &&
server {
listen 80;
server_name *; # edit this to your domain
saetia / gist:1623487
Last active Nov 12, 2020
Clean Install – OS X 10.11 El Capitan
View gist:1623487

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
dupuy / README.rst
Last active Dec 3, 2020
Common markup for Markdown and reStructuredText
View README.rst

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

View awesome-wp-config-file.php
* Define type of server
* Depending on the type other stuff can be configured
* Note: Define them all, don't skip one if other is already defined
define( 'DB_CREDENTIALS_PATH', dirname( ABSPATH ) ); // cache it for multiple use
jo-snips / events-conditional-wrappers.php
Last active Nov 9, 2020
The Events Calendar: Basic Conditional Wrappers
View events-conditional-wrappers.php
/* Conditional Logic to Detect Various Event Related Views/Pages
if( tribe_is_month() && !is_tax() ) { // Month View Page
echo 'were on the month view page';
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page
mabroor / Procfile
Created May 25, 2012 — forked from jacobian/Procfile
Hosting Private password protected Sphinx Docs
View Procfile
web: gunicorn -w4 -b0.0.0.0:$PORT app:app
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
matt-bailey / gist:3667087
Created Sep 7, 2012
Terminal - Secure Copy file
View gist:3667087
# Copy file from local to remote server (reverse to copy the other way)
scp [filename] [user]@[remote-server]:/tmp/
Ins1ne /
Created Sep 19, 2012 — forked from smileart/
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)


diemuzi / README
Created Oct 7, 2012
Apache 2.2.x / 2.4.x FPM Configuration
This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, version does not!
The version is 2.4.6, the version I am recommending registers as 2.4.7
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux.
Of course to compile mod_fastcgi:
You can’t perform that action at this time.