Wget offline copy of a website

Wget is a fantasitc tool. You need to create an offline copy of a site. No probem. Wget can help you make such copy easily: wget –mirror –convert-links –adjust-extension –page-requisites –no-parent http://example.com Shorthands: wget -mkEpnp http://example.com Clarification: -m, –mirror shortcut for -N -r -l inf –no-remove-listing -k, –convert-links make links in downloaded HTML or CSS…

Tagged , , ,

WP_Query eliminate memory overflow

Whenever WP_Query() runs on big blogs with many posts, it takes a lot of memory, so we get memory overflow. $args = array( ‘post_status’ => ‘publish’, ‘post_type’ => array( ‘post’ ), ‘posts_per_page’ => -1 ); $query = null; wp_reset_query(); $query = new WP_Query($args); Why there is Memory Overflow? WP_Query actually loads every matching post into…

Tagged , ,

Connecting two Linux computers via LAN network to share folders

Most natural way to connect two Linux computers to share folders would be the SSH protocol. In case you don’t have SSH protocol there are client and server side you can install via the package manager (like Yum for CentOS): # yum -y install openssh-server openssh-clients Once you have that installed on both the Linux…

Tagged , , ,

WordPress complete list of hooks and hooked functions

In article Using add_filter hook… we set the the code how to enumerate the functions being hooked to the specific WordPress hook, but we never covered how to show all hooks and all the hooking functions, and lastly to show the execution priories for the hooking functions execution. It must be several years I saw…

Tagged , , ,