I recently needed to search and replace some text in a large number of PHP scripts. Back in my Windows days I had a lightweight freeware programme that was perfect for the job. But what to do on Linux? The answer was to combine grep and sed. But don’t forget to watch out for Git!
Archive of entries posted on March 2016
It’s arguably a good idea to move your SSH listener off port 22. This is a quick and easy way to reduce hacking attempts and one of the first things you can do to further secure your server.
Use come command-line fu to analyse your website log in real-time and find out which IP addresses are making the most requests.
Node.js is an increasingly-popular JavaScript runtime that can be used to build server-side applications. Installing Node on Ububtu 14.04 via APT isn’t quite as straightforward as it could be, as the version in the default repositories is 0.10.25, dating back to early 2014.