This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http\Controllers; | |
class PageController extends Controller | |
{ | |
/** | |
* Loads page from the filesystem | |
* @param String $page | |
* @return Response | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while :; do say "This speech is my recital, I think its very vital. " \ | |
"To rock a rhyme thats right on time. " \ | |
"Its Tricky is the title, here we go. " \ | |
"Its tricky to rock a rhyme, to rock a rhyme thats right on time. " \ | |
"Its tricky, its tricky, tricky. " \ | |
"Tricky, tricky. " \ | |
"Its tricky to rock a rhyme, to rock a rhyme thats right on time. " \ | |
"Its tricky, tr-tr-tricky, tricky. " \ | |
"Tricky. " \ | |
"I met this little girlie, her hair was kinda curly. " \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run as root, change below variables | |
export PROJECT_NAME='project' | |
export DEBIAN_FRONTEND="noninteractive" # Supress mysql-server password dialog (set password during mysql_secure_installation command instead) | |
apt-get install nginx php5-fpm php5-cli php5-mysql mysql-server nodejs nodejs-legacy npm -y | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
sudo -u www-data -H mkdir -p /var/www/$PROJECT_NAME/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
class Model extends Eloquent | |
{ | |
/** | |
* Create a new Eloquent model instance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
use Illuminate\Support\Str; | |
use App\Role; | |
/** | |
* Adds roles to a model | |
* Note: requires a Role model pivot table {model}_roles and a role table with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="no-js" lang="en"> | |
<head> | |
<title>Project</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<script> | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Writes to the log that a deprecated method was called, and where it was called from. | |
*/ | |
function log_deprecated_method() | |
{ | |
list($x, $current, $caller) = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3); | |
$currentMethod = (isset($current['class']) ? $current['class'].'::' : '').$current['function'].'()'; | |
$callerMethod = (isset($caller['class']) ? $caller['class'].'::' : '').$caller['function'].'()'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = sha1(getenv('HOSTNAME')); | |
function rgbcode($id){ | |
return '#'.substr(md5($id), 0, 6); | |
} | |
?><html> | |
<style> | |
body { padding: 30px; background-color: <?php echo rgbcode($id); ?>; font-family: sans-serif; } | |
h1 { background: #000; color: #fff; margin: 0; padding: 5px; float: left; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------- | |
# Aiases & Functions | |
# ------------------------- | |
# locations | |
alias desktop="cd ~/Desktop/" | |
alias dev="cd ~/Development/" | |
alias ..="cd ../" | |
# hosts related |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Summerfruit</string> |