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
| https://hackernoon.com/creating-rest-api-in-php-using-guzzle-d6a890499b02 |
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
| // Doctrine ORM | |
| use Doctrine\ORM\Mapping\ClassMetadata; | |
| use Doctrine\ORM\EntityManager; | |
| use Doctrine\ORM\AbstractQuery; | |
| use Doctrine\ORM\QueryBuilder; | |
| class RepositorySpec extends ObjectBehavior | |
| { | |
| function let(EntityManager $em, ClassMetadata $classMetadata) | |
| { |
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
| #Download Elementary OS from here: | |
| #http://sourceforge.net/projects/elementaryos/files/stable/ | |
| #First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
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
| #Inslatar Xdebug | |
| sudo apt-get install xdebug | |
| #Instalar o pear | |
| sudo apt-get install php-pear | |
| sudo pear channel-discover pear.phpunit.de | |
| sudo pear channel-discover components.ez.no | |
| sudo pear channel-discover pear.symfony-project.com | |
| sudo pear channel-discover pear.cakephp.org |
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 | |
| # works with a file called VERSION in the current directory, | |
| # the contents of which should be a semantic version number | |
| # such as "1.2.3" | |
| # this script will display the current version, automatically | |
| # suggest a "minor" version update, and ask for input to use | |
| # the suggestion, or a newly entered value. |
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 (!function_exists('http_response_code')) { | |
| function http_response_code($code = NULL) { | |
| if ($code !== NULL) { | |
| switch ($code) { | |
| case 100: $text = 'Continue'; break; | |
| case 101: $text = 'Switching Protocols'; break; | |
| case 200: $text = 'OK'; break; | |
| case 201: $text = 'Created'; break; |
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
| { | |
| "name": "jfranciscos4/<nomeapp>", | |
| "description": "", | |
| "license": "", | |
| "authors": [ | |
| { | |
| "name": "José Francisco da Silva IV", | |
| "email": "" | |
| } | |
| ], |
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
| [alias] | |
| #Basic | |
| st = status -sb | |
| co = checkout | |
| #Flow | |
| fs = flow feature start | |
| ff = flow feature finish | |
| #Infoz |
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 | |
| echo ">>> Starting Install Script" | |
| # Update | |
| sudo apt-get update | |
| echo ">>> Installing Base Items" | |
| # Install base items |
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
| <VirtualHost *:80> | |
| ServerName 192.168.33.10.xip.io | |
| DocumentRoot /vagrant | |
| <Directory /vagrant> | |
| Options -Indexes +FollowSymLinks | |
| AllowOverride All | |
| Require all granted | |
| </Directory> |