Skip to content

Instantly share code, notes, and snippets.

Avatar

Rohit Bhute rvbhute

View GitHub Profile
View ApplicationsServiceProvider.php
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Request;
use View;
use App;
abstract class ApplicationsServiceProvider extends ServiceProvider
{
public function register()
@philsturgeon
philsturgeon / 0-intro.md
Last active Jun 7, 2018
PSR-2 v CodeSniffer PSR-2
View 0-intro.md

This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.

Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.

@almays
almays / gist:3928668
Created Oct 21, 2012
Unix conf: Sendy nginx rewrite rules
View gist:3928668
index index.php index.html;
root /your/path/to/the/sendy;
location = / {
index index.php;
}
location / {
if (!-f $request_filename){
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;