This is how I use GIT to deploy script configurations to multiple servers. In this instance I have fail2ban configuration that I want to be able to deploy to multiple servers easily & quickly I assume you are root – otherwise prefix commands with sudo as appropriate I also assume that you have remote root [Read the full article…]

Occasionally a WordPress plugin is not templated, so difficult to customise the output, so in these circumstances one solution is to use jQuery to modify the output. Now this is not pure and a bit hacky, as ideally you would change the code that is producing the output. However the situation is just sometimes that isn’t [Read the full article…]

Sailwave is a windows based application that manages scoring and results for sail races and series See http://www.sailwave.com/ Sailwave comes with many different ways to ‘publish’ results, including FTP’ing the html results files to a server. Whilst there are many ways to achieve the desired results, the situation arose that my server no longer supported FTP [Read the full article…]

If you are running a VPS, for a production server, it is very useful to have a process that monitors, and restarts if failed, and notifies you of key processes, like apache, mysql, postfix & ssh. Monit is a free open source tool that does the job. Took me a little while to get my [Read the full article…]

This example is of Google Forms submitting to Fresh Desk Google forms is an easy to use form builder that has many uses. One advantage of Google Forms is that is is effectively free, either within ‘consumer’ Google Accounts, or more importantly is business Google Apps for Work / Education / Government accounts. When automating [Read the full article…]

With Genesis when you select archives to display excerpts, you don’t get a read more link or button, just some dots. Although you can click on the title, this isn’t intuitive or user friendly. The following code snippet can handle this add_filter( ‘the_excerpt’, ‘bw_excerpt_read_more_link’ ); function bw_excerpt_read_more_link( $output ) { if( ‘post’ === get_post_type() ) [Read the full article…]

The Genesis Social Share plugin is one of the must have plugins for Genesis sites. See https://wordpress.org/plugins/genesis-simple-share/ I wanted to display these icons (just like the ones on this post) except on posts in a specific category. I had to read the plugin code to work this out. Fortunately the code is an example of beautifully [Read the full article…]

Genesis comes with a header widget area built in. Occasionally you may want to remove this for specific pages. The following code snippet in functions.php will do the trick add_action( ‘genesis_meta’, ‘my_remove_hr’); function my_remove_hr() { if ( is_page( ‘privacy-cookies’ ) ) { unregister_sidebar( ‘header-right’ ); } } The if statement will need to be adjusted [Read the full article…]

The WordPress user bio only allows a very restricted set html. Occasionally, it is desirable to be able to format the WordPress user bio with additional html. Out of the box that is not possible. However to allow additional html in the WordPress user bio, like I have with some <p> and <br> to break [Read the full article…]

This site is free to use, but hopes to cover some costs through affiliate income, some products and links are affiliates and may earn the site advertising income.

Some affiliates use Cookies to track if you purchase from them, this allows them to apportion revenue to us you will need to refer to their specific privacy notices as to how you are tracked.

This site is a participant in the Amazon EU Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk.

This website uses cookies to improve your experience. Also when you click on affiliate links those links may use Cookies to track you to be able to apportion revenue to us. We'll assume you're ok with this, but you can opt-out if you wish.AcceptRead More

Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.