This file contains hidden or 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
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Autocompletion for git. | |
# http://code-worrier.com/blog/autocomplete-git/ | |
# Download doing curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi |
This file contains hidden or 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
; you should include this on xdebug.ini | |
; got it from http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/ | |
xdebug.remote_enable = on | |
xdebug.remote_connect_back = on | |
xdebug.idekey = "PHPSTORM" | |
xdebug.max_nesting_level = 10000 | |
; only if you want xdebug to trigger ALWAYS | |
xdebug.remote_autostart = on |
This file contains hidden or 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
# Got it from http://www.electricmonk.nl/log/2014/03/31/test-a-pull-merge-request-before-accepting-on-bitbucket/ | |
git fetch https://bitbucket.org/user/repo branch | |
git checkout FETCH_HEAD |
This file contains hidden or 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
{ | |
"name": "asgard", | |
"url": "job/asgard/", | |
"build": { | |
"full_url": "http://localhost:8080/job/asgard/18/", | |
"number": 18, | |
"phase": "COMPLETED", | |
"status": "SUCCESS", | |
"url": "job/asgard/18/", | |
"scm": { |
This file contains hidden or 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
drush vset theme_debug 1 |
This file contains hidden or 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
// Makes iframes inside of a node body responsive. | |
Drupal.behaviors.responsive_iframes = { | |
attach: function (context) { | |
$(document).ready(function() { | |
// Iframe needs to have the class .responsive. | |
$('.field-name-body iframe').each(function(index, value) { | |
// Height and width both need int values. | |
var height = parseInt($(this).attr('height')) || null; | |
var width = parseInt($(this).attr('width')) || null; | |
if ((height !== null) && (width !== null)) { |
This file contains hidden or 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 | |
/** | |
* Implements hook_views_pre_build () | |
*/ | |
function MODULENAME_views_pre_build(&$view) { | |
if($view->name == "VIEWNAME") { | |
$view->items_per_page = 15; | |
} |
This file contains hidden or 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
function sega_hero_update_7001() { | |
// Load all 'Mobile' menu items in the different languages. | |
$parent_menu_items = db_select('menu_links', 'l') | |
->fields('l') | |
->condition('link_title', 'Mobile') | |
->condition('menu_name', 'main-menu') | |
->execute() | |
-> fetchAllAssoc('language'); | |
// Children menu items we're going to create. |
This file contains hidden or 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
.flex-control-nav a | |
{ | |
visibility: hidden; | |
} | |
.flex-control-nav a:before { | |
visibility: visible; | |
font-family: FontAwesome; | |
font-size: 30px; | |
display: inline-block; | |
content: '\f137'; |
This file contains hidden or 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
a:before { | |
font-family: FontAwesome; | |
content: "\f095"; | |
display: inline-block; | |
padding-right: 3px; | |
vertical-align: middle; | |
} |
OlderNewer