Debug WordPress 404 page

Insert following code to functions.php for debuging 404 page:

ini_set('error_reporting', -1);
ini_set('display_errors', 'On');

    function (&$wp) {
        global $wp_rewrite;

        printf('<h2>rewrite rules</h2><pre>%s</pre>', var_export($wp_rewrite->wp_rewrite_rules(), true));
        printf('<h2>permalink structure</h2><pre>%s</pre>', var_export($wp_rewrite->permalink_structure, true));
        printf('<h2>page permastruct</h2><pre>%s</pre>', var_export($wp_rewrite->get_page_permastruct(), true));
        printf('<h2>matched rule and query</h2><pre>%s</pre>', var_export($wp->matched_rule, true));
        printf('<h2>matched query</h2><pre>%s</pre>', var_export($wp->matched_query, true));
        printf('<h2>request</h2><pre>%s</pre>', var_export($wp->request, true));

        global $wp_the_query;
        printf('<h2>the query</h2><pre>%s</pre>', var_export($wp_the_query, true));

    function () {
        global $wp_filter;
            '<h2>template redirect filters</h2><pre>%s</pre>',
            var_export($wp_filter[current_filter()], true)
    }, 99999

    function ($template) {

            '<h2>template file selected</h2><pre>%s</pre>',
            var_export($template, true)


Create macOS Big Sur ISO Image File

First download macOS Big Sur From Apple with App Store. Quit installator with ⌘+q, then create new empty volume:

sudo hdiutil create -o /tmp/BigSur -size 16384m -volname BigSur -layout SPUD -fs HFS+J

Mount new volume:

sudo hdiutil attach /tmp/BigSur.dmg -noverify -mountpoint /Volumes/BigSur

Create bootable dmg and copy to new volume:

sudo /Applications/Install\ macOS\ Big\ --volume /Volumes/BigSur --nointeraction

Eject installator:

hdiutil eject -force /Volumes/Install\ macOS\ Big\ Sur

Convert dmg to cdr file:

hdiutil convert /tmp/BigSur.dmg -format UDTO -o ~/Downloads/BigSur

Rename cdr to iso:

mv -v ~/Downloads/BigSur.cdr ~/Downloads/BigSur.iso

Delete original created dmg file:

sudo rm -fv /tmp/BigSur.dmg

How to create a bootable installer for macOS


Retrieve IP adress of AirPrint Printer

You can use ippfind command that finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.


Then you get local adress of printer (Internet Printing Protocol (IPP, RFC 2911)):


then ping local address

ping 3036B5000000.local

and here we go

PING 3036B5000000.local ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=262.342 ms
64 bytes from icmp_seq=1 ttl=64 time=285.290 ms

our printer has


November 2020


  • dog is a command-line DNS client.
  • Yarn.BUILD
  • Carbon - Create and share beautiful images of your source code.
  • Shiki - Shiki is a beautiful Syntax Highlighter. Demo.


  • No Design DEV - A collection of tools for developers who have little to no artistic talent.
  • SVGBox - SVGBox makes it dead-easy to include icons in your project. Simple <img> tags
  • SimpleIcons - 1463 Free SVG icons for popular brands


  • Veloretti - Lightweight, handmade in Europe, a damn good design and no fuss.
  • Dafilms - documentary movies online


  • ROCK Pi 4 - single board computer with M.2 connector supports up to 2T M.2 NVME SSD


CSS frameworks

Full frameworks

  • Tailwind CSS - a utility-first CSS framework for rapidly building custom designs.
  • Twitter Boostrap - world’s most popular front-end open source toolkit
  • Bulma - Bulma is a free, open source CSS framework based on Flexbox
  • UIKit - Lightweight and modular front-end framework


  • MVP.css - A minimalist stylesheet for HTML elements
  • Picni.css - Lightweight and beautiful CSS library


Awesome Markdown editors


I am just found the best (for me) Markdown editor on the planet. Why?

  • it's freeware and opensource
  • it's minimalistic and easy to use
  • combine wysiwyg and plaintext editing
  • support folders, front matter, custom styles,
  • allow quick file open ⌘ + ⇧ + O 😍
brew cask install typora


Caret is a Markdown editor for Mac, Windows and Linux. It stands out with its clean interface, productivity features and obsessive attention to detail. ($29)

brew cask install caret


Markdown note taking app supports tags, dark theme, zen mode, multi edit and so on

brew cask install notable


Open source Markdown editor inspired by Mou, with live preview of extended markdown syntaxes

brew cask install macdown

Visual Studio Code

brew cask install visual-studio-code