Setting up a local web server on Mac OS Sierra

For setting up a simple web server running on Mac OS Sierra, the easiest way is to use the default apache web server that is supplied with the OS. Its disabled by default, so start it with sudo privileges.

$ sudo apachectl start

Similarly, to stop the web server use

$ sudo apachectl stop

Apache configuration file is located at /etc/apache2/httpd.conf which you will need to edit in sudo mode.  Webroot directotry is  located at /Library/WebServer/Documents.
To enable php, uncomment LoadModule php5_module libexec/apache2/ line in the Apache configuration file.


Add new hard disk in Debian

To addd a new hard disk in debian from command line, look at this article:

It uses UUID to enable the hard disk which enables using the hard disk even when more hd are attached or some are removed from the system. For Debian Jessie (ver 8.x) users, there is an additional step to choose disk label type while partitioning the disk using cfdisk. To avoid any in-compatibilites, I would suggest  using the same disk label type as the one being used in your current hard disk. This can be determined using fdisk – l command, where the output will contain “Disklabel type:”  for the existing hard disk.


Creating hard links in Windows 7

If you need to create a hard link on Windows (as opposed to soft links which are created by default), you can create it using command line. The exact syntax would be:

mklink /J <Link> <Target>

So say you need to create a link www in the current folder which needs to point to D:\my_files\html, the command would be:

mklink /J www D:\my_files\html

This utility works in Windows Vista and Windows 7, and should also work on Windows 8 & 10.