Skip to content

Instantly share code, notes, and snippets.

Rob Decker robdecker

Block or report user

Report or block robdecker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
robdecker / settings.php
Last active Dec 27, 2015
Drupal 7: No theme css/js in .info since core's css/js aggregation sometimes breaks themes.
View settings.php
// Theme serves either minified css/js or uncompressed css/js.
$conf['theme_minified_css'] = TRUE;
$conf['theme_minified_js'] = TRUE;
if (defined('PANTHEON_ENVIRONMENT')) {
case 'dev':
robdecker / settings.php
Created Dec 4, 2013
Drupal 7: Load local settings in settings.php.
View settings.php
* Use local settings, if available.
$local_settings = dirname(__FILE__) . '/settings.local.php';
if (file_exists($local_settings)) {
include $local_settings;
robdecker / _mixins.scss
Last active Dec 30, 2015
Sass: Font Awesome :after mixin
View _mixins.scss
// Custom Font Awesome :after
@mixin font-awesome-after($fa-icon, $margin: 5px) {
&:after {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
display: inline-block;
content: $fa-icon;
text-decoration: inherit;
position: relative;

brewStack update for fresh install

Install steps:

  • Install Homebrew:

      $ ruby <(curl -fsSkL  
      $ brew install git  
      $ brew update  
      $ brew install drush
View gulpfile.js
'use strict';
// Include Gulp
var gulp = require('gulp'),
// Include Plug-ins
changed = require('gulp-changed'),
globbing = require('gulp-css-globbing'),
imagemin = require('gulp-imagemin'),
jshint = require('gulp-jshint'),

Keybase proof

I hereby claim:

  • I am robdecker on github.
  • I am robdecker ( on keybase.
  • I have a public key whose fingerprint is F497 BEBA 2C24 EC12 BD37 3D7E 9AA2 7C02 B6C0 CDD1

To claim this, I am signing this object:

robdecker / log-today.applescript
Last active Oct 26, 2016
Applescript to act as a middleman between Tyme2 and Bala's TW logger. Place into same directory as Bala's "log" script. To run: "$ osascript log-today.applescript"
View log-today.applescript
global _filename
on run
tell application "Finder"
-- Get this script's parent directory
set _path to (container of (path to me)) as text
set _filename to _path & "todays-log.csv"
-- Convert the filename to "/path/to/file" format
set _filename to POSIX path of _filename
end tell
View template.php
* Implements hook_css_alter().
function MY_THEME_css_alter(&$css) {
/* Remove some default Drupal css */
$exclude = array(
'modules/aggregator/aggregator.css' => FALSE,
'modules/block/block.css' => FALSE,
'modules/book/book.css' => FALSE,
robdecker / any.php
Created Feb 20, 2014
Drupal 7: Create custom breadcrumbs for nodes.
View any.php
* Implements hook_node_view().
function HOOK_node_view($node, $view_mode, $langcode) {
if ($node->type == 'TYPE') {
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), '<front>');
$breadcrumb[] = l(drupal_get_title(), current_path());
robdecker / clear-drupal-cache.php
Created Feb 18, 2014
Drupal 7: clear all caches from a php file.
View clear-drupal-cache.php
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/';
You can’t perform that action at this time.