Category: Developer tips

  • Override WooCommerce templates with a plugin

    Resources on WordPress Override WooCommerce templates with a plugin

    WooCommerce Templates WooCommerce has templates for everything including emails and provides developers an easy way override them. This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. This is very useful when you build a custom or a child theme and you want to modify the way WooCommerce looks according to your needs. But in […]

  • Monitoring slow queries in MySQL

    Resources on WordPress Monitoring slow queries in MySQL

    If you are in doubt that some really slow queries are taking place on your server and they put you on too much load, then use this change in the configuration file to enable logging of slow queries: The config files usually is /etc/mysql/my.cnf. Uncomment these: slow-query-log = 1 slow-query-log-file = /var/log/mysql/mysql-slow.log long_query_time = 1 […]

  • Using git via console

    Resources on WordPress Using git via console

    # Basic commands to get you started in using Git via console # Дълъг документ, който да ви накара да оцените какво GitHub for Windows прави за вас 😉 Commands to navigate in the console pwd     print working directory cd        change directory. Използвайте кавички  ако в името има интервал  cd Users  cd “Program files” mkdir   […]

  • .htaccess RewriteRule examples

    This is the source. I’m copying it for just in case it get’s lost for some reason. If http://example.com/foo/bar does not exist, redirect to http://other.example.com/foo/bar. (Put this in an .htaccess file in your top-level web directory.) [crayon-650f8cd9dd379475865356/] Handle all requests for top-level .html files and files with no extensions (http://example.com/foo,http://example.com/foo.html) with a single PHP program /foo/show.php. Also, ignore trailing characters in […]

  • [FORMATTING NEEDED] Advice on improving performance of a media site

    Building reader-base and building a brand online: • Daily interaction with fans in facebook; • Facebook – Discussions in “Recent posts by others on The Sofia Globe”; • Facebook – Polls and asking for opinions; • Facebook – publishing photos with links to news from the site; • Facebook fanbox in site – upper position […]

  • Another git cheatsheet

    Resources on WordPress Another git cheatsheet

    An extensive git cheatsheet. Neat.  http://www.git-tower.com/blog/git-cheat-sheet-detail/

  • Another useful guide for using Git

    Resources on WordPress Another useful guide for using Git

    http://wildlyinaccurate.com/a-hackers-guide-to-git