Skip to content

Instantly share code, notes, and snippets.

@einkoro
einkoro / hhvm_setcookie_fix.php
Last active Aug 29, 2015
Must-use plugin for a quick and dirty work around for HHVM indexing cookies by name and overwriting WordPress's logged_in and auth cookies.
View hhvm_setcookie_fix.php
<?php
/**
* Plugin Name: WP HHVM setcookie fix
* Plugin URI: http://bitpiston.com/
* Description: Quick n dirty alternative to setcookie() to work around HHVM indexing cookies by name and overwriting multiple cookies of the same name
* Author: BitPiston Studios
* Author URI: http://bitpiston.com/
* Version: 1.0
* Licence: BSD
*/
@grtaylor2
grtaylor2 / woocommerce.css
Created Nov 29, 2013
Clean Woo Commerce CSS -- Replace the plugin's woocommerce.css file with a decompressed formatted stylesheet. This is the original CSS with no edits -- the code is just formatted in a way that makes edits much easier.
View woocommerce.css
/*Stylesheet cleaned up and organized by Marketing Press*/
.clear {
clear:both
}
.nobr {
white-space:nowrap;
}
@markjaquith
markjaquith / gist:6225805
Last active Jul 14, 2021
WordPress multi-tenant directory structure sharing core files for opcode awesomeness, fast deployments, and low disk usage. With inspiration from @weskoop. "=>" indicates a symlink.
View gist:6225805
sites
|__ ms.dev
| |__ content
| |__ index.php
| |__ wp => ../../wordpress/stable
| |__ wp-config.php
|__ one.dev
| |__ content
| |__ index.php
| |__ wp => ../../wordpress/stable
@markjaquith
markjaquith / plugin-deploy.sh
Created Nov 16, 2012 — forked from scribu/plugin-deploy.sh
Plugin deploy script
View plugin-deploy.sh
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH
@jkudish
jkudish / always-login.php
Created Jan 13, 2012
Always logged in with WordPress
View always-login.php
<?php
/**
* keeps a user always logged in
* don't use this on a production site, ever!
*/
add_action('init', 'auto_login');
add_action('admin_init', 'auto_login');
function auto_login() {