ls
– список файлов и каталоговls -al
– форматированный список со скрытыми каталогами и файламиcd dir
– сменить директорию на dircd
– сменить на домашний каталогpwd
– показать текущий каталогmkdir dir
– создать каталог dirrm file
– удалить filerm -r dir
– удалить каталог dirrm -f file
– удалить форсированно file
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
# /etc/nginx/global/php-restrictions.conf | |
# Don't throw any errors for missing favicons and don't display them in the logs | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
# Don't log missing robots or show them in the nginx logs | |
location = /robots.txt { | |
allow all; |
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; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Query\Builder as QueryBuilder; | |
use Illuminate\Database\Query\Expression; | |
abstract class BaseModel extends Model |
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 | |
if ( ! function_exists('build_url')) | |
{ | |
/** | |
* @param array $parts | |
* @return string | |
*/ | |
function build_url(array $parts) | |
{ |
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\Console; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class BaseCommand extends Command | |
{ |
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\Presenters; | |
abstract class AbstractPresenter | |
{ | |
/** | |
* The resource that is the object that was decorated. | |
* | |
* @var mixed |
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
/** | |
* JQuery plugin SimplePlugin v 1.0 [26.05.14 10:59] | |
* TODO: DESCRIPTION | |
* Created by ... | |
* Contacts: ... | |
*/ | |
// don't declare anything out here in the global namespace | |
(function($) { // create private scope (inside you can use $ instead of jQuery) |
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 | |
if (! function_exists('dqd')) { | |
/** | |
* Dump info about query in builder and end the script. | |
* | |
* @param $query | |
* @param bool $short | |
*/ | |
function dqd($query, $short = false) |
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\Console; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class BaseCommand extends Command | |
{ |
Стала интересна этимология термина slug
(слаг).
Вот пара ссылок которые полностью отвечает на все вопросы.
- https://ru.m.wikipedia.org/wiki/Семантический_URL#Slug
- https://en.m.wikipedia.org/wiki/Clean_URL#Slug
- https://en.m.wikipedia.org/wiki/Slug_(publishing)
- https://www.nytimes.com/times-insider/2014/11/24/whats-in-a-slug/
Если коротко то слаг в разработке это термин непосредственно связанный с семантическим урл (ЧПУ/юзер френдли урл и т.п.). Собственно часть урла которая определяет страницу в человекопонятных ключевых словах.
NewerOlder