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
grep -i "xmlrpc\.php" other_vhosts_access.log.1 | awk '{print $2 " " $8}' | sort | uniq -c | sort -n | tail > hack_attempts.txt | |
1. cd into your apache logs directory (ex- /var/log/apache2) | |
2. Run the grep command | |
This will search the file "other_vhosts_access_log.1" for the string "xmlrpc.php | |
Awk will then print out column 2 (the incoming connection) and column 8 (the file accessed) | |
Sorts by unique IPs then numbers them by attempts | |
Data is output to hack_attempts.txt for analysis | |
Example output:: |
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 this code to jumpstart your variable content block supported email template for Mailchimp --> | |
<table border="0" cellpadding="0" cellspacing="0"> | |
<tr> | |
<td> | |
<table border="0" cellpadding="0" cellspacing="0" mc:repeatable="first-repeater" mc:variant="one"> | |
<tr> | |
<td> | |
<!-- HTML code goes here --> |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
@function is-number($value) { | |
@return type-of($value) == 'number'; | |
} | |
@function is-time($value) { |
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
/** | |
* Display ACF field names for development | |
*/ | |
function action_function_name( $field ) { | |
echo $field['_name']; | |
} | |
add_action( 'acf/render_field', 'action_function_name', 10, 1 ); |
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 | |
session_start(); | |
$code = $_GET['code']; | |
$url = 'https://github.com/login/oauth/access_token'; | |
$client_id = 'xxxxxxxxxxxxxxxxxxxxxxx'; | |
$client_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
// echo $code; | |
$postdata = http_build_query( |
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 removes the ability to add the FULL image size into a post, it does not alter or delete the image | |
* Add whataever extra image sizes to the insert dropdown in WordPress you create via add_image_size | |
* | |
* For now we have to do it this way to make the labels translatable, see trac ref below. | |
* | |
* If your theme has $content_width GLOBAL make sure and remove it |
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
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |
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: YOUR PLUGIN NAME | |
*/ | |
include( dirname( __FILE__ ) . '/lib/requirements-check.php' ); | |
$your_plugin_requirements_check = new YOUR_PREFIX_Requirements_Check( array( | |
'title' => 'YOUR PLUGIN NAME', | |
'php' => '5.4', |
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_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
OlderNewer