Author Archives: Randy

.htaccess force SSL (AutoSSL safe)

The following is safe to use on Cpanel/WHM with AutoSSL enabled. RewriteEngine On RewriteCond %{HTTPS} !on RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

JunOS (MX) Cheat Sheet

BGP Commands BGP Summary (IPv4 and IPv6): show bgp summary BGP Received routes (shows routes BEFORE filtering? Always check local routing table): show route receive-protocol bgp <neighbor> BGP Sent routes: show route advertising-protocol bgp <neighbor> Shut/unshut a BGP peer <set|delete> protocols bgp <group> neighbor <neighbor> shutdown Reload inbound routes clear bgp neighbor soft-inbound <neighbor|all> Reload […]

Categories: Uncategorized. Comments Off on JunOS (MX) Cheat Sheet

Starting a temporary MySQL instance for table/DB recovery

In this example we assume a restored backup of mysql’s datadir exists at /mnt/restore/mysql. mysqld –port=3307 –socket=/mnt/restore/mysql/tmp.sock –datadir=/mnt/restore/mysql –pid-file=/mnt/restore/mysql/tmp.pid –user=mysql If the backups are ‘dirty’ and innoDB corruption won’t let it start, you can try –innodb-force-recovery=N if needed (start with N = 1 and go up to 4 as neccesary). If the instance was part […]

Categories: Uncategorized. Comments Off on Starting a temporary MySQL instance for table/DB recovery

XenServer recovery – XAPI won’t start

If running XenServer on a RAID array with writeback (controller cache) enabled and no battery backup, don’t lose power. If you do, you will discover the state.db is corrupt and XAPI fails to start. Everything is down, Dom0 lost it’s network config, you’re screwed. Maybe. This tutorial assumes you’ve got a metadata backup, all your […]

Magento2 – Upgrade using Composer

This is the preferred, Composer method for upgrading Magento 2.X.X between minor versions. Replace X.X with the minor version numbers of the target version. The last line is optional, use it only if you’re in the middle of a migration and need to continue to be able to sync data with a 1.x site. If […]

Categories: Code and Technical. Comments Off on Magento2 – Upgrade using Composer

Windows Vista through Windows 10 Boot Repair

After cloning a larger HDD to a smaller SSD, you will most likely face a blinking cursor or other boot issues.   The following steps should get you back on track from a rescue command prompt: bootrec.exe /fixmbr bootsect.exe /nt60 all /force bootrec.exe /rebuildbcd If you are getting integrity check errors on winload.exe, you can try […]

Categories: Uncategorized. Comments Off on Windows Vista through Windows 10 Boot Repair

GL-MT300A tricks – WIFI Client Bridge

In a search to replace several NetGear WNCE2001 devices which had over time, proven themselves to be so unreliable they would literally kill entire wireless AND wired networks by randomly hijacking DHCP. I tried many devices — some either couldn’t bridge at all, others ‘worked’ but had such terrible range or connection quality they were […]

Enable megasas2.sys Critical Mass Storage Driver

This reg key will enable the ability to boot from MegaRAID storage devices using the megasys2.sys driver. Useful to run before hand when upgrading or otherwise changing hardware to something with a LSI 9260, 9271 or similar card. This reg key REQUIRES that you already have the correct megasas2.sys driver installed one way or another. […]