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
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
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 | |
add_filter( 'option_active_plugins', 'disable_plugins' ); | |
function disable_plugins($plugins){ | |
$key = array_search( 'wordpress-seo/wp-seo.php' , $plugins ); //Plugin path within /wp-content/plugins/ | |
if ( false !== $key ) unset( $plugins[$key] ); | |
return $plugins; | |
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
// constructor | |
var Player = function(source){ | |
// cache vars | |
this.sound = new buzz.sound(source.split('.')[0], { formats: ['ogg', 'mp3'], volume: 100 }); | |
this.$playBtn = $('.ui-page-active .jp-play'); | |
this.$pauseBtn = $('.ui-page-active .jp-pause'); | |
this.$rewindBtn = $('.ui-page-active .rewind'); | |
this.$duration = $('.ui-page-active .jp-duration'); | |
this.$seekBar = $('.ui-page-active .jp-seek-bar'); |
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 facebook_sdk_init() { | |
wp_enqueue_script('jquery'); | |
// instruction to only load if it is not the admin area | |
if ( !is_admin() ) { | |
// register and load the facebook sdk | |
wp_register_script( 'facebook-sdk', | |
'http://connect.facebook.net/en_US/all.js', | |
array(), '', TRUE); |
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 | |
// Change the footer text in Genesis with a back up if blank | |
add_filter('genesis_footer_creds_text', 'genesischild_footer_text'); | |
function genesischild_footer_text() { | |
if( get_theme_mod( 'footer_text_block') != "" ) { | |
echo get_theme_mod( 'footer_text_block'); | |
} | |
else{ |
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
function custom_get_excerpt($post_id) { | |
$temp = $post; | |
$post = get_post( $post_id ); | |
setup_postdata( $post ); | |
$excerpt = esc_attr(strip_tags(get_the_excerpt())); | |
wp_reset_postdata(); | |
$post = $temp; |
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
/*woocommerce pagination*/ | |
.woocommerce nav.woocommerce-pagination{} | |
.woocommerce nav.woocommerce-pagination ul.page-numbers{} | |
.woocommerce nav.woocommerce-pagination ul li{} | |
.woocommerce nav.woocommerce-pagination ul li a{} | |
.woocommerce nav.woocommerce-pagination ul li span.current, | |
.woocommerce nav.woocommerce-pagination ul li a:hover{} | |
.woocommerce nav.woocommerce-pagination ul li a.prev, | |
.woocommerce nav.woocommerce-pagination ul li a.next{} |
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
/** | |
* My Account | |
*/ | |
.woocommerce-account .woocommerce-MyAccount-navigation { | |
width: 20%; | |
} | |
.woocommerce-account .woocommerce-MyAccount-content { | |
display: inline-block; |
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
/** | |
* Divi theme breakpoints - thanks to https://divibooster.com/css-media-queries-for-the-divi-theme/ | |
*/ | |
/* Large screens (1405px upwards) */ | |
@media only screen and ( min-width: 1405px ) { | |
/* your css goes here */ | |
} | |
/* Laptops and desktops (1100-1405px) */ |
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
#!/bin/bash | |
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
for JAIL in $JAILS | |
do | |
fail2ban-client status $JAIL | |
done |
NewerOlder