Skip to content

Instantly share code, notes, and snippets.

View jhaoda's full-sized avatar

JhaoDa jhaoda

  • Krasnoyarsk, Russia
View GitHub Profile
@YPermitin
YPermitin / VMWareWorkstation-Error-KernelModuleInstall.md
Last active October 24, 2024 18:59
Решение проблемы с установкой модулей VMWare Workstation на Ubuntu 22.04

Решение проблемы с установкой модулей VMWare Workstation на Ubuntu 22.04

Описание решения ошибок при установке модулей VMWare Workstation на Ubuntu 22.04 после обновления ядра или при начальной установке.

Описание проблемы

При попытке установки модулей VMWare Workstation могут возникнуть ошибки вида:

@jhaoda
jhaoda / stylish.css
Last active August 6, 2019 13:00
Old gitter.im style
@-moz-document domain("gitter.im") {
body {
font-family: 'Open Sans';
font-size: 14px;
}
/* common */
h1, h2, h3, h4, h5 {
line-height: 1;
}
@Kreshnik
Kreshnik / PreventReplayAttack.php
Last active November 6, 2024 14:25
Laravel 5 - PreventReplayAttack Middleware
<?php namespace App\Http\Middleware;
use Carbon\Carbon;
use Closure;
use Illuminate\Cache\Repository as Cache;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\Session;
class PreventReplayAttack
{
<?php namespace Backend\Auth;
use Illuminate\Auth\AuthManager as BaseAuthManager;
use Illuminate\Auth\EloquentUserProvider;
class AuthManager extends BaseAuthManager
{
/**
* Create an instance of the Eloquent driver.
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 5, 2025 13:05
A badass list of frontend development resources I collected over time.
@msurguy
msurguy / eloquent.md
Last active February 8, 2022 03:13
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';