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
/** | |
* Check an array if all key to exists and none of them has an empty value | |
* | |
* @param array $array The array. | |
* @param array $keys The searched keys. | |
* @return boolean returns true, if all keys existed in the array and none of them had empty values | |
*/ | |
function array_keys_not_empty($keys, $array){ | |
foreach($keys as $key){ |
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 | |
/** | |
* Plugin Name: Admin Dashboard Columns | |
* Description: Reactivates the option to set the number of admin dashboard columns | |
* Version: 1.0.0 | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
* License: GPLv3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.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
<?php | |
/* | |
Plugin Name: Disable Full Size Image | |
Description: This plugin removes the "Original Size" option in the drop down when inserting an image into a post | |
Version: 0.1 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.de | |
*/ | |
function disable_full_size_image( $image_size_names ) { |
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 | |
grep '#[0-9a-fA-F]\{6\}#' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep '/\*[0-9a-fA-F]\{6\}\*/' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep 'e=w\["eval"\]' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep '<!--/[0-9a-fA-F]\{6\}-->' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues | |
/usr/bin/mail -E -s 'INFECTED FILES FOUND on example.com' [email protected] # Send EMail | |
grep 'r=eval' -r -H -lc /var/www/ --include=*.{html,js,css,php,tpl,sh,py,java,class} | # Only get found issues |
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 | |
/* | |
* Plugin Name: Taxonomy Gallery Shortcode | |
* Description: Adding the shortcode "taxonomy_gallery" to list all images for a given taxonomy | |
* Version: 0.2 | |
* Author: Bernhard Kau | |
* Author URI: http://kau-boys.de | |
*/ | |
function tgs_add_tags_to_attachments() { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="Twilight_optimized" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="CONSOLE_FONT_NAME" value="Lucida Console" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="CARET_COLOR" value="a7a7a7" /> | |
<option name="CARET_ROW_COLOR" value="1b1b1b" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="141414" /> |
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 | |
/* | |
* Plugin Name: Text-Widget Highlighted | |
* Description: Extends the WordPress default text widget by adding a CSS class "widget_text_highlighted" to the container aside HTML tag | |
* Version: 0.1 | |
* Author: Bernhard Kau | |
* Author URI: http://kau-boys.de | |
*/ |
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
input[type="submit"], input[type="reset"], input[type="button"], button { | |
font-family: inherit; | |
-webkit-font-smoothing: inherit; | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/* | |
Plugin Name: Disable Translation Updates | |
Plugin URI: https://gist.github.com/2ndkauboy/1907f5847b4e092a88ac | |
Description: Disable the asynchronous and automatic background translation updates | |
Version: 1.0.0 | |
Author: Bernhard Kau | |
Author URI: http://kau-boys.de | |
License: GPL | |
*/ |