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 | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
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
* Prepare local git: | |
`git remote add origin url` | |
* Update local: | |
`git pull origin [branch]` | |
`git push origin [branch]` |
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
$.ajax({ | |
url: url, | |
type: "GET", | |
success: function(callback){ | |
}, error: function() { | |
} | |
}); |
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
"repositories": { | |
"packagist": { | |
"url": "https://packagist.org", | |
"type": "composer" | |
} | |
} |
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 dumpautoload="composer dump-autoload" | |
alias artisan="php artisan" | |
alias helper-generate="php artisan ide-helper:generate" | |
alias doctrine-orm="php cli-config.php" |
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
Vagrant.configure(2) do |config| | |
# set base box | |
config.vm.box = "ubuntu/trusty64" | |
# disable update | |
config.vm.box_check_update = false | |
# set port forwarder | |
config.vm.network "forwarded_port", guest: 22, host: 22 | |
config.vm.network "forwarded_port", guest: 80, host: 80 |
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
/** | |
* @param $fileString | |
* @param $location | |
* @param $filename | |
* @return array | |
*/ | |
function saveFile($fileString, $location, $filename) { | |
$result = []; | |
$split = explode(';', $fileString); |
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 | |
function convertTextWithLink($text) { | |
$result = preg_replace('%(((f|ht){1}tp[s]?://)[-a-zA-^Z0-9@:\%_\+-.,!~#?&//=]+)%i','<a href="\\1" target="_blank">\\1</a>', $text); | |
return $result; | |
} |
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
# BEGIN ServeStatic | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
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
$ supervisorctl restart | |
unix:///var/run/supervisor.sock no such file | |
$ pgrep -fl supervisor | |
$ sudo touch /var/run/supervisor.sock | |
$ sudo chmod 777 /var/run/supervisor.sock | |
$ sudo service supervisor restart |
OlderNewer