Skip to content

Instantly share code, notes, and snippets.

View trq's full-sized avatar

Tony R Quilkey trq

  • thorpesystems
  • Sydney, Australia
View GitHub Profile
<?php
/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
#!/bin/bash
current=$PWD
cd $HOME
sudo apt-get install zsh
chsh -s /bin/zsh $USER
wget https://thoughtbot.github.io/rcm/debs/rcm_1.3.0-1_all.deb
#!/bin/bash
current=$PWD
cd $HOME
sudo brew install zsh
chsh -s /bin/zsh $USER
brew tap thoughtbot/formulae
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l | grep "The agent has no identities" && ssh-add
composer require \
doctrine/mongodb \
alcaeus/mongo-php-adapter \
doctrine/mongodb-odm \
doctrine/mongodb-odm-bundle \
-vv --ignore-platform-reqs
@trq
trq / TestCase.php
Last active December 1, 2016 12:07
<?php
// ...
/**
* Does the response contain all required attributes of a JSONApi Response Resource.
*
* @param array|null $resource
*/
protected function assertJsonAPIIsValidResource(?array $resource = null)
<?php
/**
* @test
*
* @expectedException \RuntimeException
*/
function throws_exception()
{
$sut = new SomeSut();