Posts

Showing posts with the label bypass

WordPress - Bypass W3 Total Cache when running php script in command line

If your wordpress site's using W3 Total Cache, there is a big chance that your php script will stop working because of the cache, especially db cache. Here is my solution for that: Flush W3 Total Cache cache before running any functions. You simply put this line of code before executing any wordpress's function: if (function_exists('w3tc_dbcache_flush')) { w3tc_dbcache_flush(); } For example: ...                 // Flush W3TC DB cache before creating blog                 if (function_exists('w3tc_dbcache_flush')) { w3tc_dbcache_flush(); }                 $blog_id = wpmu_create_blog('my.multisite.blog', $path, $title, $user_id, $meta); ...

SSH tunnelling through a SockProxy with Tor

Your company network does not allow any SSH connection? Just make it through a Sock Proxy. You can easily ssh successfully to your server with Tor. 1. Install Tor: $ sudo apt-get install tor After installing Tor, some services will be started: tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      14753/tor       tcp        0      0 127.0.0.1:9150          0.0.0.0:*               LISTEN      7373/tor       tcp        0      0 127.0.0.1:9151          0.0.0.0:*               LISTEN      7373/tor     2. SSH through Tor network: $ torify ssh root@myoutsidedomain.com Cool!!! Referen...