Skip to content

Instantly share code, notes, and snippets.

Avatar
🐻

James Goodman guttmann

🐻
  • Wellington, NZ
View GitHub Profile
@guttmann
guttmann / setup-wildcard-cert.sh
Last active Apr 22, 2018
Setup wildcard cert for local development
View setup-wildcard-cert.sh
# 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
@guttmann
guttmann / gist:11388362
Last active Aug 29, 2015
Remove SS default controller route
View gist:11388362
<?php
$rules = Config::inst()->get('Director', 'rules');
unset($rules['$Controller//$Action/$ID/$OtherID']);
Config::inst()->remove('Director', 'rules');
Config::inst()->update('Director', 'rules', $rules);
View scrutinizer.sh
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
You can’t perform that action at this time.