Skip to content

Instantly share code, notes, and snippets.


Reece Fowell reecefowell

View GitHub Profile
View PHPUnit Assertions
View Deploy CCDN
#!/usr/bin/env bash
sudo cp -rR /etc/yum.repos.d/ /etc/yum.repos.d-backup/
sudo ln -s /CCDNSandbox/Vagrant /vagrant
sudo chmod 755 /vagrant/shell/*.sh
sudo /vagrant/shell/
sudo /vagrant/shell/
sudo /vagrant/shell/
sudo /vagrant/shell/
reecefowell / composer.json
Created Jan 29, 2014
composer.json for CCDN
View composer.json
"name": "codeconsortium/ccdn-sandbox",
"description": "The \"CodeConsortium Standard Edition\" distribution",
"license": "MIT",
"type": "project",
"autoload": {
"psr-0": { "": "src/" }
"minimum-stability": "dev",
"repositories": [
View gulpfile.js
var gulp = require('gulp'); // gulp core
sass = require('gulp-sass'), // sass compiler
uglify = require('gulp-uglify'), // uglifies the js
jshint = require('gulp-jshint'), // check if js is ok
rename = require("gulp-rename"); // rename files
concat = require('gulp-concat'), // concatinate js
View JPA repository
* Copyright 2008-2011 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
reecefowell / gist:adeacf013c7c92eb0027
Last active Dec 30, 2015 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
View gist:adeacf013c7c92eb0027

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
View Setting up XenServer, Orchestra and VM'

Network Setup

I have configured my network as following:

IP Address Purpose XenServer Host Xen Orchestra various VM's

On Ubuntu 14 machine

Setup SSH files

  • mkdir ~/.ssh
  • chmod 700 ~/.ssh
  • touch ~/.ssh/authorized_keys
  • chmod 700 ~/.ssh/authorized_keys
reecefowell / oh-my-zsh git
Last active Aug 12, 2016
Make Oh-my-zsh + Agnoster theme run faster with git prompts
View oh-my-zsh git

Edit ~/.zshrc and uncomment the following line DISABLE_UNTRACKED_FILES_DIRTY="true"

add this to projects mounted over NFS git config --add oh-my-zsh.hide-status 1

also, you could edit ~/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh but changes might potentially be lost in udpates

function git_prompt_info() {
reecefowell / nginx.conf
Created Nov 29, 2016 — forked from calebwoods/nginx.conf
Sample Nginx config for deployment of Angular.js app
View nginx.conf
server { listen 80;
access_log /var/log/;
error_log /var/log/;
root /var/www/apps/;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
You can’t perform that action at this time.