Enable password-less ssh access:
cat ~/.ssh/id_rsa.pub | ssh username@server "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
# shortcut: copyrsa
<?php | |
return (new PhpCsFixer\Config()) | |
->setRules([ | |
'@PSR12' => true, | |
'@PHP74Migration' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": true, | |
"quoteProps": "as-needed", | |
"jsxSingleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, |
#################### | |
# ALIASES | |
#################### | |
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'" | |
alias flushdns="sudo killall -HUP mDNSResponder" | |
alias dskill="find . -name '*.DS_Store' -type f -delete" | |
alias dockspacer="defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"spacer-tile\"}' && killall Dock" |
<?php | |
use Illuminate\Database\Seeder; | |
class CountriesTableSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
<?php | |
return [ | |
'error_codes' => [ | |
0 => 'Unexpected error', | |
1 => 'Outside working area', | |
2 => 'No loop signal', | |
3 => 'Wrong loop signal', | |
4 => 'Loop sensor problem, front', | |
5 => 'Loop sensor problem, rear', |
<?php | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR12' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => [ | |
'syntax' => 'short', | |
], |
<?php | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR12' => true, | |
'@PHP74Migration' => true, | |
'align_multiline_comment' => true, | |
'array_indentation' => true, | |
'array_syntax' => [ | |
'syntax' => 'short', |
<?php | |
namespace Tests; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
abstract class TestCase extends BaseTestCase | |
{ | |
use CreatesApplication; |