Skip to content

Instantly share code, notes, and snippets.

View SapioBeasley's full-sized avatar
🕳️

Andreas Beasley SapioBeasley

🕳️
View GitHub Profile
@SapioBeasley
SapioBeasley / phoronix-cmd.md
Created March 12, 2016 04:03 — forked from anshula/phoronix-cmd.md
Phoronix Test Suite Cheat Sheet
@SapioBeasley
SapioBeasley / retsCommand.md
Last active November 6, 2022 12:54
Rets Laravel Command

Working on a project for a client, we have decided instead of using the traditional IDX and restricting us into a box, go with RETS.

To read more on the differences between IDX and RETS feel free to view it here

Now on to the code!!

Install Depenancies

Assuming you have laravel installed already, we need one other dependancy added.

https://github.com/troydavisson/PHRETS

@SapioBeasley
SapioBeasley / codeRequestImplementation.md
Last active February 19, 2016 06:52
Code Request Implementation

Implementating URL code checks

In your event function of EventsController add \Request $request as the last parameter. This way you can grab all data for that given session.

Example URL: HTTP://siteurl.com/event/cameo?code={yourCode}

public event(\Request $request) {
    // Grab code
 if (isset($request->code)) {
@SapioBeasley
SapioBeasley / newProjectCommand.md
Last active March 13, 2016 06:03
New Laravel Project and Dependency Command

Creating New Project with Dependencies

To begin, copy the below command. Make sure to replace curly bracket values with your proper project names.

$ composer create-project laravel/laravel --prefer-dist {projectName} 
&& cd {projectName} 
&& sudo chown -R andreas:www-data . 
&& composer require sapioweb/crudhelper 
&& composer require spatie/laravel-tail 
@SapioBeasley
SapioBeasley / createCustomLaravelProvider.md
Last active March 13, 2016 06:12
Creating custom Service providers in laravel 5.x

Folder and Name

Create a folder /packages in our root, and we will put our package there. Every package has a name, which consists of two parts; vendor or creator/package name.

Example Laravel itself has a full name of laravel/laravel. Let’s call our package sapioweb/larets

Now we create a folder inside our /packages:

/package
@SapioBeasley
SapioBeasley / tmux-cheatsheet.markdown
Created December 5, 2015 23:44 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname