Skip to content

Instantly share code, notes, and snippets.


Courtney Ivey oxocode

Block or report user

Report or block oxocode

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
oxocode /
Last active Aug 29, 2015
Centos 6 vhost Setup
## Use after Centos 6 LAMP Setup
sudo mkdir -p /var/www/vhosts/
sudo chown -R USER:USER /var/www/vhosts/
sudo chmod -R 755 /var/www/vhosts/
sudo vi /etc/httpd/conf/httpd.conf
oxocode /
Last active Aug 29, 2015
Centos 6.5 LAMP setup - Includes Jenkins setup.
## Install MySQL - MariaDB is cool too, but let's stick with MySQL for all intensive purposes.
yum -y install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
oxocode / cleanup_for_writers.php
Last active Aug 29, 2015 — forked from Aaron3/cleanup_annoying_writers.php
Editors tend to copy and paste from MS Word a lot.
View cleanup_for_writers.php
add_filter('content_save_pre', 'cleanup_for_writers');
function cleanup_for_writers($content)
remove_filter('content_save_pre', array($this, 'cleanup_annoying_writers'));
$content =trim(stripslashes($content));
//No JS
View gist:9976825
#To disable the UAC prompt and run everything by default as admin
#Is set to 1 by default
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"
shutdown -r -t 0 #reboot
#If the above breaks your ability as an Admin to install apps from the Microsoft store
#run the following in an elevated Powershell console
# Split MySQL dump SQL file into one file per table
# based on
#adjust this to your case:
START="/-- Table structure for table/"
# or
View console.xml
<?xml version="1.0"?>
<console change_refresh="10" refresh="100" rows="20" columns="98" buffer_rows="500" buffer_columns="0" init_dir="C:\Users\Kevin\Desktop" start_hidden="0" save_size="1" shell="C:\Program Files (x86)\Git\bin\sh.exe --login -i">
<color id="0" r="0" g="43" b="54"/>
<color id="1" r="38" g="139" b="210"/>
<color id="2" r="133" g="153" b="0"/>
<color id="3" r="42" g="161" b="152"/>
<color id="4" r="220" g="50" b="47"/>
<color id="5" r="211" g="54" b="130"/>
oxocode / clear-floats.css
Last active Dec 25, 2015
[CSS] Clearing Floats
View clear-floats.css
/* Float Clearing--------------------------------------------- */
address:before, address:after,article:before, article:after,aside:before, aside:after,audio:before, audio:after,blockquote:before, blockquote:after,canvas:before, canvas:after,dd:before, dd:after,div:before, div:after,dl:before, dl:after,fieldset:before, fieldset:after,figcaption:before, figcaption:after,figure:before, figure:after,footer:before, footer:after,form:before, form:after,header:before, header:after,hgroup:before, hgroup:after,hr:before, hr:after,main:before, main:after,output:before, output:after,pre:before, pre:after,section:before, section:after,table:before, table:after,tfoot:before, tfoot:after,video:before, video:after,.clearfix:before, .clearfix:after { content: " "; display: table;} address:after,article:after,aside:after,audio:after,blockquote:after,canvas:after,dd:after,div:after,dl:after,fieldset:after,figcaption:after,figure:after,footer:after,form:after,header:after,hgroup:after,hr:after,main:after,output:after,pre:afte
oxocode / count_sidebar_widgets.php
Last active Dec 24, 2015
Count Sidebar Widgets.Need to get the number of widgets for a specific sidebar? Use this function by passing in the ‘id’ of the sidebar.
View count_sidebar_widgets.php
function get_widgets_count( $sidebar_id ){
$sidebars_widgets = wp_get_sidebars_widgets();
return (int) count( (array) $sidebars_widgets[ $sidebar_id ] );
oxocode / Flipboard-feed.php
Last active Dec 24, 2015
[Plugin] Flipboard feed modifications
View Flipboard-feed.php
* Plugin Name: Flipboard RSS Feed
* Plugin URI:
* Description: A plugin to customize the default RSS Feed according to Flipboard technical specifications.
* Version: 1.0
* Author: oxocode
* Author URI:
You can’t perform that action at this time.