This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
#### | |
## Blackfire config - `lando rebuild` required | |
#### | |
BLACKFIRE_CLIENT_ID=b5ee8ca3-****-****-****-5d227546a4c0 | |
BLACKFIRE_CLIENT_TOKEN=3a2b88cbfb*******************************22763 | |
BLACKFIRE_SERVER_ID=4b8ac335-****-****-****-b34439207732 | |
BLACKFIRE_SERVER_TOKEN=98f7fdf4b12b7**************************12b837cf080d |
<?php | |
/** | |
* Fix a race condition in alloptions caching | |
* | |
* See https://core.trac.wordpress.org/ticket/31245 | |
*/ | |
function _wpcom_vip_maybe_clear_alloptions_cache( $option ) { | |
if ( ! wp_installing() ) { | |
$alloptions = wp_load_alloptions(); //alloptions should be cached at this point |
<?php | |
/* | |
Plugin Name: A faster load_textdomain | |
Version: 0.0.1 | |
Description: While we're wating for https://core.trac.wordpress.org/ticket/32052. | |
Author: Per Soderlind | |
Author URI: https://soderlind.no | |
Plugin URI: https://gist.github.com/soderlind/610a9b24dbf95a678c3e | |
License: GPL |
<?php | |
// Jetpack infinite scroll does it's own WP_Query, so we need to hijack it at runtime | |
function searchwp_infinite_scroll_query_args( $query_args ) { | |
if( class_exists( 'SearchWPSearch' ) ) { | |
$query = get_search_query(); | |
if( empty( $query ) ) { | |
if( isset( $_GET['query_args']['s'] ) ) { | |
$query = sanitize_text_field( $_GET['query_args']['s'] ); | |
} |
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |