This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install Command line tools (requires Xcode from app store) | |
xcode-select --install | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
mkdir ~/bin | |
mkdir ~/.composer | |
mkdir -p ~/.vim/swaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$translation_groups = array( | |
'default' => array('ca'), | |
'field' => array('ca'), | |
'inline_entity_form' => array('ca'), | |
'panels' => array('ca'), | |
'node' => array('ca'), | |
); | |
foreach ($translation_groups as $group => $languages) { | |
foreach ($languages as $language) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Helper function to set permissions for node types. | |
*/ | |
function pineda_set_permissions($role, $permissions, $module = 'node') { | |
$rid = array_search($role, user_roles()); | |
foreach ($permissions as $name) { | |
db_merge('role_permission') | |
->key(array( | |
'rid' => $rid, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make Tab autocomplete regardless of filename case | |
set completion-ignore-case on | |
# List all matches in case multiple possible completions are possible | |
set show-all-if-ambiguous on | |
# Immediately add a trailing slash when autocompleting symlinks to directories | |
set mark-symlinked-directories on | |
# Use the text that has already been typed as the prefix for searching through |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install Command line tools (requires Xcode from app store) | |
xcode-select --install | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
mkdir ~/bin | |
mkdir ~/.composer | |
mkdir -p ~/.vim/swaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For advice on how to change settings please see | |
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html | |
[mysqld] | |
#sql_mode=NO_ENGINE_SUBSTITUTION | |
sql_mode= '' | |
# The directory where error messages are located. The value is used | |
# together with the value of lc_messages to produce the location for the | |
# error message file. | |
# lc-messages-dir = /usr/share/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Load a drushrc.php file from the 'drush' folder at the root | |
// of the current git repository. | |
exec('git rev-parse --git-dir 2> /dev/null', $output); | |
if (!empty($output)) { | |
$repo = $output[0]; | |
$options['config'] = $repo . '/../drush/drushrc.php'; | |
$options['include'] = $repo . '/../drush/commands'; | |
$options['alias-path'] = $repo . '/../drush/aliases'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For advice on how to change settings please see | |
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html | |
[mysqld] | |
#sql_mode=NO_ENGINE_SUBSTITUTION | |
sql_mode= '' | |
# The directory where error messages are located. The value is used | |
# together with the value of lc_messages to produce the location for the | |
# error message file. | |
# lc-messages-dir = /usr/share/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/axe312ger/block_attributes" | |
}, | |
{ | |
"type": "composer", | |
"url": "https://packagist.drupal-composer.org" | |
}, | |
{ |
OlderNewer