Skip to content

Instantly share code, notes, and snippets.

View tyrannosaurusjames's full-sized avatar

James Goodman tyrannosaurusjames

View GitHub Profile
@tyrannosaurusjames
tyrannosaurusjames / setup-wildcard-cert.sh
Last active April 22, 2018 19:58
Setup wildcard cert for local development
# Assumed go is already installed somewhere
# Set the Go PATH (this is where go installs binaries/packages/source code)
export GOPATH=/home/james/go
# install easypki
go get github.com/google/easypki/cmd/easypki
# Add Go bin directory to PATH
export PATH=/home/james/go/bin:$PATH
@tyrannosaurusjames
tyrannosaurusjames / gist:11388362
Last active August 29, 2015 14:00
Remove SS default controller route
<?php
$rules = Config::inst()->get('Director', 'rules');
unset($rules['$Controller//$Action/$ID/$OtherID']);
Config::inst()->remove('Director', 'rules');
Config::inst()->update('Director', 'rules', $rules);
mkdir scrutinizer && cd scrutinizer
# Install tools
# - Scrutinizer and composer
wget http://scrutinizer-ci.com/scrutinizer.phar
curl -sS https://getcomposer.org/installer | php
# - All needed CI tools
php composer.phar require h4cc/phpqatools:~1.2
cp -p composer.phar vendor/bin/composer