Skip to content

Instantly share code, notes, and snippets.

View lazyguru's full-sized avatar

Joe Constant lazyguru

View GitHub Profile
@lazyguru
lazyguru / phpunit
Created December 24, 2016 04:36
Always run the correct version of phpunit for each project. Add this to ~/bin/phpunit and ensure ~/bin is at the beginning of your PATH
#!/usr/bin/env bash
if [ -f vendor/bin/phpunit ]; then
vendor/bin/phpunit $@
exit $?
fi
if [ -f ~/.composer/vendor/bin/phpunit ]; then
~/.composer/vendor/bin/phpunit $@
exit $?
fi
@lazyguru
lazyguru / Magento2ValetDriver.php
Last active March 1, 2017 19:01
Borrowed from https://github.com/laravel/valet/pull/47 with fixes so that it runs from Magento root instead of pub directory. Put this in ~/.valet/Drivers/Magento2ValetDriver.php
<?php
class Magento2ValetDriver extends ValetDriver
{
/**
* Holds the MAGE_MODE from app/etc/config.php or $ENV
*
* @var string
*/
@lazyguru
lazyguru / keybase.md
Created October 24, 2014 22:56
Keybase verification of github account

Keybase proof

I hereby claim:

  • I am lazyguru on github.
  • I am lazyguru (https://keybase.io/lazyguru) on keybase.
  • I have a public key whose fingerprint is 43D6 AE23 D9DE E2FF CDE0 76EA 417A 0536 F46B 1497

To claim this, I am signing this object:

@lazyguru
lazyguru / vim.rb
Last active August 29, 2015 14:06 — forked from mgrouchy/vim.rb
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '6c318419e331'
version '7.3.515'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end