List VMS at the command line
VBoxManage list vms
This should show something like:-
- "IE11 - Win8.1" {054501a7-7636-407a-b124-9b6c9724ffa4}
- "IE6 - WinXP" {f3fab135-8b15-4b6a-a446-d747854d9688}
- "<inaccessible>" {c7601a5b-eef7-4660-8fdc-a9fbc8dab9d3}
List VMS at the command line
VBoxManage list vms
This should show something like:-
<?php | |
/* | |
* This class was originally written as part of a SOAP service - just for fun | |
* | |
* used as a countdown until Christmas | |
* Returns | |
* the number of Days | |
* the number of Shopping Days | |
* the number of Weekends | |
* */ |
<?php | |
/** | |
* Smarty plugin wrapper for PHP's rand function | |
* | |
* @package Smarty | |
* @subpackage PluginsFunction | |
*/ | |
/** | |
* Smarty {app_rand} function plugin | |
* |
// -------------------------------------------------------- | |
// auto embed google map if google map link found in body | |
// Allows site content editors to simply place a standard | |
// link in their text, and this will turn it into an | |
// embedded map | |
// -------------------------------------------------------- | |
// N.B. links with a class of dont-embed means... duh. dont embed. | |
var sMapSel = 'a[href^="http://maps.google.co.uk/maps"]:not(.dont-embed)' ; |
<?php | |
/** | |
* Smarty plugin | |
* | |
* @package App | |
* @subpackage SmartyPluginsModifier | |
*/ | |
/** | |
* Smarty number modifier |
function clearMe(oObj,val) { | |
if(oObj.value==val) { | |
oObj.value=''; | |
} | |
} | |
function fillMe(oObj,val) { | |
if (oObj.value=='') { | |
oObj.value=val | |
} |
/** | |
* Generate a Color Palette | |
* Using Imagick to quantize the image | |
* (http://www.php.net/manual/en/class.imagick.php) | |
* | |
* ASSUMPTION - your image directory has suitable permission levels to allow | |
* your script to edit/copy/create files. | |
**/ | |
<?php | |
namespace Application\View\Helper; | |
use Zend\View\Helper\AbstractHelper; | |
class Urlize extends AbstractHelper | |
{ | |
public function __invoke($string) | |
{ |
# enable a site | |
sudo a2ensite | |
# disable a site | |
sudo a2dissite | |
# enable an apache2 module | |
sudo a2enmod | |
# a2enmod [modulename] |
// functions.php | |
/** | |
* Snippet to create allow a custom admin column to be sortable when it uses Taxonomy terms | |
**/ | |
if(!function_exists('sz_sort_POSTNAME_by_COLUMN-NAME')){ | |
function sz_sort_POSTNAME_by_COLUMN-NAME($clauses, $wp_query){ | |
global $wpdb; | |
if(isset($wp_query->query['orderby']) && $wp_query->query['orderby'] == 'YOUR ORDERBY FIELD'){ |