Skip to content

Instantly share code, notes, and snippets.

View tsmith512's full-sized avatar

Taylor Smith tsmith512

  • Cloudflare
  • Austin, Texas & Tulsa, Oklahoma
View GitHub Profile

Because sometimes, you need to say it with a gif.

Yuuup

No words

Facepalm

Shotgun

@tsmith512
tsmith512 / resources.md
Last active August 29, 2015 14:00
Reading and Resources
@tsmith512
tsmith512 / backtrace-errors-bootstrap.inc.patch
Created April 30, 2013 16:19
Quick-n-dirty patch to Drupal 7 bootstrap to examine backtraces on error messages. Requires devel enabled.
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index fe3d7a7..c2c95cc 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1794,6 +1794,11 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO
*/
function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) {
if ($message) {
+
+ if ($type == 'error') {
@tsmith512
tsmith512 / functions-tsmith.php
Created December 24, 2012 23:23
Utility WordPress functions for cleaner output and theme code
<?php
/**
* tsmith512's Common WordPress Functions
*
* Handy WordPress functions for cleaner theme code and WordPress output. This
* is not (yet) a plugin because it is so closely tied to the theme code. Include
* it directly in a theme's functions.php file.
*
* @package tsmith512-wordpress
* @author Taylor Smith (www.tsmithcreative.com)
@tsmith512
tsmith512 / macadventures.md
Created November 30, 2012 04:33
My iJourney

An Introduction

Through both a yearning for familiarity and the knowledge that corporate computer defenestration is a terminal act, I have arduously forged this list of tips, less useful for those on a quest to be an ultimate iUser than for those who want to retain a glimpse, however fleeting, of the Windows/Linux they used to know.

-- [tsmith512][]