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
# | |
# Useful symlinks for admin shortcuts | |
- name: Nginx config symlinks | |
file: | |
src: /etc/nginx/conf.d/{{ item.site.url }}.conf | |
dest: /sites/{{ account_id }}/{{ item.site.url }}/nginx.conf | |
state: link | |
with_items: wp | |
when: wp is defined |
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 | |
remove_action( 'lblg_after_itemtext', 'lblg_post_info' ); |
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 | |
/** | |
* This function rearranges BuddyPress navigation elements. | |
*/ | |
function npat_alter_group_options(){ | |
global $bp; | |
if(NPAT_DEBUG) echo '<pre>'; | |
$slug = $bp->groups->current_group->slug; | |
$nav_array = $bp->bp_options_nav; |
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 lbc_hook_check(){ | |
global $wp_filter; | |
$tmp_filters = $wp_filter; | |
foreach( $tmp_filters as $key => $values ) { | |
if( preg_match( '/^lblg/', $key ) ) { | |
add_action($key, 'lbc_hook_echo'); |
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
/* | |
New and improved solution, available in a master LESS file for use anywhere. | |
*/ | |
.setwidth(@width, @defaultw) when (isnumber(@width)){ | |
width: @width; | |
} | |
.setwidth(@width, @defaultw) when not(isnumber(@width)){ | |
width: @defaultw; | |
} |
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
Started GET "/users/sign_in" for 72.92.42.152 at 2015-03-25 05:20:40 +0000 | |
Processing by SessionsController#new as HTML | |
Completed 500 Internal Server Error in 93ms | |
NoMethodError (undefined method `push_events=' for #<GitlabIssueTrackerService:0x0000000490b358>): | |
app/models/project.rb:329:in `default_issue_tracker' | |
app/controllers/application_controller.rb:190:in `add_gon_variables' |
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 -W "$(echo $(grep '^ssh ' .bash_history | sort -u | sed 's/^ssh //'))" ssh |
OlderNewer