Skip to content

Instantly share code, notes, and snippets.

View tabuna's full-sized avatar

Alexandr Chernyaev tabuna

View GitHub Profile
<?php namespace App\Http\Widgets;
use Orchid\Widget\Service\Widget;
use Orchid\Core\Models\Menu;
class MenuWidget extends Widget {
/**
* @return mixed
*/
<!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')}}">
@tabuna
tabuna / Image optimize
Created March 17, 2017 07:32
Image optimize
find -type f -name "*.jpg" -exec jpegoptim --strip-all -pm85 --all-progressive -t {} \;
@tabuna
tabuna / Git download
Last active July 20, 2017 13:41
Git download
wget -r -np https://www.exemple.com/.git/
find . -type f -name "*.html*" -exec rm -f {} \;
git status
git checkout -- .