Skip to content

Instantly share code, notes, and snippets.

git rm -r --cached .
git add .
@danielsamson
danielsamson / gist:1e049fc05eb9ef27b048
Last active August 29, 2015 14:14
Apache permalink config
# Get apache config file
/usr/sbin/apache2 -V
# Edit apache file
sudo vim /etc/apache2/apache2.conf
# Change to make to file
AllowOverride All
# Reload it
@danielsamson
danielsamson / Vagrantfile
Created January 26, 2015 10:12
Vagrant setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@danielsamson
danielsamson / bootstrap.sh
Created January 26, 2015 09:57
Vagrant bootstrap
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug