Category Archives: Computers

How to check WordPress versions on your server are up to date

Original script at This script has been improved to automatically detect latest WordPress version by sending a HTTP HEAD request to and parsing the Content-Disposition: attachment; filename=wordpress-A.B.C.tar.gz result as suggested at <?php /** * find outdated wordpress versions * (c) 2014 (M. Cramer) <> * Appended by Steve Scotter */ if(!isset($argv[1])) die(“Please start this program with… Read More »

Moving from DIG to HOST

Query a particular DNS Server for a hostname dig @ host Query for MX records dig mx host -t MX Query for MX records dig NS host -t NS Reverse DNS dig -x host Possibly useful flags -a            Make a verbose query of type… Read More »

Office 2013 – Subscription expired but not using 365?

Office 2013 – Subscription expired but not using 365? This appears to happen if you’ve inserted say a Office 2013 H&B product key into a fresh PC which came with Office 2013 installed. Not sure exactly whats going on, but I suspect the pre-installed Office is Office 365, not Office 2013. The solution is as follows…… Read More »

Updating SBS 2011 Exchange 2010 to SP3

Common problems…  A previous software update installation was not completed. The system must be restarted to finish the installation. If the incomplete installation was a security update, then the system may be at risk until it is restarted. First thing to check is if the server needs a restart due to Windows Updates or… Read More »

Create large dummy file

Fsutil.exe is a built in filesystem tool that is useful to do file system related operations from command line. We can create a file of required size using this tool. syntax to create a file: fsutil file createnew filename length (length is in bytes) For example, to create a file called test.txt  and of 1GB in size:… Read More »

Error 800B0001 and using a WSUS?

Short version Download and install (avoid rebooting if required, doesn’t seem to effect the effectiveness of the hotfix) sc stop WsusService iisreset /stop iisreset /start sc start WsusService Longer version BACKGROUND: Every machine I install the lastest Windows Update Agent on results in a 800B0001 error when getting updates “FROM YOUR SYSTEM ADMINISTRATOR” but have no problems when… Read More »

MS SQL – Preferred data types

Decimal Numbers… DECIMAL(18,0) will allow 0 digits after the decimal point. Use something like DECIMAL(18,4) instead that should do just fine! That gives you a total of 18 digits, 4 of which after the decimal point (and 14 before the decimal point). Question Sum’ing data of type REAL resulted in a total with about 10… Read More »

Transfering MySQL database between hosts

The single command approach mysqldump -h oldhost -u oldusername -poldpassword olddbname | mysql -h newhost -u newusername -pnewpassword newdbname make sure you can … mysql -h newhost -u newusername -pnewpassword newdbname … before attempting the transfer. Common issues are :- Firewall preventing access to MySQL server across the network User configured to only be able… Read More »

SCS SVN setup procedure

Download and install (Typical) SlikSVN ( Open a CMD prompt CD C:\ MKDIR SCS CD SCS svn checkout

FreeBSD, Fatal error: Call to undefined function geoip_country_name_by_name()

Getting Fatal error: Call to undefined function geoip_country_name_by_name() ? Install /usr/ports/net/pecl-geoip # cd /usr/ports/net/pecl-geoip && make install clean # “/usr/local/www/awstats/cgi-bin/” -update -configdir=”/usr/local/etc/awstats/” Error: Plugin load for plugin ‘geoipfree’ failed with return code: Error: Can’t locate Geo/ in @INC (you may need to install the Geo::IPfree module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.18 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.18/mach /usr/local/lib/perl5/5.18 /usr/local/lib/perl5/site_perl/5.18 /usr/local/lib/perl5/site_perl/5.18/mach… Read More »

Windows Firewall Diagnostics

While looking into what wermgr.exe was () and why it was trying to communicate with I found this page with some useful information about how to generate a XML file with the reasons why a connection is blocked… After asking for help in the Windows Filtering Platform (WFP) forum on MSDN I learned that you can… Read More »

Reset File NTFS Permissions to default

As yet unconfirmed… secedit /configure /db secedit.sdb /cfg %SystemRoot%\defltwk.inf /overwrite /verbose

Symlink, ln

Common synlink’s you do. ln -s /usr/bin/svnlite /usr/bin/svn ln -s /usr/local/share/munin/plugins/scs_directory_size_v3_ /usr/local/etc/munin/plugins/scs_directory_size_v3___var___db___mysql ln -s [SOURCE FILE / DIR] [CREATE SYM LINK HERE]

FreeBSD changing shells quickly

Change shell to sh # chsh -s /bin/sh <username> Change shell to nologin # chsh -s /usr/sbin/nologin <username> Change shell to scponly # chsh -s /usr/local/bin/scponly <username> Quickly checking which users have non nologin shells # grep –invert-match ‘nologin’ /etc/passwd

GhettoVBC, ESXi 5.5 & Crontab

# vi /etc/rc.local.d/ Make the contents something similar to the following… #!/bin/sh # local configuration options # Note: modify at your own risk! If you do/use anything in this # script that is not part of a stable API (relying on files to be in # specific places, specific tools, specific output, etc) there is… Read More »

Munin-node initial setup

For a list of plugins that will probably work run /usr/local/sbin/munin-node-configure –suggest If this is a fresh install run /usr/local/sbin/munin-node-configure –shell | sh -x to install the plugins automatically

Block Skype ads

Go to Control Panel > Network and Internet > Internet Options > Security Tab > Restricted Sites   Then click sites, and add Works for me with no loss of functionality.

FreeBSD & vmtools Click VM -> Guest -> Install / Upgrade VMware Tools (which inserts the virtual CD) # mkdir /mnt/cdrom # mount -t cd9660 /dev/cd0 /mnt/cdrom # cd /tmp/ # tar zxpf /mnt/cdrom/vmware-freebsd-tools.tar.gz # umount /mnt/cdrom # cd vmware-tools-distrib # ./ If compat6x is not installed you’ll receive the following error once /usr/local/bin/ is run for you… The… Read More »