Skip to content

Instantly share code, notes, and snippets.

:octocat:
stuff.

Courtney Ivey oxocode

:octocat:
stuff.
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
View console.xml
<?xml version="1.0"?>
<settings>
<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">
<colors>
<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"/>
View mysql_splitdump.sh
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on https://gist.github.com/jasny/1608062
####
#adjust this to your case:
START="/-- Table structure for table/"
# or
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
@oxocode
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
<?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
@oxocode
oxocode / centos-6-vhost-setup.sh
Last active Aug 29, 2015
Centos 6 vhost Setup
View centos-6-vhost-setup.sh
##
## Use after Centos 6 LAMP Setup
##
sudo mkdir -p /var/www/vhosts/DOMAIN.com/public_html
sudo chown -R USER:USER /var/www/vhosts/DOMAIN.com/public_html
sudo chmod -R 755 /var/www/vhosts/
sudo vi /etc/httpd/conf/httpd.conf
##
@oxocode
oxocode / centos-6-lamp-setup.sh
Last active Aug 29, 2015
Centos 6.5 LAMP setup - Includes Jenkins setup.
View centos-6-lamp-setup.sh
#!/bin/bash
##
## 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
mysql_secure_installation
@oxocode
oxocode / post-receive.sh
Last active Aug 29, 2015 — forked from ryansechrest/post-receive.sh
Git Deployments with post-receive.sh.
View post-receive.sh
#!/bin/bash
# Created on 7/17/13 by Ryan Sechrest
# Deploys pushed branch from the origin repository to the web directory
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then
# Set path to project directory
project_path="/var/www/domains/$2/$3"
@oxocode
oxocode / xdebug-settings-google-chrome.txt
Created Nov 7, 2014
Xdebug-Settings-for-Google-Chrome-Output
View xdebug-settings-google-chrome.txt
xdebug.collect_params=4
xdebug.collect_vars=1
xdebug.dump_globals=1
xdebug.dump.undefined=1
xdebug.show_local_vars=1
xdebug.cli_color=1
xdebug.collect_includes=1
xdebug.show_exception_trace=1
xdebug.show_local_vars=1
@oxocode
oxocode / .eslintrc
Created Apr 22, 2015
EsLint Project Template
View .eslintrc
{
"ecmaFeatures": {
},
"env": {
"amd": true
},
"rules": {
"quotes": "single",
"curly": "multi",
"camelcase": false,
@oxocode
oxocode / .jscsrc
Created Apr 22, 2015
A JSCS WordPress Project Template
View .jscsrc
{
"disallowKeywordsOnNewLine": ["else"],
"disallowMixedSpacesAndTabs": "smart",
"disallowNewlineBeforeBlockStatements": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowTrailingWhitespace": true,
"requireBlocksOnNewline": true,
You can’t perform that action at this time.