This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @test | |
* | |
* @expectedException \RuntimeException | |
*/ | |
function throws_exception() | |
{ | |
$sut = new SomeSut(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
/** | |
* Does the response contain all required attributes of a JSONApi Response Resource. | |
* | |
* @param array|null $resource | |
*/ | |
protected function assertJsonAPIIsValidResource(?array $resource = null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer require \ | |
doctrine/mongodb \ | |
alcaeus/mongo-php-adapter \ | |
doctrine/mongodb-odm \ | |
doctrine/mongodb-odm-bundle \ | |
-vv --ignore-platform-reqs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current=$PWD | |
cd $HOME | |
sudo brew install zsh | |
chsh -s /bin/zsh $USER | |
brew tap thoughtbot/formulae |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Repositories\TaskRepository; | |
class TaskController extends Controller | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
category_list: | |
path: /{filter}/{category_slug}.{_format} | |
requirements: | |
filter: articles|galleries | |
_format: html|json | |
defaults: | |
_format: html | |
_entity_resolution: | |
strategy: via_section_and_type | |
_response_resolution: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd ~/ | |
mkdir -p bin src/{news,trq,utils,thoughtbot} var | |
# install rcm | |
wget https://thoughtbot.github.io/rcm/debs/rcm_1.2.3-1_all.deb | |
sudo dpkg -i rcm_1.2.3-1_all.deb |
NewerOlder