Just making a note of some useful memcached queries https://michaelheap.com/working-with-memcached-via-cli/ https://packages.debian.org/jessie/libmemcached-tools memccat – Copy the value of a key to standard output memcflush – Flush the contents of your servers. memcrm – Remove a key(s) from the server. memccp – …
Read morefail2ban & Cloudflare
I have been running a fairly busy site on a hosted package which included a Cloudflare subscription. I moved the site to my Ubuntu server which had fail2ban running. All seemed to be working. People were being blocked and a …
Read moreUser agents
I have a dynamic robots.txt program on GitHub that lets me tell unwanted bots unambiguously not to scan my site. Its overall effect is minor as only the responsible bots pay attention. While scanning my logs, there are a few …
Read moreRegular expression to update the PHP tag
Many moons ago, PHP used <? to denote the start of a php script. This caused a problem with some XML code, so it was decided to use <?php instead. For some time, PHP no longer recognises <?, although there is …
Read moreApache process memory usage
I recently had a problem where a website runs normally all month, but after an “update notification Email” was sent, the website ground to a halt. The first useful command I found was `free` which displays the memory status. total …
Read moreAdding SpamAssassin and ClamAV to Postfix
Installation is easy enough with the package system, but further tweaks are required to get it up and running. Once its running, more tweaks are required to have it running at its best. First task is to have an up …
Read morec# Creating objects with a string
My problem was that a particular system had 4 customers and the possibility that this would expand. Each customer had their own bespoke software to handle the data processing. This caused maintenance difficulties as often a change would be required …
Read more