A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
#!/bin/bash | |
# this is a work in progress! NOT for production. | |
# requires wp-cli | |
# usage: wp-base-install | |
# or: ./wp-base-install.sh | |
# Bits of inspiration from https://gist.github.com/2853221 | |
# to look at: http://www.servercobra.com/automated-wordpress-install-with-nginx-script/ |
$ brew upgrade node | |
==> Upgrading node | |
==> Downloading http://nodejs.org/dist/v0.8.0/node-v0.8.0.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/node/0.8.0 --without-npm | |
==> make install | |
==> Caveats | |
Homebrew has NOT installed npm. We recommend the following method of | |
installation: | |
curl http://npmjs.org/install.sh | sh |
$(function() { | |
// set up some references | |
var commentsDiv = $("#comments"); | |
var commentsToggle = $("#comments-toggle"); | |
if(commentsDiv.length && typeof commentsCategoryID !== "undefined" && typeof commentsStreamID !== "undefined") { | |
// comment counter | |
// docs at http://developers.gigya.com/020_Client_API/020_Methods/z_020_Comments/comments.getComments | |
gigya.comments.getComments({ | |
categoryID: commentsCategoryID, |
// Add a getElementsByClassName function if the browser doesn't have one | |
// Limitation: only works with one class name | |
// Copyright: Eike Send http://eike.se/nd | |
// License: MIT License | |
if (!document.getElementsByClassName) { | |
document.getElementsByClassName = function(search) { | |
var d = document, elements, pattern, i, results = []; | |
if (d.querySelectorAll) { // IE8 | |
return d.querySelectorAll("." + search); |
<?php | |
/* | |
Limiting posts per user. | |
Enable the Paid Memberships Pro plugin and then add this code to your functions.php or as a stand alone plugin. | |
Be sure to read through this code carefully. Update each function to suit your needs. | |
This code has not been tested. Feel free to post issues in the comments. | |
*/ | |
//increment post limit when checking out | |
function my_pmpro_after_checkout($user_id) | |
{ |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
source 'https://rubygems.org' | |
gem 'rails', '3.2.1' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |