Bash logo

GNU/Linux

Last updated:

Turn off swap

Learn how to turn off swap in Bash, because when a swap partition is enabled Linux starts swapping, which may degrade (MySQL) system performance

How to Deploy Software through WDS, automated as a FirstLogonCommand

Windows Server

Last updated:

Software deployment through WDS

Here is how to install software packages during a Windows Deployment Services (WDS) deployment, without Microsoft Deployment Workbench (available in the Microsoft Deployment Toolkit, or MDT).

Blues Brothers MS-DOS game

Useful

Last updated:

How to play classic MS-DOS games on Windows 11 with DOSBox

Relive the golden age of PC gaming. Learn how to configure DOSBox on Windows 11 to run classic MS-DOS titles, optimize CPU cycles for period-accurate speed, and set up a custom autoexec.bat menu for easy launching.

Codebase

Last updated:

Find all files owned by a particular user using PowerShell

Sometimes you need to find all files owned by a specific user, recursively on your Windows Server NTFS file system. PowerShell has some neat cmdlets to automate this task for you and here is how.

WordPress

Last updated:

Disable WordPress comments (how-to)

With thousands spam reactions, disabling (and removing) WordPress comments is often the only way to go. Here is how to disable WordPress comments in both the WordPress Dashboard interface and in your MySQL / MariaDB database.

Analyze Component Store size with DISM in PowerShell

Windows Server

Last updated:

Disk Cleanup in Windows Server

Utilize your cmd.exe or PowerShell command-line and use Deployment Image Servicing and Management (DISM) to clean up the Windows Component Store (WinSxS) in Windows Server.

Windows Server

Last updated:

Explicit Congestion Notification (ECN) slows down outbound connections

ECN is an optional feature that may be used between two ECN-enabled endpoints when the underlying network infrastructure also supports it. Unfortunately, having one ECN Capability enabled endpoint may slow down outbound network connections to outdated network equipment.

Windows Server logo

Windows Server

Last updated:

“A domain rename operation is already in progress”

The other day, when I attempted to add a newly installed Active Directory to become the slave domain controller of a master, the error message “A domain rename operation is already in progress” was displayed. Promoting the Windows Server 2012 R2 server to a Domain Controller failed.

Web applications

Last updated:

Sysadmins of the North goes global!

How to set up a global Geolocation DNS load balancing Varnish Cache Content Delivery Network with Bind9, geo-ip database, Varnish Cache and DigtalOcean. DIY High-Availability for your website!

blue elephant plush toy on black laptop computer -- Photo by Ben Griffiths

Web applications

Last updated:

How to set a good PHP realpath_cache_size

Learn how to optimize PHP performance by checking and setting PHP realpath_cache_size. The realpath_cache_size size represents the total number of bytes in the path strings stored, plus the size of the data associated with the cache entry

Microsoft Internet Information Services (IIS) logo

Windows Server

Last updated:

Conditionally start Application Pools on remote IIS web servers

In this article you’ll learn how to start all stopped application pools that have the ApplicationPool.AutoStart property set to $True using AppCmd.exe or PowerShell. This is something you often or occasionally have to perform on various servers, for example when an application pool hangs.

blue elephant plush toy on black laptop computer -- Photo by Ben Griffiths

Useful

Last updated:

Check website availability with PHP and cURL

A useful PHP script to check if your website is up and online available. It uses PHP and cURL. This script comes in handy because website uptime and availability is important, and you want your website to be always online available.

Web applications

Last updated:

Exploit PHP’s mail() to get remote code execution

Exploit PHP’s mail() function for remote code execution. Apparently, if you are able to control the 5th parameter of the mail() function ($options), you have the opportunity to execute arbitrary commands.

WordPress XMLRPC API

WordPress

Last updated:

Huge increase in WordPress xmlrpc.php POST requests

How to identify, block, mitigate and leverage xmlrpc.php scans, brute-force, and user enumeration attacks on WordPress sites… Secure WordPress xmlprc.php interface and reduce service disruption.