Skip to content

Instantly share code, notes, and snippets.

:octocat:
stuff.

Courtney Ivey oxocode

View GitHub Profile
View vscode-extensions.sh
code --install-extension Andreabbondanza.ignoregit
code --install-extension HookyQR.beautify
code --install-extension MehediDracula.php-namespace-resolver
code --install-extension aaron-bond.better-comments
code --install-extension ashpowell.monokai-one-dark-vivid
code --install-extension azemoh.one-monokai
code --install-extension bogdan-sinitsa.theme-dark-monokai
code --install-extension calvinhong.stylelint-fix
code --install-extension christian-kohler.path-intellisense
code --install-extension cxfksword.goto-documentation
@oxocode
oxocode / jquery.iframetracker.js
Last active Sep 14, 2015 — forked from simondahla/jquery.iframetracker.js
Add Conversion Tracking to an iframe with VWO and iframetracker.js
View jquery.iframetracker.js
/**
* jQuery iframe click tracking plugin demo
* Version 1.0 (2013-03-30)
* Copyright © 2013 Vincent Paré
* https://github.com/finalclap/iframeTracker-jquery
*/
(function($){
// Registering new tracking handler
$.fn.iframeTracker = function(handler){
// Storing the new handler into handler list
View git-merged
#!/bin/bash
# git-merged
#
# Show which branches are merged into upstream or the given commit
me=`basename $0`
usage () {
# Call as: usage [EXITCODE] [USAGE MESSAGE]
exit_code=1
@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,
@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 / local.domain.com.conf
Last active Nov 2, 2016
VVV Nginx Configuration
View local.domain.com.conf
# VVV Nginx Configuration
# oxocode
# - Uses proper domain.com extension for verifying
# third party APIs are loading / ads are being served.
# - Allows access to localhost via mobile
# - Uses xip.io for testing RWD via mobile
#
# Assumptions: These rules assume that your
# development site was created in 'local.domain.com'
# within your vagrant public root
@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
View wp-cli-create.sh
#!/bin/bash
# Setup Variables
DBNAME=dbname
DBUSER=dbuser
DBPASS=dbpass
DBHOST=localhost
DBPREFIX=oxo_
URL=http://
@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 / 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
##
You can’t perform that action at this time.