Skip to content

Instantly share code, notes, and snippets.

Chase Livingston chaselivingston

View GitHub Profile
View gist:4a056f542a7b4eaf3bb957272e1ac727
[25-Oct-2017 19:20:37 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/chaseliv/public_html/wp-includes/functions.php on line 4838
[25-Oct-2017 19:20:37 UTC] PHP Stack trace:
[25-Oct-2017 19:20:37 UTC] PHP 1. {main}() /home/chaseliv/public_html/wp-admin/plugins.php:0
[25-Oct-2017 19:20:37 UTC] PHP 2. require_once() /home/chaseliv/public_html/wp-admin/plugins.php:10
[25-Oct-2017 19:20:37 UTC] PHP 3. do_action() /home/chaseliv/public_html/wp-admin/admin.php:330
[25-Oct-2017 19:20:37 UTC] PHP 4. WP_Hook->do_action() /home/chaseliv/public_html/wp-includes/plugin.php:453
[25-Oct-2017 19:20:37 UTC] PHP 5. WP_Hook->apply_filters() /home/chaseliv/public_html/wp-includes/class-wp-hook.php:310
[25-Oct-2017 19:20:37 UTC] PHP 6. wp_update_plugins() /home/chaseliv/public_html/wp-includes/class-wp-hook.php:286
[25-Oct-2017 19:20:37 UTC] PHP 7. set_site_transient() /home/chaseliv/public_html/wp-includes/update.php:383
[25-Oct-2017 19:20:37 UTC] PHP 8. apply_filters() /ho
View gist:e69e7cbe3cb3ae04fffb5d04b10f90db
Currently we are examining the uploads at /backup-guard/sg_backup_opt(full)_20170305001007
---> Retrying. Attempt 2 for /backup-guard/sg_backup_opt(full)_20170305001007/sg_backup_opt(full)_20170305001007.sgbp
---> Retrying. Attempt 3 for /backup-guard/sg_backup_opt(full)_20170305001007/sg_backup_opt(full)_20170305001007.sgbp
Failed :(
Currently we are examining the uploads at /backup-guard/sg_backup_opt(full)_20170312000232
---> Retrying. Attempt 2 for /backup-guard/sg_backup_opt(full)_20170312000232/sg_backup_opt(full)_20170312000232.sgbp
---> Retrying. Attempt 3 for /backup-guard/sg_backup_opt(full)_20170312000232/sg_backup_opt(full)_20170312000232.sgbp
Failed :(
Currently we are examining the uploads at /backup-guard/sg_backup_opt(full)_20170506222534
---> Retrying. Attempt 2 for /backup-guard/sg_backup_opt(full)_20170506222534/sg_backup_opt(full)_20170506222534.sgbp
View gist:ceae38a104ce9ab301723db8606149ba
HTTP/1.1 403 Forbidden
Date: Tue, 13 Jun 2017 17:35:22 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=db119a0f2a4590971f8ff9ead3e3e49d61497375322; expires=Wed, 13-Jun-18 17:35:22 GMT; path=/; domain=.vladislay.altervista.org; HttpOnly
Server: cloudflare-nginx
CF-RAY: 36e6ce557b9138a6-ATL
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
View gist:7c402d3b389eb91104546ccd43b430f2
curl -A "Jetpack by WordPress.com" -is -H 'Content-Type: text/xml' --data '<?xml version="1.0"?><methodCall><methodName>demo.sayHello</methodName><params></params></methodCall>' 'http://geninvest.com.au/' && echo
View gist:5626d3d1e363d28fc04c067685929f74
if ( is_singular( 'tribe_events' ) ) {
function jetpackme_remove_rp() {
if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
$jprp = Jetpack_RelatedPosts::init();
$callback = array( $jprp, 'filter_add_target_to_dom' );
remove_filter( 'the_content', $callback, 40 );
}
}
add_filter( 'wp', 'jetpackme_remove_rp', 20 );
}
View gist:ad83a459b1432ddc9e4af8ba19a28ccf
function no_photon_by_page() {
if ( is_page( 2372 ) ) {
add_filter( 'jetpack_photon_skip_image', '__return_true');
}
}
add_action('wp', 'no_photon_by_page');
View gist:75e5c917eed30463412a8ee61e33fe52
<meta property="og:description" content="[ad_1] More viewers tuned in to the much-awaited reunion of Bianca (Kim Chiu) and Gabriel (Gerald Anderson) in the Kap
View gist:02ce698d075adeaee26f3ef64689f36a
function jeherve_publicize_hashtags() {
$post = get_post();
if ( ! empty( $post ) ) {
// Create our custom message
$custom_message = '&nbsp;';
update_post_meta( $post->ID, '_wpas_mess', $custom_message );
}
}
View gist:cbf2fcf9ef6359fd67f8ae3ba66e4b6e
[response_body] => <br />
<b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b><br />
You can’t perform that action at this time.