Skip to content

Instantly share code, notes, and snippets.

View leothelocust's full-sized avatar

Levi Olson leothelocust

View GitHub Profile
@leothelocust
leothelocust / Makefile
Created January 20, 2021 19:18
An example Makefile with dynamic "help" command
COMMAND_COLOR = \033[36m
DESC_COLOR = \033[32m
CLEAR_COLOR = \033[0m
.PHONY: help
help: ## prints this message ## (and puts this on line 2)
@echo ""; \
echo "Usage: make <command>"; \
echo ""; \
echo "where <command> is one of the following:"; \
@bruceoutdoors
bruceoutdoors / DbmigrateController.php
Last active June 2, 2019 12:30
Laravel 4 Convert existing MySQL database to migrations. This is a fork of Christopher Pitt's work http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations, which is based off michaeljcalkins's work at http://paste.laravel.com/1jdw#sthash.0nEgQzQR.dpuf. His original source code doesn't really work out of the box in my…
<?php
/* * **
*
* This script converts an existing MySQL database to migrations in Laravel 4.
*
* 1. Place this file inside app/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table