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
find -type f -name "*.jpg" -exec jpegoptim --strip-all -pm85 --all-progressive -t {} \; |
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
<!DOCTYPE html> | |
<html lang="{{ config('app.locale') }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>@yield('title','Последние записи') - {{setting('site_title')}}</title> | |
<meta name="description" content="{{setting('site_description')}}"> | |
<meta name="keywords" content="{{setting('site_keywords')}}"> |
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\Http\Widgets; | |
use Orchid\Widget\Service\Widget; | |
use Orchid\Core\Models\Menu; | |
class MenuWidget extends Widget { | |
/** | |
* @return 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
<?php | |
namespace App\Core\Behaviors\Many; | |
use Orchid\Behaviors\Many; | |
use Orchid\Http\Forms\Posts\BasePostForm; | |
use Orchid\Http\Forms\Posts\UploadPostForm; | |
class Blog extends Many | |
{ |
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\Http\Controllers; | |
use Orchid\Core\Models\Post; | |
class BlogController extends Controller | |
{ | |
/** |
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
@extends('layouts.app') | |
@section('title',$post->getContent('title')) | |
@section('keywords',$post->getContent('keywords')) | |
@section('description',$post->getContent('description')) | |
@section('content') | |
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
@extends('layouts.app') | |
@section('content') | |
<!-- Page Header --> | |
<!-- Set your background image for this header on the line below. --> | |
<header class="intro-header" style="background-image: url('img/home-bg.jpg')"> | |
<div class="container"> | |
<div class="row"> |
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
wget -r -np https://www.exemple.com/.git/ | |
find . -type f -name "*.html*" -exec rm -f {} \; | |
git status | |
git checkout -- . |
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 | |
require 'vendor/autoload.php'; | |
$top = fopen('./top-1m.csv','r'); | |
$client = new GuzzleHttp\Client(); | |
while ( ($data = fgetcsv($top) ) !== FALSE ) { | |
$sitename = $data[1]; // google.com |
OlderNewer