Follow Brian Li (@DecryptoBL) on Twitter.
Follow Brian Li (@bwhli) on Instagram.

How to Disable Gutenberg in WordPress 5.0

December 8, 2018

Add the line below to your theme’s functions.php file to disable the new Gutenberg editor in WordPress 5.0.

/* Disable the Gutenberg editor. */
add_filter('use_block_editor_for_post', '__return_false');

There’s also an official Classic Editor plugin if you want to go that route instead.

How to Fix WordPress Character Encoding

November 19, 2018

After a recent update to my About page, I saw that Japanese characters were being rendered as question marks. Since Japanese characters were immediately changed to question marks after hitting the “Update” button in the WordPress editor, I quickly ruled out a font-related bug as the cause of the issue. After some Googling and subsequent database exploration, I discovered that my web host’s default database character set is latin1 (ISO-8859-1), which doesn’t support Japanese characters.

Continue Reading →

How to Update Plex Media Server on Ubuntu

July 9, 2015

Here’s how to update Plex on a server running Ubuntu.

  • Find the URL for the latest Plex Media Server package here.
  • SSH into your server. For the following steps, make sure you replace the URLs and packages with the latest release.
  • Run the following command to download the latest package.
  • Install the package with this command.
sudo dpkg -i plexmediaserver_0.–9a47d21_amd64.deb
  • Following installation, remove the installer file with this command.
rm plexmediaserver_0.–9a47d21_amd64.deb

How to Redirect YOURLS Root URL

June 6, 2015

YOURLS lets you easily create your own URL shortening service, a la By default, the YOURLS domain root takes you to a login page to access the administration backend. Here’s how to redirect it somewhere else.

  1. FTP into the YOURLS installation folder.
  2. Create a file and name it index.php if it doesn’t already exist.
  3. Copy and paste the code below into index.php.
  • <?php
  1. Change the URL as needed.
  2. Make sure to save the file.

That’s it! I used this method to redirect to


Find me on Twitter, or send me an email.