Skip to content

Instantly share code, notes, and snippets.

View duanecilliers's full-sized avatar

Duane Cilliers duanecilliers

View GitHub Profile
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@duanecilliers
duanecilliers / deactivate-plugins.php
Created April 5, 2017 13:18
Deactivates plugins based on WP_ENV constant. Intended for use as an mu-plugin.
<?php
/**
* Deactivate plugins based environment (WP_ENV)
*
* Used to deactivate plugins only needed in specific environments, caching and security for example.
*
* @package Duanec\DeactivatePlugins
*/
namespace Duanec\DeactivatePlugins;
@duanecilliers
duanecilliers / gist:7597984
Created November 22, 2013 10:45
jitsu deploy error
$ jitsu deploy
info: Welcome to Nodejitsu signpost
info: jitsu v0.13.3, node v0.10.22
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
info: Checking app availability node-uptime
info: Creating app node-uptime
info: Creating snapshot 3.2.0-1
info Uploading: [=============================] 100%
@duanecilliers
duanecilliers / wp-bootstrap-walker-class.php
Created February 13, 2012 14:45
Extended Walker Class for Twitter Bootsrap Navigation Wordpress Integration
<?php
class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu {
function start_lvl( &$output, $depth ) {
//In a child UL, add the 'dropdown-menu' class
$indent = str_repeat( "\t", $depth );
$output .= "\n$indent<ul class=\"dropdown-menu\">\n";