How to install Composer on Debian / Ubuntu Linux

Composer is a dependency manager for PHP, which helps you manage the packages and libraries required for your PHP projects. Here’s how to install Composer on Debian or Ubuntu Linux: Open a terminal window. Download the Composer installer script by running the following command: curl -sS https://getcomposer.org/installer | php Move the composer.phar file to a … Read more

How to Force Apache To Show a HTTP-410 Gone Status Code

To force Apache to show a HTTP-410 Gone status code, you need to add a custom error response in your Apache configuration file. Here’s how to do it: Open the Apache configuration file, usually located at “/etc/httpd/conf/httpd.conf” or “/etc/apache2/httpd.conf”, using a text editor as root or using sudo. Add the following line inside the VirtualHost … Read more

How To Read CPUID Instruction For Each CPU on Linux With x86info and cpuid Commands

The “x86info” and “cpuid” commands are tools in Linux that allow you to read the CPUID information for each CPU in your system. Here’s how to use them: Using “x86info”: Open a terminal window. Run the following command to display information about your CPU using “x86info”: x86info -a This will show you a list of … Read more

How to secure and lock down Apple OS X 10.11 (El Capitan) with osxlockdown

“osxlockdown” is a third-party security tool that can be used to secure and lock down Apple OS X 10.11 (El Capitan) systems. It provides various options for securing and hardening the OS X operating system, such as disabling automatic login, limiting access to the terminal, and setting strict permissions for system files and directories. Here’s … Read more

How to change system’s hostname on HP-UX Unix system

To change the system’s hostname on HP-UX, you can use the “sam” command-line utility. The “sam” utility is the System Administration Manager, which provides a text-based interface for managing various system configurations, including the hostname. Here’s how you can change the hostname using the “sam” utility: Log in as the superuser (root) Open the “sam” … Read more