Check Free Memory in Linux

June 6, 2013

Run free -m (the -m means display the amount of memory in megabytes.)

$ free -m
             total       used       free     shared    buffers     cached
Mem:           495        482         13          0         26        362
-/+ buffers/cache:         92        402
Swap:          508          0        508

Enable Login as Root in ProFTPD

June 2, 2013

WARNING, login as root is always bad practise. This tutorial intended for special case and running from within development environment.

Open proftpd.conf

vi /etc/proftpd/proftpd.conf

How to Protect a Directory with Password Using .htaccess in Apache2

May 31, 2013

Create a new .htaccess file

cd /var/www/mywebsite.com/secret
touch .htaccess

Compile Static Library of libpng Using Visual Studio

May 26, 2013

Compile zlib first (follow these steps).

Next, download the latest libpng (e.g) library and extract it.

Launch VS command prompt: Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt

Create a new zlib folder inside it:

$ cd lpng1617
$ mkdir zlib

Compile Static Library of zlib Using Visual Studio

May 26, 2013

Download and extract zlib

Launch VS commad prompt: Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt

Build:

$ cd zlib-1.2.8
$ nmake /f win32/Makefile.msc