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
@beporter
beporter / github_header_colors.user.js
Last active May 1, 2018
A Greasemonkey/Tampermonkey script that allows you to customize the header color of each GitHub repository you frequent. If you already have Tampermonkey installed, click the "Raw" button to install this user script.
View github_header_colors.user.js
// ==UserScript==
// @name GitHub Repo Header Colors
// @namespace https://gist.github.com/beporter/704eea76b3943c50f7a61e287f60eca8
// @version 0.8
// @description Change the header background color of selected GitHub repositories.
// @author https://github.com/beporter
// @match http*://github.com/*
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-body
View .bash_profile
# Add this to /config/bash_profile
function wpd {
export XDEBUG_CONFIG="idekey=VVVDEBUG remote_connect_back=1"
wp "$@"
unset XDEBUG_CONFIG
};
# Run these commands:
# vagrant ssh
# sudo cp /srv/config/bash_profile /home/vagrant/.bash_profile
# source ~/.bash_profile
View wp-cli-create.sh
#!/bin/bash
# Setup Variables
DBNAME=dbname
DBUSER=dbuser
DBPASS=dbpass
DBHOST=localhost
DBPREFIX=oxo_
URL=http://
@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
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 post-receive.sh
#!/bin/sh
echo "Deploy beign"
# 設定 nodejs 環境(如果是用 nvm 管理 nodejs 才需要)
. "$HOME/.nvm/nvm.sh"
# 設定 project 路徑
export PROJECT_DIR=$HOME/PROJECT
@ryansechrest
ryansechrest / post-receive.sh
Last active Feb 12, 2017
Git post-receive hook to deploy WordPress and plugins as submodules. It can also install Node.js modules with npm and vendor packages with Composer.
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"
@chicks
chicks / Jenkins_Setup.sh
Last active Dec 31, 2015
Sugar Development with Jenkins CI and GitHub (CentOS 6.5)
View Jenkins_Setup.sh
# Make sure we're using a compatible java
yum remove java
yum install java-1.6.0-openjdk wget
# Install Jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
# Enable Jenkins at boot, and start it up
@Dreyer
Dreyer / deploy.sh
Last active Dec 16, 2015
Git post-receive hook for deploying via Git requests a deploy.sh script in the root directory of the site you're deploying.
View deploy.sh
#!/bin/bash
DEPLOY_PATH="$1"
BRANCH="$2"
if [ "${DEPLOY_PATH}" ]; then
# Begin.
echo "Started deployment: ${DEPLOY_PATH}"
# live.htaccess to .htaccess
@nickfloyd
nickfloyd / gist:4444709
Created Jan 3, 2013
Windows 8 execute all things as admin
View gist:4444709
#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
You can’t perform that action at this time.