Skip to content

Instantly share code, notes, and snippets.

View tjphippen's full-sized avatar
:octocat:
Coding Stuff

TJ Phippen tjphippen

:octocat:
Coding Stuff
View GitHub Profile
@arosemena
arosemena / installation.sh
Created May 23, 2015 16:01
CentOS 7.0 Installation script (nginx, php-fpm, redis, postgresql), mainly for laravel
#!/bin/bash
#================#
# For CentOS 7.0 #
#================#
######## CONFIG ##########
user="user"
router="index.php"
@beanmoss
beanmoss / RestControllerTrait.php
Created April 18, 2015 12:12
Playing with Laravel Lumen: simple RESTful trait.
<?php namespace App\Http\Controllers;
use Illuminate\Http\Request;
trait RestControllerTrait
{
public function index()
{
$m = self::MODEL;
return $this->listResponse($m::all());