Skip to content

Instantly share code, notes, and snippets.

View Medalink's full-sized avatar

Eric Percifield Medalink

View GitHub Profile
@Medalink
Medalink / brightoak.yml
Created March 26, 2020 19:34 — forked from rorymcdaniel/brightoak.yml
Starter Github workflow file for Laravel projects
name: CI
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
name: Tests
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
@Medalink
Medalink / 0_reuse_code.js
Created October 24, 2013 19:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()
SELECT customer_id, customer_email, customer_firstname, customer_lastname, group_concat(si.sku SEPARATOR ',') as skus, SUM(subtotal_invoiced) AS cv
FROM sales_flat_order as so
INNER JOIN sales_flat_order_item AS si ON si.order_id = so.entity_id
GROUP BY customer_email
ORDER BY SUM(subtotal_invoiced) DESC
@Medalink
Medalink / dabblet.css
Created July 3, 2012 19:23 — forked from alexmwalker/dabblet.css
CSS3 Animated Flames *
/**
* CSS3 Animated Flames *
Improved version using the 'steps' attribute to control the sprite switching
*/
body {background-color:#000}
#logfire {
position:relative;
background:url(http://sitepointstatic.com/examples/css3/animation/logfire.jpg?r=2) center top no-repeat;
<?php
class Crud_Base_Controller extends Base_Controller {
// Yes, i want restfull, god yesssss
public $restful = true;
public function __construct()
{
// This is required in order to bring in functionality from laravel.
<?php
/*
Plugin Name: Theme Updater
Plugin URI: https://github.com/UCF/Theme-Updater
Description: A theme updater for GitHub hosted Wordpress themes. This Wordpress plugin automatically checks GitHub for theme updates and enables automatic install. For more information read <a href="https://github.com/UCF/Theme-Updater/blob/master/readme.markdown">plugin documentation</a>.
Author: Douglas Beck
Author: UCF Web Communications
Version: 1.3.4
*/