Skip to content

Instantly share code, notes, and snippets.

View ThatGuyCND's full-sized avatar
🥵
to exist, one must work. to work, one must have purpose. existence is pain.

Erik Baldwin ThatGuyCND

🥵
to exist, one must work. to work, one must have purpose. existence is pain.
View GitHub Profile
@mpezzi
mpezzi / variable-check.php
Created September 6, 2013 18:40
Find corrupt values in variable table
<?php
$result = db_select('variable', 'v')
->fields('v', array('name', 'value'))
->orderBy('name', 'ASC')
->execute()
->fetchAll();
$rows = array();
foreach ($result as $row) {
@mparker17
mparker17 / Whose Hook is it Anyway.md
Last active December 19, 2015 17:19
2013-07-13 DrupalCampTO Presentation - Whose Hook is it Anyway?

Whose Hook is it Anyway?

A comedic look into Drupal 8

Presented at DrupalCamp Toronto 2013 (2013-07-13). By @mparker17 and @emarchak

Dependency injection in D8

What is dependency injection?

<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@bclinkinbeard
bclinkinbeard / release.sh
Created November 1, 2011 20:22
Bash script to automate the Git Flow tag/release process
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop
alias.df !git diff --no-prefix && git diff --staged --no-prefix
alias.clear reset --hard
alias.st status
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
alias.co checkout
alias.con checkout -b
alias.ci commit
alias.br branch
alias.ls branch -a