Skip to content

Instantly share code, notes, and snippets.

View tburry's full-sized avatar

Todd Burry tburry

View GitHub Profile
@tburry
tburry / git-prune-local.sh
Last active August 29, 2015 14:21
A handy script to clean up merged git branches.
# Remove stale remote tracking branches.
git remote prune origin
# Remove stale local tracking branches.
git branch --merged | grep -v "\*" | egrep -v "master|development" | xargs -n 1 git branch -d
@tburry
tburry / vanilla.dev.conf
Created April 13, 2015 17:03
An nginx configuration file for multiple Vanilla installations in one folder.
server {
server_name vanilla.dev;
listen 80;
root /var/www/vanilla;
location ^~ /static {
access_log /dev/null;
error_log /dev/null crit;
@tburry
tburry / bootstrap.before.php
Created April 13, 2015 17:00
A boostrap.before for multiple Vanilla installations in one folder.
<?php
/**
* This file will make Vanilla use a different config depending on which site you're on.
* Drop this file into your /conf folder.
*/
// Get the config.
if (isset($_SERVER['NODE_SLUG'])) {
// This is a site per folder setup.
@tburry
tburry / htaccess.txt
Last active March 10, 2022 01:58
.htaccess file for pretty urls that route through index.php
# Original
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
# RewriteBase /
# The basic rewrtie rule.