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
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
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
$('.skin-noisy dl.slidedeck').slidedeck({ | |
transition: 'linear', | |
speed: 250, | |
complete: function(deck){ | |
// Alert the current slide number after animating | |
alert(deck.current); | |
} | |
}); |
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 | |
alias ll="ls -lah" | |
alias svnup="svn up --ignore-externals" | |
alias svnst="svn st --ignore-externals" | |
alias vhosts="subl /etc/apache2/extra/httpd-vhosts.conf ; subl /etc/hosts" | |
export PATH="/usr/local/mysql/bin:$PATH" | |
export PATH=/usr/local/bin:$PATH | |
export SVN_EDITOR="subl -w" |
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
# Example Usage | |
[ | |
{ "keys": ["ctrl+w"], | |
"command": "run_multiple_commands", | |
"args": { | |
"commands": [ | |
{"command": "find_under_expand", "context": "window"}, | |
{"command": "slurp_find_string", "context": "window"}, | |
{"command": "show_panel", "args": {"panel": "find"}, "context": "window"} | |
]}} |
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
svn log --quiet | awk '/^r/ {print $3}' | sort | uniq |
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
/* More specific selector starting with body */ | |
body .lens-tool-kit.sd2-title-dark .sd-node-title-box, | |
body .lens-tool-kit.sd2-title-light .sd-node-title-box { | |
background: rgb(122,122,122); /* Fallback for IE's lack of rgba() */ | |
background: rgba(122,122,122,0.2); /* Color you actually want (with opacity) */ | |
} |
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
add_action( 'init', 'remove_slidedeck_javascript_constants' ); | |
function remove_slidedeck_javascript_constants() { | |
global $SlideDeckPlugin; | |
remove_action( 'admin_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'slidedeck_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'wp_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'wp_print_scripts', array( $SlideDeckPlugin, 'print_header_javascript_constants' ) ); | |
} |
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
body .lens-tool-kit.sd2-light .slide-source-custom.slide-type-image .sd2-node-caption { | |
background: gray; | |
} |
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
/path/to/vhosts/domain.com/logs/*.log { | |
daily | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 0640 www-data adm | |
sharedscripts | |
prerotate |