Skip to content

Instantly share code, notes, and snippets.

View SapioBeasley's full-sized avatar
🕳️

Andreas Beasley SapioBeasley

🕳️
View GitHub Profile
@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
@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 / 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 / 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 / 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 / phoronix-cmd.md
Created March 12, 2016 04:03 — forked from anshula/phoronix-cmd.md
Phoronix Test Suite Cheat Sheet
@SapioBeasley
SapioBeasley / 1_phpunit-api.md
Last active March 12, 2016 20:31 — forked from loonies/1_phpunit-api.md
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()
@SapioBeasley
SapioBeasley / rss2pdf.md
Last active April 1, 2025 06:02
RSS feed to PDF

rss2pdf

Simple php page where after submitting an rss feed from news.google.com it will grab the contents of the RSS and gernerate a PDF output with one article from the XML per page.

Functionality is specifically made to parse news.google.com rss, but other rss feeds may be input as well. Other inputs will only display the description and no other data without further edits.

Demo

Input rss/xml feed you would like to have parsed submit it. You will see a notice to view your pdf submission. Click to view. An example url that you can use is http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss.

Run a live demo: http://sapioweb.com/rss2pdf

@SapioBeasley
SapioBeasley / geocode.md
Last active March 23, 2016 18:36
Looking for advice with Geocode

I have finally found a reason to use my geocode software in a real world project. It's working as expected, but I think it could be even more usefule and powerful. Looking for any advice, tips, or features to add on.

Fork Here


geocode

Build Status Latest Stable Version