Skip to content

Instantly share code, notes, and snippets.

View mikeerickson's full-sized avatar

Mike Erickson mikeerickson

View GitHub Profile
@mikeerickson
mikeerickson / gulpfile.js
Created February 22, 2014 22:53
Gulp PHPSpec automated testing ....
/* Gulpfile
* Mike Erickson
*/
var gulp = require('gulp'),
notify = require('gulp-notify'),
phpspec = require('gulp-phpspec');
gulp.task('phpspec', function() {
var options = {debug: true};
@mikeerickson
mikeerickson / gulp-shell-gulpfile.js
Created March 3, 2014 00:29
gulp-shell gulpfile.js
/* Gulpfile
* Mike Erickson
*/
'use strict';
var gulp = require('gulp'),
notify = require('gulp-notify'),
shell = require('gulp-shell');
# Saved in following directory
# /etc/apache2/sites-available/smith-guide.conf
# then a2enable to /sites-enabled
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName vaprobash.dev
ServerAlias library.*.xip.io
DocumentRoot /var/www/public
@mikeerickson
mikeerickson / 192.168.33.10.xip.io.conf
Created April 4, 2014 18:46
192.168.33.10.xip.io.conf
!34
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 192.168.33.10.xip.io
DocumentRoot /vagrant
# Uncomment this to proxy pass to fastcgi
# Assumes Apache 2.4 with mod_proxy_fcgi
# ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/vagrant/
@mikeerickson
mikeerickson / vagrantfile
Created April 4, 2014 18:49
Current Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "fideloper"
github_repo = "Vaprobash"
github_branch = "master"
# Server Configuration
@mikeerickson
mikeerickson / apiguy.php
Created April 4, 2014 23:17
APIGuy.php
<?php
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use \Codeception\Maybe;
use Codeception\Module\PhpBrowser;
use Codeception\Module\REST;
use Codeception\Module\ApiHelper;
@mikeerickson
mikeerickson / PostListingTest.php
Created April 4, 2014 23:17
PostListingTest.php
<?php
use \ApiGuy;
class PostListingCest
{
public function _before()
{
}
public function _after()
@mikeerickson
mikeerickson / gutp-shell-template.js
Created April 5, 2014 00:24
Gulp-Shell Template
gulp.task('test', function () {
return gulp.src('')
.pipe(shell('npm test'))
.on('error', notify.onError({
title: "Testing Failed",
message: "Error(s) occurred during testing..."
}));
});
gulp.task('watch', function () {
@mikeerickson
mikeerickson / gulp-phpspec-task
Created September 6, 2014 18:00
Gulp Task w/ Formatting
gulp.task('phpspec', function() {
var options = {debug: false, clear: true, formatter: 'pretty', notify: true};
gulp.src('phpspec.yml')
.pipe(plugins.phpspec('',options))
.on('error', plugins.notify.onError(testNotification('fail', 'phpspec')))
.pipe(plugins.notify(testNotification('pass', 'phpspec')));
});