Open Windows PowerShell with adminstrator rights, enter:
$ VBoxManage setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1
Check if it got set:
$ VBoxManage getextradata YOURVMNAME enumerate
Replace USERNAME with your wished login-username and hit enter: | |
printf "USERNAME:`openssl passwd -apr1`\n" >> .htpasswd |
function atz_split_content_at_more(){ | |
// Split the content | |
$content_parts = preg_split('/<span id="more-\d+"><\/span>/i', get_the_content()); | |
// Grab first part of content and apply filters | |
$result['intro'] = apply_filters('the_content', array_shift($content_parts));; | |
// Content has a more part? | |
if(!empty($content_parts)): | |
$result['more'] = apply_filters('the_content', implode($content_parts)); |
/** | |
* Hide the main editor on specific pages | |
*/ | |
define('EDITOR_HIDE_PAGE_TITLES', json_encode(array())); | |
define('EDITOR_HIDE_PAGE_TEMPLATES', json_encode(array('template-cars.php'))); | |
/** | |
* Hide the main editor on defined pages | |
* |
/** | |
* Replace 'mycustomname' with the actual custom type post | |
* name to fit your needs. | |
* | |
* !! Flush rewrite rules in Wordpress backend afterwards !! | |
*/ | |
/** | |
* Create the CTP |
.inset-top{ | |
box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4); | |
} | |
.inset-left{ | |
box-shadow: inset 7px 0 9px -7px rgba(0,0,0,0.4); | |
} | |
.inset-right{ | |
box-shadow: inset -7px 0 9px -7px rgba(0,0,0,0.4); | |
} | |
.inset-bottom{ |
I assume that you have a running debian wheezy host with libvirt and qemu/kvm
installed. You need two guest VMs for this. The first guest will get the IP
192.168.100.2 and the second will get 192.168.100.100. All following commands
must be run with sudo
or under root.
We create a new network named internal with libvirt and use it with the IP
This shows you how to send mails from a - in this case virtual debian server inside VirtualBox - server to an external SMTP server. You can use your own server, Gmail or any other SMTP server you have access to.
This can then be used to send mail from PHP, Rails, Python, console or whatever you like.
The steps are for a debian wheezy server.
function my_remove_wp_seo_meta_box() { | |
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal'); | |
} | |
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100); |
How to install the VirtualBox Guest Additions in debian wheezy | |
$ su - | |
$ apt-get update && apt-get upgrade | |
Install needed packages | |
$ apt-get install build-essential module-assistant | |
Configure your system for building kernel modules | |
$ running m-a prepare |