Skip to content

Instantly share code, notes, and snippets.

View jannejava's full-sized avatar

Jan Östlund jannejava

View GitHub Profile
@jannejava
jannejava / .php_cs
Created August 28, 2018 12:19
PHPCS Fixer for VSCode and Laravel
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_return' => true,
'braces' => true,
<?php
class MyValetDriver extends ValetDriver
{
protected $cacheUri = '/images/';
protected $cachePath = '/image-cache';
/**
* Determine if the driver serves the request.
*
@jannejava
jannejava / gist:3b9fd2750b32a4a3358c3a70b4431f90
Created August 31, 2016 09:03
Sendy Forge Nginx Config file
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/mydomain.com/before/*;
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mydomain.com;
root /home/forge/mydomain.com/;
# FORGE SSL (DO NOT REMOVE!)