I hereby claim:
- I am MikeNGarrett on github.
- I am mikengarrett (https://keybase.io/mikengarrett) on keybase.
- I have a public key whose fingerprint is EC65 0153 F732 6C65 E9AD 7362 A8AC 3E70 563A 657D
To claim this, I am signing this object:
//Find your IP vis curl | |
curl ipecho.net/plain |
# Working with data like this: | |
# HTTP request sent, awaiting response... .--2014-05-06 16:41:58-- http://xxx.com/xxx.jpg | |
# Resolving xxx.com... 1.1.1.1 | |
# Connecting to xxx.com|1.1.1.1|:80... ...............connected. | |
# HTTP request sent, awaiting response... .. .......... .... ....... .......--2014-05-06 16:41:58-- http://xxx.com/xxx.jpg | |
# Resolving xxx.com... .... .1.1.1.1 | |
# Connecting to xxx.com|1.1.1.1|:80... .........404 Not Found | |
# 2014-05-06 16:41:58 ERROR 404: Not Found. | |
# | |
# .....200 OK |
<?php | |
file_put_contents(__DIR__.'/stack.log', print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT), true)); | |
?> |
var out = ''; jQuery('.rating').each(function(a){ out += "<b data-rating="+jQuery(this).text().trim().replace('%', '')+">"+jQuery(this).text().trim().replace('%', '')+","+jQuery(this).children().attr('href')+"</b><br>" }); jQuery('body').html(out); |
I hereby claim:
To claim this, I am signing this object:
add_action( 'shutdown', function() { global $_wp_additional_image_sizes; var_dump($_wp_additional_image_sizes); die; }); |
# CSV format: username, email, password | |
export IFS=","; cat /path/to/test.csv | while read a b c; do wp user create $a $b --user_pass=$c --role=administrator; done |
$new_text = preg_replace('/[^(\x20-\x7F)]*/','', $text); |
grep "HTTP/1.1\" 404" access.log | awk '{print $7 } ' | sort | uniq -c | sort -n |
<?php | |
function is_user_logged_in() { | |
$loggedin = false; | |
foreach ( (array) $_COOKIE as $cookie => $value ) { | |
if ( stristr($cookie, 'wordpress_logged_in_') ) | |
$loggedin = true; | |
} | |
return $loggedin; | |
} | |
if ( ! stristr($_SERVER['REQUEST_URI'], '/wp-admin') && ! stristr($_SERVER['REQUEST_URI'], '/wp-login.php') && ! is_user_logged_in() ) |