Skip to content

Instantly share code, notes, and snippets.

View ChrisChinchilla's full-sized avatar
✍️
docsdocsdocs

Chris Chinchilla ChrisChinchilla

✍️
docsdocsdocs
View GitHub Profile
@ChrisChinchilla
ChrisChinchilla / Check if a term has any children in Drupal
Created February 21, 2015 16:06
Check if a term has any children in Drupal
$argArray = arg() ;
$finalTerm = end($argArray) ;
$termArray = taxonomy_get_children($finalTerm);
if (empty($termArray)) return TRUE;
$argArray = arg() ;
$finalTerm = end($argArray) ;
$termArray = taxonomy_get_children($finalTerm);
if (!empty($termArray)) return TRUE;
@ChrisChinchilla
ChrisChinchilla / Override local Git changes
Created February 21, 2015 16:05
Override local Git changes
git fetch --all
git reset --hard origin/master
@ChrisChinchilla
ChrisChinchilla / Hide or Show Spotlight in Yosemite
Created February 21, 2015 16:03
Hide or Show Spotlight in Yosemite
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
#You can revert it with this command
sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
@ChrisChinchilla
ChrisChinchilla / gist:5b8cf016e3cfdb5616d1
Created October 14, 2014 14:01
Chris Puppet config for Drupal dev
---
vagrantfile-local:
vm:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
hostname: ''
memory: '1024'
cpus: '2'
chosen_provider: virtualbox
network: