Djlab - djlab.com - Randy's Blog » Randy's Blog

Latest News:

JWplayer iframe codes for Wowza 26 Aug 2013 | 08:59 pm

Allows easy embedding of on-demand and live media from a Wowza server using Iframes and a PHP server capable of .htaccess rewrite rules. http://djlab.com/stuff/jwplayer.zip Example of embed code:

Removing RAID metadata 31 Jul 2013 | 01:43 am

Sometimes a hardware RAID controller or fakeraid (BIOS) can leave metadata that throws Linux for a loop, making the disk essentially unusable when hooked up directly without a RAID controller. The onl...

Now Playing code example 1 Jul 2013 | 09:14 pm

Website code:

Syncing User Filesystems Between Two Cpanel Servers 26 Jun 2013 | 08:31 pm

After doing a WHM multi-account copy, you may want to refresh the users home directories (including email and web files). This one liner uses rsync over SSH to do a quick sync of only changed files, e...

Syncing All MySQL Databases Between two Cpanel Servers 26 Jun 2013 | 08:26 pm

After you do a WHM multi-site transfer, you may want to resync all the MySQL databases before doing a DNS change. Here’s a quick and easy way to sync each Cpanel user’s databases on the new Cpanel ser...

MySQL Relationships (JOIN explained) 19 Jun 2013 | 03:33 am

The visual diagrams still confuse me after so many years and I always forget…so here it is: INNER JOIN gets all records from one table that have some related entry in a second table LEFT JOIN gets all...

Remount read/write in single user mode 22 Apr 2013 | 05:49 pm

If /etc/fstab is correct, you can simply type: # mount -n -o remount / If /etc/fstab is wrong, you must give the device name and possibly the type, too: e.g. # mount -n -o remount -t ext4 /dev/sda3 /

Pacemaker / Corosync / DRBD Cheatsheet 20 Apr 2013 | 06:46 pm

Monitor the status: # crm_mon Migrate all resources to another node: # crm resource migrate rg_main Take node offline and online (be careful, this sets a ‘prefer’ to the other node to force a transiti...

Exchange 2012 Allow Relay from IP 3 Apr 2013 | 07:20 pm

Enable mail relaying from a specific IP or range of IPs. 1. Exchange Management Console -> Server Configuration -> Hub Transport 2. New Receive Connector * Set remote network to the IP or range you wa...

Increasing max files or folders per directory on Linux EXT filesystem 25 Mar 2013 | 07:45 pm

If a (poorly coded) app reaches the maximum number of files or folders per directory in Linux, you may see errors like this: Error happened when generating Download Link. Please try again or Contact a...

Recently parsed news:

Recent searches: