How to: Add time/date stamp in Linux – Linux Tutorial

Sometimes you need to add a handy time-stamp to your bash output. For back-up purposes, archiving-purposes or just for experimenting. Doing so is simple, you just need to add the $date command to your output.

First, some basics (All the variables are case-sensitive):

  • date – Display the current date
  • %y – Add current year
  • %m – Add current month
  • %d – Add current day
  • %H – Add current hour
  • %M – Add current minute
  • %S – Add current second

Now, some examples:

  • echo $(date +%H:%M:%S) > Current\ Time.txt – Echo current time to a txt file
  • cp -r $USER/minecraft_server/world $USER/minecraft_server/world-backup-$(date +%y-%m-%d) – Make a backup of a folder with the current date
  • date ‘+DATE: %m/%d/%y%nTIME:%H:%M:%S’ – Print the current date and time to the terminal

How To: Save Disk Space, Bandwidth and Load Time on Website Images Using Smushit.com

SmushItIf you are a web developer you know the importance of disk space, bandwidth and load time when it comes to images. And it will become increasingly important latter when web 2.0 becomes standard among with HTML5. You need a way to compress the images, and I don’t mean resizing the image, which can also be a good idea for thumbnails.

If you don’t want to sacrifice your high resolution image by resizing it, you can use SmushIt.com to compress it. SmushIt.com will remove unnecessary bytes and diverse colors from your image, without spoiling the quality, and in the process save some space. The savings can be as low as 0.97% reduction to as high as 36% reduction, nevertheless, it’s a good idea.

Just go to SmushIt.com and upload your image, the website will do the rest. Have fun compressing!

How To: Banner Grab With NetCat


Netcat is without any doubt my favorite security tool, it’s always in my toolbox alwayswith me, it comes in handy a few times. It’s the first tool I pick when I need to perform a banner grab, just connect and send some requests and see what it spits back at you (sometimes just random crap). In this tutorial i’ll show you how can perform one yourself and how easy it is. Continue reading How To: Banner Grab With NetCat

WordPress Tutorial – Step by Step on how to blog using WordPress.com

A great tutorial on how to set up a blog using WordPress.com

However, i would recommend that you get your own web host and upload the WordPress “self-hosted” package to it, that way you will have so much more control over your blog. And you also get to upload much more richer content.