Found an awesome article about URL rewriting using the mod_rewrite and apache webserver. Check it out here.
Get shell command return status / return code
Hello,
for everyone who wanted to know how to get the return code or status from an executed command in unix:
# for example use the ls command on a directory
ls -l /home
# get return code
echo $?
This returns an integer code as 0 or 1 or 127. Normally 0 means OK, 1 means ERROR and 127 means COMMAND NOT FOUND. Every command has its own return code but the 3 mentionned before are general.
Hide Windows Server from networkbrowsing
Hi everyone,
if you ever asked yourself how to hide a windows server on the network (e.g. from network browsing), it's quite easy. Open the terminal and enter following command:
# hide server
net config server /hidden:yes
# unhide server
net config server /hidden:no
Note: it can take some time before the server disappears or shows up.
(source)