Disable auto-correct for oh-my-zsh when using Chef Knife (or other commands)

oh-my-zsh is great, but certain commands it doesn’t like, for example the Knife CLI tool for Chef. Luckily it is possible to disable auto-correct as required. sudo vim ~/.zshrc To disable just auto-correction for Knife, add the following line somewhere in the configuration nocorrect knife To disable all auto-correct (which I prefer personally) add the ...

How to install CentOS 6 on Microsoft Hyper-V virtualization

Many developers rely on Linux, but often work in a Windows infrastructure environment. Often it’s not feasible to install a flow-blown VSphere or XenServer setup when everything else runs on Windows Server and there’s limited hardware, but virtualization has many advantages. Enter Hyper-V, which can be looked after by Windows system administrators, but let you ...

Copying files in Red Hat/CentOS without prompting, -f –force flag being ignored

Something annoying about Red Hat/CentOS/Fedora I had forgotten after years of Debian, Ubuntu and SuSE (or something that they’ve introduced recently, I’m not sure) is that cp is an alias to cp -i, as in it is interactive by default. Therefore the following will still prompt you for overwriting: cp * -Rf /var/somewhere/new_location To get ...

WordPress 3.2 upgrade, WYSIWYG editor no longer loads? Now requires JSON extension

An issue I encountered recently doing a WordPress upgrade from 3.1 to 3.2, is that afterwards everything appeared to work with the exception of the editor for Posts and Pages. After working through the checklist for the manual install and checking each plugin individually, I took a look at the PHP error log and noticed that PHP didn’t have the JSON extension bundled.