Skip to content

Instantly share code, notes, and snippets.

View taivu's full-sized avatar

Tai taivu

View GitHub Profile
<?php
// D8 themes, should go in MYDOPEASSTHEME.theme
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function MYDOPEASSTHEME_theme_suggestions_page_alter(array &$suggestions, array $vars) {
$node = \Drupal::routeMatch()->getParameter('node');
if (!empty($node)) {
@taivu
taivu / brew-instructions.sh
Created February 27, 2017 14:30 — forked from petemcw/brew-instructions.sh
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.dev domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache
@taivu
taivu / dnsmasq OS X.md
Created February 27, 2017 14:29 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install

@taivu
taivu / .bash_profile
Created February 26, 2017 06:49 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management