This file contains 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 Your\Awesome\Namespace\Here; | |
use Illuminate\Http\Request; | |
/** | |
* Trait HasIntendedRoute. | |
*/ | |
trait HasIntendedRoute |
This file contains 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
import_tgz(){ | |
tar -xOzf $1 | mysql -u ${2:-root} -p${3:-1234} | |
} |
This file contains 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
{ | |
"always_show_minimap_viewport": false, | |
"bold_folder_labels": false, | |
"color_scheme": "Packages/User/SublimeLinter/darkula (SL).tmTheme", | |
"enable_tab_scrolling": false, | |
"font_size": 13, | |
"folder_exclude_patterns": [".svn", ".idea", ".hg", "CVS"], | |
"ignored_packages": | |
[ | |
"Vintage" |
This file contains 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_cs_fixer_on_save": true, | |
"php_cs_fixer_additional_args": { | |
"--level": "psr2", | |
"--fixers": "-psr0" | |
} | |
} |
This file contains 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
# Add this repo to the /etc/apt/source.list file | |
deb ftp://ftp.debian.org/debian stable contrib non-free | |
# And run these commands | |
sudo apt-get update | |
sudo apt-get install ttf-mscorefonts-installer |
This file contains 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
# Adicione a seguinte variável ao seu sistema: | |
SSL_CERT_FILE=/path/to/curl-ca-bundle.crt | |
# Você pode pegar uma cópia desse certificado no diretório bin do GIT |
This file contains 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 | |
trait HasRandomStatementTrait | |
{ | |
/** | |
* Random Statements by driver name. | |
* @var array | |
*/ | |
protected $randomStatements = [ | |
'mysql' => 'RAND()', |
This file contains 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
@echo Off | |
php "%~dp0NOMEDOCOMANDO.phar" %* | |
#REM [en] | |
#REM %~dp0 is the directory of the actual file (command.bat) , its like the directive __DIR__ on php. | |
#REM [pt_BR] | |
#REM %~dp0 é o diretório do arquivo atual, similar a diretiva __DIR__ do php. |
This file contains 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 | |
$finder = Symfony\Component\Finder\Finder::create() | |
->files() | |
->in(__DIR__) | |
->exclude('vendor') | |
->notName("*.txt") | |
->ignoreDotFiles(true) | |
->ignoreVCS(true); |
This file contains 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\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
class ValidatorServiceProvider extends ServiceProvider | |
{ |