Skip to content

Instantly share code, notes, and snippets.

@str8edgedave
str8edgedave / macos-vbox.md
Last active December 21, 2021 21:01
Auto-starting VirtualBox VMs on MacOS High Sierra

Auto-starting VirtualBox VMs on MacOS High Sierra

Updated May 21/2018

There are lots of different how-tos out there for automatically launching VMs using VirtualBox on MacOS. Most of them focus on older versions of VirtualBox or old versions of MacOS.

Tested using MacOS High Sierra 10.13.4 running VirtualBox 5.2.12. The guest OS is Fedora 28.

Following the instructions on the VirtualBox website (https://www.virtualbox.org/manual/ch09.html#autostart), copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.

david$ sudo cp \

@victor-falcon
victor-falcon / wordpress-new-domain.sql
Last active December 14, 2015 14:08
Query to change wordpress domain
SET @newdomain:='http://nuevadominio.com';
SET @olddomain:='http://localhost:8888/old';
UPDATE wp_options
SET option_value = @newdomain
WHERE option_name IN ('siteurl','home');
UPDATE wp_posts
SET post_content = replace(post_content,@olddomain,@newdomain);
UPDATE wp_posts
SET guid = replace(guid,@olddomain,@newdomain);
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/