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
[color] | |
ui = on | |
[core] | |
whitespace= fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[alias] | |
df = !git diff --no-prefix && git diff --staged --no-prefix | |
clear = reset --hard | |
st = status | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
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
"general vim rc settings | |
set term=xterm-color | |
set smartcase " match 'word' case-insensitive and 'Word' case-sensitive | |
set showmatch " shows matching parenthesis, bracket, or brace | |
set showcmd " show commands while they're being typed | |
set incsearch " searches as you type | |
syntax on " syntax highlighing | |
set background=dark " adapt colors for background | |
:colorscheme desert | |
set vb t_vb= |
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
complete -o default -o nospace -W "$(/usr/bin/env ruby -ne 'puts $_.split(/[,\s]+/)[1..-1].reject{|host| host.match(/\*|\?/)} if $_.match(/^\s*Host\s+/);' < $HOME/.ssh/config)" scp sftp ssh | |
export PATH=$PATH:/Applications/MAMP/Library/bin | |
export PATH=$PATH:/Applications/sshfs/bin | |
export PATH=$PATH:/home/josh/bin | |
export CLICOLOR=cons25 | |
## | |
# Your previous /Users/joshbeauregard/.profile file was backed up as /Users/joshbeauregard/.profile.macports-saved_2011-01-26_at_16:11:54 | |
## |
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
alias.df !git diff --no-prefix && git diff --staged --no-prefix | |
alias.clear reset --hard | |
alias.st status | |
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.co checkout | |
alias.con checkout -b | |
alias.ci commit | |
alias.br branch | |
alias.ls branch -a |
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
//if (module_exists("stage_file_proxy")) $conf['stage_file_proxy_origin'] = "http://www.url.com"; | |
// Disable (page) caching | |
$conf['cache'] = 0; | |
// Output errors to screen (and log) | |
$conf['error_level'] = 1; | |
// Disable aggregation of js and css | |
$conf['preprocess_js'] = FALSE; |
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 | |
function theme_menu_link($variables) { | |
$element = $variables['element']; | |
//changes | |
$element['#attributes']['id'] = 'mlink-' . $element['#original_link']['mlid']; | |
// standard output; | |
$sub_menu = ''; | |
if ($element['#below']) { | |
$sub_menu = drupal_render($element['#below']); |
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 | |
/** | |
* returns a array for use with #options in a form field | |
* */ | |
function taxonomy_options_array($machine_name, $all = NULL) { | |
$v = taxonomy_vocabulary_machine_name_load($machine_name); | |
if (!empty($all)) { | |
$options[$all[0]] = $all[1]; | |
} |
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 | |
/** | |
* Implements hook_feeds_processor_targets_alter(). | |
* | |
* @see FeedsNodeProcessor::getMappingTargets(). | |
*/ | |
function foo_contact_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) { | |
foreach (field_info_instances($entity_type, $bundle_name) as $name => $instance) { | |
$info = field_info_field($name); | |
if (in_array($info['type'], array('foo_fields_contact'))) { |
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 | |
function search_tc_menu_alter(&$items) { | |
$items['search']['title callback'] = 'search_tc_title'; | |
} | |
function search_tc_title($title) { | |
global $pager_total_items; | |
if ($pager_total_items[0] > 0) { | |
return t('!count search results for “!term”', array('!count' => $pager_total_items[0], '!term' => SEARCH_TERM)); |
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 | |
$tidyConfig = array( | |
'merge-divs' => FALSE, | |
'merge-spans' => FALSE, | |
'join-styles' => FALSE, | |
'drop-empty-paras' => TRUE, | |
'wrap' => 0, | |
'tidy-mark' => FALSE, | |
'escape-cdata' => TRUE, | |
'word-2000' => TRUE, |
OlderNewer