In this post I describe some of the settings and changes I made to make my Windows 10 and Ubuntu WSL into a fully fledged development environment. Here are the settings and tools I use for DevOps/SysOps on Windows.
Published on Monday, 15 August 2022
Have you ever had the need to show the full username in ps output? Here is how. Normally in Bash, the ps output truncates an username to 7 characters and a \+ sign, e.g IUSR_60\+. In cases when you absolutely need the full username in ps, this can be pretty annoying. Here is how to display longer usernames in ps
Published on Saturday, 5 February 2022
Using WSL it is pretty easy to install Hugo, set up your development environment and configure Hugo to listen on your Ubuntu's IP address, here is how.
Published on Saturday, 25 July 2020
If you need to restore a single table from a full MySQL backup, you may find yourself wondering "how do I do that?". There are a few steps required, I outline them here for you to restore the contents of just one table back into the database from the mysqldump using Bash.
Read more...
Published on Monday, 21 August 2017
The `postsuper` command controls different types of queues in the Postfix mail system, like the deferred or hold queue. This post shows you some Postfix queue operations to maintain your mail servers.
Published on Sunday, 6 August 2017
In this post I show you how you can benchmark the loading speed of your WordPress. For this you use ab, or ApacheBench. ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs.
Published on Sunday, 9 October 2016
TL;DR, when using recursive scp, symbolic links aren't preserved and are copied as if they are normal directories. So you have to look for another solution to recursively transfer symlinks over ssh. Use Tar over ssh!
Published on Thursday, 4 February 2016
OpenSSL comes in handy when you need to generate random passwords, for example for system accounts and services. In this short post I'll give you a quick example on how to generate random passwords with OpenSSL in Linux (Bash), Windows and PHP.
Published on Friday, 27 November 2015
How to tunnel Remote Desktop over SSH with PuTTY? Have you ever been in a situation where you needed to perform remote administration on a Windows Server, and the RDP port 3389 is blocked on a firewall? You can tunnel RDP over SSH with PuTTY. This particularly comes in handy when there is no VPN available to the remote network...
Read more...
Published on Tuesday, 28 April 2015
Swapping is costly for disk I/O and not every Linux server needs to have a swap partition and to start swapping. For instance, MySQL servers have more than enough RAM available to do their work. Yet, when a swap partition is enabled Linux starts swapping, and that degrades MySQL database performance.
Read more...
Published on Wednesday, 25 March 2015