Skip to content

Instantly share code, notes, and snippets.

View th3coop's full-sized avatar

Carey Hoffman th3coop

  • ActiveState
  • Vancouver BC
View GitHub Profile
@th3coop
th3coop / git-php-webhook.php
Created May 30, 2021 19:10 — forked from marcelosomers/git-php-webhook.php
A basic webhook for deploying updates to repos on Github to your local server
<?php
/**
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below).
*
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/
*
* INSTRUCTIONS:
* 1. Edit the variables below
* 2. Upload this script to your server somewhere it can be publicly accessed
@th3coop
th3coop / RunTestsCommand.php
Last active January 31, 2023 05:19
Install fresh Laravel instance into randomly generated DB for CI envs
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Artisan;
class RunTestsCommand extends Command