Skip to content

Instantly share code, notes, and snippets.

@jadulled
jadulled / ALTERNATIVES.adoc
Created May 21, 2016 16:04 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@jadulled
jadulled / ImageOptimize
Last active August 29, 2015 14:27 — forked from Spir/ImageOptimize
Simple command for Laravel 4 to optimize your images using jpegoptim and optipng. Fill in the $imagesFolders array and run. http://freecode.com/projects/jpegoptim http://optipng.sourceforge.net/
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ImageOptimize extends Command {
/**
* The console command name.
<?php
//file: /.env.local.php
// return the configuration for the 'local' environment
return array(
'db_host' => '127.0.0.1',
'db_name' => 'DB_NAME', // specify database name
'db_user' => 'DB_USER', // specify database username
'db_pass' => 'DB_PASS', // specify database password
);
@jadulled
jadulled / Kernel.php
Last active August 29, 2015 14:23 — forked from petehouston/Kernel.php
class Kernel extends HttpKernel {
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
'Illuminate\Cookie\Middleware\EncryptCookies',
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier {
/**
* Exclude route from CSRF check
* @var array
@jadulled
jadulled / mail.php
Last active August 29, 2015 14:23 — forked from petehouston/mail.php
/**
* The mailer contract
*
* @var Illuminate\Contracts\Mail\Mailer
*/
protected $mail;
public function sendUserRegistered($user)
{
$view = 'user_registered';
@jadulled
jadulled / mail.php
Last active August 29, 2015 14:23 — forked from petehouston/mail.php
public function sendUserRegistered($user)
{
$view = 'user_registered';
$data = [
'email' => $user->email,
'name' => $user->name,
'token' => $user->verification->token
];
{{-- file: /app/views/layouts/master.blade.php --}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{{-- Part: all meta-related contents --}}
@yield('head-meta')
{{-- Part: site title with default value in parent --}}
@section('head-title')
License Key PhpStorm 8
User Name : EMBRACE
===== LICENSE BEGIN =====
43136-12042010
00002UsvSON704l"dILe1PVx3y4"B3
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh
gd1BebYc5U"6OxDbVsALB4Eb10PW8"
===== LICENSE END =====
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()