Quick bash command to mass rename files in numbered sequence

Just a quick bash command to rename all files in a directory in a numbered sequence. d=0; for i in *.jpg ; do d=$((d+1)); mv {“$i”,”$d.jpg”} ; done This is going to rename all jpg files in the directory to 1.jpg, 2.jpg, 3.jpg and so on.

ADF Super Code Snippets

Oracle’s ADF (Application Developer Framework) is J2EE technology stack to rapidly develop enterprise applications. As with all enterprise applications, ADF focuses on data handling and makes it quite easy to present the data to the users in variety of ways. As you will already know that ADF is a blanket term which encompasses many layers […]

iFlickr PHP Script: Create mRSS feed of interesting pictures on Flickr.com

Did you notice the “Flickr Gallery” on top right corner of the home page of this blog? The picture slide show is provided by Google’s Ajax Slide Show, but this post is not about that. Google’s Slide Show needs a mRSS feed, which it parses to get the list of thumbnails it wants to present. […]

Script that notifies via email when your server has updates

If you are the administrator of a server then you definitely understand the importance of keeping your system updated always. The following script will send you a mail whenever your server needs an update. The content of the mail will list out all the available updates. The script Notes: This script has been tested on […]

CInk version 2 finally released!

Finally CInk version 2 has been released. Some key new things New website with complete API documentation and guides on how you can use CInk JS code. Finally released the full source code of CInk renderer and compiler. License – GPL v3. CInk finally supports all the features of original CFDG, including Paths. CInk has […]

Create your own Cyberoam client in Python!

This is a very old post. Reposting it since while migrating it from blogger.com to here it got lost. Found it recently. Not sure how relevant or correct is this now. Cyberthon updated to version 2.5 by Vinit and Siddhartha Sahu:- Get the latest code from https://github.com/siddharthasahu/Cyberthon-enhanced. Cyberthon updated to version 1.2:- Added a new […]