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 |
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
/* | |
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
<?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
<?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 | |
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
# | |
# 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 | |
// Set up arrays to hold the post objects | |
$rotator_items = $testimonial_items = array(); | |
// Loop through rotator items | |
$rotator_args = array( 'post_type' => 'rotator' ); | |
$rotator = new WP_Query( $rotator_args ); | |
$c1 = 0; |
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
# I want to have a walker set up various symlinks per virtualhost. | |
# I want to support: | |
sites: | |
site: | |
url: url.com | |
site: | |
url: url2.com | |
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
# Hopefully someone else will find these snippets useful. I've found them VERY | |
# helpful in defining local users that hew to the generally-accepted RedHat-ism | |
# of [local username] having an equivalent [local user primary group] with uid = gid. | |
# Improvements welcomed. | |
# | |
# ROCKS Cluster users generally need access to scratch directories on local storage, | |
# hence their more expansive definitions. | |
# | |
# This file should probably go in your [Puppet config dir]/manifests/definitions/ | |
# |
NewerOlder