Category: How To

Just random stuff - Nothing to see here - Move along...

Ramdisk Sync for Better Performance in I/O Intensive Environments

Setup Create a mountpoint for the disk : mkdir /mnt/ramdisk Secondly, add this line to /etc/fstab in to mount the drive at boot-time. tmpfs /mnt/ramdisk tmpfs defaults,size=2g,noexec,nosuid,uid=65534,gid=65534,mode=1755 0 0 Change the size option in the above line to easily accommodate the amount of the files you’ll have. Don’t worry, it doesn’t allocate all of that space…
Read more

Adding Multiple GA IDs on One Domain

You may find the need to add additional (or include your own) tracking code on a website.  Using the async analytics.js GA code, here’s an example: <!– UA-12345496-5 ORIG UA-72112345-1 CNVG US-55123457-1 UNKN –> <script> (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘UA-12345496-5′,’auto’); ga(‘create’, ‘UA-72112345-1′,’auto’, {‘name’: ‘CNVG’}); ga(‘create’, ‘UA-55123457-1′,’auto’, {‘name’: ‘UNKN’}); ga(‘send’, ‘pageview’); ga(‘CNVG.send’, ‘pageview’); ga(‘UNKN.send’,…
Read more

WordPress Apache PHP5-FPM and Redirect-Loop

Ok, here’s a quick and dirty .. just so I log this as it drove me crazy and I lost about 3 hours of my life on it. Earlier in the day I wrote a script to sync configs across servers and that’s been working great.  Using a unison and some other bits, so keep…
Read more

Setting Up a MySQL (5.5) Master-Master Replication

MySQL replication is the process by which a single data set, stored in a MySQL database, will be live-copied to a second server. This configuration, called “master-slave” replication, is a typical setup. Our setup will be better than that, because master-master replication allows data to be copied from either server to the other one. This…
Read more

Create a Virtual Drive Letter for a Folder Using Subst Command

I have references on one computer that uses Google Drive mapped as a “K:” drive.  Some of the software that’s running on that computer saves it’s configuration files and details to the Google Drive area where it’s automatically sync’d to the cloud.  Since I don’t want to change all of the configs to point to…
Read more