$ sudo install -o redis -g redis -d /var/lib/redis2
$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_syntax' => [ | |
| 'syntax' => 'short', | |
| ], | |
| 'binary_operator_spaces' => [ |
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
| <?php | |
| class BadEgg implements Egg | |
| { | |
| public function eaten() | |
| { | |
| return 'Unsatisfy'; | |
| } | |
| } |
| DEFAULT_USER=$USER | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| PATH=$PATH:/usr/local/sbin | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/$USER/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Routing\UrlGenerator; | |
| use Illuminate\Http\RedirectResponse; | |
| class Cloudflare |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class ForceJson | |
| { | |
| /** | |
| * Handle an incoming request. |
| 'use strict'; | |
| export class Facebook { | |
| getScript() { | |
| return new Promise((resolve) => { | |
| if (window.FB) { | |
| resolve(window.FB); | |
| } | |
| const id = 'facebook-jssdk'; |
| <?php | |
| class Fluent | |
| { | |
| protected $messages = []; | |
| public function hello() | |
| { | |
| $this->messages[] = 'hello'; |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Exception; | |
| use Ramsey\Uuid\Uuid; | |
| class RequestId | |
| { |