Skip to content

Instantly share code, notes, and snippets.

View dbpolito's full-sized avatar

Daniel Polito dbpolito

View GitHub Profile
@dbpolito
dbpolito / extensions.json
Created March 29, 2018 19:27
Beautiful VSCode Settings
[
"Docker",
"DotENV",
"ESLint",
"GitLens - Git supercharged",
"Laravel Blade Snippets",
"PHP Intelephense",
"Prettier - Code formatter",
"Project Manager",
"Rainglow",
@dbpolito
dbpolito / MessageCreate.php
Last active January 11, 2016 18:22
Laravel Event Prototype
<?php
namespace App\Events;
use App\Message;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class MessageCreate extends Event
Verifying that +dbpolito is my blockchain ID. https://onename.com/dbpolito
@dbpolito
dbpolito / gist:504389298511a4a679bc
Created May 6, 2014 01:05
Constructor_lib.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Constructor_lib {
function __construct() {
$this->CI =& get_instance();
}
function create_controller_files($tables = NULL, $create = FALSE) {
if(!$tables) $tables = $this->CI->db->list_tables();
@dbpolito
dbpolito / Localhost.md
Created April 12, 2012 01:51
Configurating an eXtheme LAMP localhost on Ubuntu

Configurating Localhost

Install Apache, MySQL and PHPMyAdmin

sudo apt-get install apache2 mysql-server-5.5 php5 php5-mysql php5-curl php-pear phpmyadmin
sudo cp -Rf /usr/share/phpmyadmin/ /var/www
sudo chown -R www-data. /var/www

Install PHPUnit

sudo apt-get install curl php5-xdebug phpunit