Skip to main content

Posts

MacBook 3rd Party SSD Trim Enable - macOS Sierra

Before Yosemite, I was using a 3rd party app called Trim Enabler to turn on the TRIM command for SSD installed as an upgrade to HDD-based Mac. This is useful to prolong the life of older Macbooks. Yosemite new security model will no longer load the driver. The developer has released a new tool called Disk Sensei (https://www.cindori.org/safely-enable-trim-on-yosemite-and-el-capitan/). The new tool has more bells and whistles and doubled the price (US$19.99). Ouch! With the new version of Mac OS, a new, built-in solution is available. It's free. Under Mac OS X 10.10.4 or above, perform the following steps: 1) Launch Terminal 2) sudo trimforce enable 3) Confirm "yes" two times - Macbook will then reboot It is verified OS X El Capitan works with this function. 2016.10.07 - It is verified also that macOS Sierra final also works!

WordPress 4.5 White Screen of Death

After activating a child theme (that seemed to be incorrectly developed), it first generated an error screen and then the entire site (front-end and back-end) shows white screen. WordPress community has referred this to White Screen of Death. The quick fix to this issue: 1) FTP/SSH to the wp-content/themes directly. 2) Rename the folder of the themes you last selected causing the White Screen of Death 3) Re-login to WordPress site wp-admin 4) Go to Appearance menu and re-activate the last working theme

Improve responsiveness of BlackBerry Priv running Android Marshmallow

I am using a BlackBerry Priv, updated to the latest Android version (6.0.1). It has started to run slower and sometimes lagged. Here is a quick tip to improve the responsiveness. 1) Turn on Developer Options Settings -> About Phone -> Scroll to bottom and tap the Build Number several times. Eventually you will see "You are now a developer!" 2) Settings -> Developer Options Scroll down and turn off the following options (or set them to 0.5x) - Window animation scale - Transition animation scale - Animator duration scale This works on different Android phones: Xiaomi Note (International), Meizu m1 note (International), Xiaomi RedNote 4

Installing a wildcard SSL certificate to secure ISPConfig default interface

First backup existing certificates (or move it to another folder) /usr/local/ispconfig/interface/ssl Install the key, purchased SSL certificate (wildcard cert will work well) and intermediate cert. Name them as: ispserver.key ispserver.crt ispserver.bundle Modify apache2 settings so that it observes the CA intermediate cert: /etc/apache2/sites-available/ispconfig.vhost   SSLEngine On   SSLProtocol All -SSLv3   SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt   SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key   #SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle Modify the last line by removing the "#" Then restart apache2 service apache2 restart

Migrating WordPress 4.4.2 Installation from Ubuntu Linux (Rackspace) to Windows (Azure)

In an unanticipated request I have to move a WordPress installation running on a LAMP stack to an Azure instance running WIMP (Windows, IIS, MySQL PHP). In the Azure settings, MySQL is running as a cloud-based database service. BackupBuddy has been a reliable tool for single site migration and its beta has support for multi-site migration which is sufficiently reliable. But moving from Linux to Windows is another story. The alternative is the free Duplicator - which I only come to know of having contacting WPML.org technical support for another reason. The key steps: 1) Change permalink back to default 2) Deactivate / Delete any unused plug-ins 3) Backup using Duplicator 4) Download the installer.php and the .zip archive 5) Upload installer.php and the unzipped files to Windows server This pre-unzip is necessary so that the php script does not have to tackle the unzip which resulted in a timeout in our scenario. And I have no access to Windows RDS to change the php.ini co...

AWS - Ubuntu 14.04LTS with AWS CLI

Starting to migrate servers to AWS. The AWS Linux AMI has the AWS CLI pre-installed and setting up is pretty easy. AWS Linux AMI is CentOS-based and has different configurations/settings with Debian-based Ubuntu. To install the AWS CLI, follow these steps: SSH with username ubuntu and the private key file apt - get install python - pip pip install awscli Then config awscli with command: aws configure At this point, you will be prompted to enter the Access Key and Secret Key. It should be created in the IAM module. The keys should be re-generated from time-to-time for security purpose. Remember to attach a policy for access. By default the IAM created will have no policy attached. Two files are created to store the config enter under the user's directory in .aws directory.