Shared folders that Chef requires are missing on the virtual machine

GuestAdditions 4.3.28 running — OK. ==> default: Checking for guest additions in VM… ==> default: Setting hostname… ==> default: Configuring and enabling network interfaces… ==> default: Mounting shared folders… default: /vagrant => /Users/gonzo/Workspace/aaaa-chef default: /opt/aaaa/current => /Users/gonzo/Workspace/aaaa-chef/workspace/aaaa ==> default: Chef 12.4.0 Omnibus package is already installed. ==> default: Running provisioner: chef_solo… ==> default: Detected Chef […]

How to Add an Admin User to the WordPress Database via MySQL

Update the bold sections with your stuff   INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES (‘newadmin’, MD5(‘pass123’), ‘firstname lastname’, ’[email protected]’, ‘0’); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), ‘wp_user_level’, ’10’);

Automount smb shares on OSX Yosemite

Source: ronaldcs’s post on When googling how to do this, I found the tutorial shown above. It’s pretty well explained, although a bit convoluted, the option that actually works for Maverick and above is Option 4. Option 4 is very similar to Option 1, save that it uses a folder other than “Volumes”. This […]

Using vW units in LESS for a quick responsive on desktop.

Among px, em and %, CSS supports units such as “vw”, “vh”, “vmin” and “vmax”. These are called viewport units, and are effectively a percentage of the viewport. “vw” is relative to the viewport’s width. “vh” is relative to the viewport’s height. “vmin” is relative to the smallest of the two. (“vm” on old IE versions.) […]

Remove all those .DS_Store files

I don’t like committing .DS_Store files into my projects, so here’s an easy way to remove them: Run this from your project folder: # Recursively erase all .DS_Store files in this folder and below find . -name \.DS_Store -exec rm -v {} \;