Skip to content

Instantly share code, notes, and snippets.

View billwaddyjr's full-sized avatar

Bill Waddy billwaddyjr

View GitHub Profile
@billwaddyjr
billwaddyjr / .vimrc
Created January 30, 2016 21:13 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@billwaddyjr
billwaddyjr / install.sh
Created January 24, 2016 21:37 — forked from fideloper/install.sh
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@billwaddyjr
billwaddyjr / .vimrc
Created January 11, 2016 15:25 — forked from JeffreyWay/.vimrc
My .vimrc file
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
@billwaddyjr
billwaddyjr / AuthController.php
Created December 8, 2015 01:36 — forked from ismaeltoe/AuthController.php
AuthController.php and PasswordController.php for Laravel 5.1
<?php namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use App\User;
use Validator;
class AuthController extends Controller {
/*
|--------------------------------------------------------------------------
@billwaddyjr
billwaddyjr / .bash_profile
Created November 13, 2015 20:56 — forked from JeffreyWay/.bash_profile
Laravel aliases
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Generators Package
@billwaddyjr
billwaddyjr / Controller Sample.php
Created November 11, 2015 16:49 — forked from atrauzzi/Controller Sample.php
Some of the things I love about Laravel 5 request handling.
<?php
use Illuminate\Routing\Controller;
use Illuminate\Foundation\Http\FormRequest;
//
use Illuminate\Http\Request;
/**
*
* Keep in mind, this uses a lot of idiomatic PHP. Any variable can be used as a nullable type and null
<!DOCTYPE HTML>
<html>
<!--
@author Ben Poole, http://benpoole.com
Example HTML5 code for playing with the local WebKit (Opera too?) SQL database.
@see http://benpoole.com/weblog/201106222227
-->
<head>
<meta charset="UTF-8" />
<title>Winkles Of The World Unite!</title>
<html>
<head>
<link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
</head>
<body>
<span class="alert alert-danger">Glyphicon example</span>
<hr>
<div class="the-icons">
<span class="glyphicon glyphicon-glass"></span>